Смена библиотеки

This commit is contained in:
ityurner02@mail.ru 2023-09-28 20:53:57 +04:00
parent 65deacff8e
commit 7e39d424c7
17 changed files with 44 additions and 137 deletions

View File

@ -5,7 +5,7 @@ VisualStudioVersion = 17.7.34031.279
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinForms", "WinForms\WinForms.csproj", "{237F8689-B952-4E4B-AA51-71F3021838BF}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinForms", "WinForms\WinForms.csproj", "{237F8689-B952-4E4B-AA51-71F3021838BF}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisualComponentsLib", "VisualComponentsLib\VisualComponentsLib.csproj", "{DC3C02AA-D21D-445E-A942-EE82E7F10228}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VisualCompLib", "VisualCompLib\VisualCompLib.csproj", "{FC1CFC63-5739-4519-B689-E8B614A9D106}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -17,10 +17,10 @@ Global
{237F8689-B952-4E4B-AA51-71F3021838BF}.Debug|Any CPU.Build.0 = Debug|Any CPU {237F8689-B952-4E4B-AA51-71F3021838BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{237F8689-B952-4E4B-AA51-71F3021838BF}.Release|Any CPU.ActiveCfg = Release|Any CPU {237F8689-B952-4E4B-AA51-71F3021838BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{237F8689-B952-4E4B-AA51-71F3021838BF}.Release|Any CPU.Build.0 = Release|Any CPU {237F8689-B952-4E4B-AA51-71F3021838BF}.Release|Any CPU.Build.0 = Release|Any CPU
{DC3C02AA-D21D-445E-A942-EE82E7F10228}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FC1CFC63-5739-4519-B689-E8B614A9D106}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DC3C02AA-D21D-445E-A942-EE82E7F10228}.Debug|Any CPU.Build.0 = Debug|Any CPU {FC1CFC63-5739-4519-B689-E8B614A9D106}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DC3C02AA-D21D-445E-A942-EE82E7F10228}.Release|Any CPU.ActiveCfg = Release|Any CPU {FC1CFC63-5739-4519-B689-E8B614A9D106}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DC3C02AA-D21D-445E-A942-EE82E7F10228}.Release|Any CPU.Build.0 = Release|Any CPU {FC1CFC63-5739-4519-B689-E8B614A9D106}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View File

@ -1,4 +1,4 @@
namespace VisualComponentsLib namespace VisualCompLib
{ {
partial class MyDropDownList partial class MyDropDownList
{ {

View File

@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace VisualComponentsLib namespace VisualCompLib
{ {
public partial class MyDropDownList: UserControl public partial class MyDropDownList: UserControl
{ {

View File

@ -1,4 +1,4 @@
namespace VisualComponentsLib namespace VisualCompLib
{ {
partial class MyEmailTextBox partial class MyEmailTextBox
{ {

View File

@ -4,7 +4,7 @@ using System.Text.RegularExpressions;
using System.Windows.Forms; using System.Windows.Forms;
using System.Drawing; using System.Drawing;
namespace VisualComponentsLib namespace VisualCompLib
{ {
public partial class MyEmailTextBox : UserControl public partial class MyEmailTextBox : UserControl
{ {

View File

@ -1,4 +1,4 @@
namespace VisualComponentsLib namespace VisualCompLib
{ {
partial class MyListBoxObjects partial class MyListBoxObjects
{ {

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace VisualComponentsLib namespace VisualCompLib
{ {
public partial class MyListBoxObjects : UserControl public partial class MyListBoxObjects : UserControl
{ {

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace VisualComponentsLib.Object namespace VisualCompLib.Object
{ {
public class Student public class Student
{ {

View File

@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<Compile Update="MyDropDownList.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="MyEmailTextBox.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="MyListBoxObjects.cs">
<SubType>UserControl</SubType>
</Compile>
</ItemGroup>
</Project>

View File

@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Общие сведения об этой сборке предоставляются следующим набором
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
// связанные со сборкой.
[assembly: AssemblyTitle("VisualComponentsLib")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("VisualComponentsLib")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
// компонента COM, задайте для атрибута ComVisible этого типа значение TRUE.
[assembly: ComVisible(false)]
// Следующий идентификатор GUID представляет идентификатор typelib, если этот проект доступен через COM
[assembly: Guid("dc3c02aa-d21d-445e-a942-ee82e7f10228")]
// Сведения о версии сборки состоят из указанных ниже четырех значений:
//
// Основной номер версии
// Дополнительный номер версии
// Номер сборки
// Номер редакции
//
// Можно задать все значения или принять номера сборки и редакции по умолчанию
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,79 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{DC3C02AA-D21D-445E-A942-EE82E7F10228}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>VisualComponentsLib</RootNamespace>
<AssemblyName>VisualComponentsLib</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="MyDropDownList.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="MyDropDownList.Designer.cs">
<DependentUpon>MyDropDownList.cs</DependentUpon>
</Compile>
<Compile Include="MyEmailTextBox.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="MyEmailTextBox.Designer.cs">
<DependentUpon>MyEmailTextBox.cs</DependentUpon>
</Compile>
<Compile Include="MyListBoxObjects.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="MyListBoxObjects.Designer.cs">
<DependentUpon>MyListBoxObjects.cs</DependentUpon>
</Compile>
<Compile Include="Object\Student.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Service Include="{94E38DFF-614B-4cbd-B67C-F211BB35CE8B}" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MyDropDownList.resx">
<DependentUpon>MyDropDownList.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MyEmailTextBox.resx">
<DependentUpon>MyEmailTextBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MyListBoxObjects.resx">
<DependentUpon>MyListBoxObjects.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -28,18 +28,18 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
dropDownList = new VisualComponentsLib.MyDropDownList(); dropDownList = new VisualCompLib.MyDropDownList();
buttonAdd = new Button(); buttonAdd = new Button();
buttonInfo = new Button(); buttonInfo = new Button();
labelInfo = new Label(); labelInfo = new Label();
buttonClear = new Button(); buttonClear = new Button();
emailTextBox = new VisualComponentsLib.MyEmailTextBox(); emailTextBox = new VisualCompLib.MyEmailTextBox();
labelShow = new Label(); labelShow = new Label();
buttonShow = new Button(); buttonShow = new Button();
buttonSetExample = new Button(); buttonSetExample = new Button();
labelExample = new Label(); labelExample = new Label();
textBoxExample = new TextBox(); textBoxExample = new TextBox();
listBoxObj = new VisualComponentsLib.MyListBoxObjects(); listBoxObj = new VisualCompLib.MyListBoxObjects();
buttonAddObjects = new Button(); buttonAddObjects = new Button();
buttonShowItem = new Button(); buttonShowItem = new Button();
labelShowInput = new Label(); labelShowInput = new Label();
@ -185,7 +185,7 @@
labelShowInput.TabIndex = 14; labelShowInput.TabIndex = 14;
labelShowInput.Text = "Вывод"; labelShowInput.Text = "Вывод";
// //
// Form1 // FormForComponents
// //
AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
@ -205,25 +205,25 @@
Controls.Add(buttonAddObjects); Controls.Add(buttonAddObjects);
Controls.Add(buttonShowItem); Controls.Add(buttonShowItem);
Controls.Add(labelShowInput); Controls.Add(labelShowInput);
Name = "Form1"; Name = "FormForComponents";
Text = "Form1"; Text = "Form1";
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); PerformLayout();
} }
#endregion #endregion
private VisualComponentsLib.MyDropDownList dropDownList; private VisualCompLib.MyDropDownList dropDownList;
private Button buttonAdd; private Button buttonAdd;
private Button buttonInfo; private Button buttonInfo;
private Label labelInfo; private Label labelInfo;
private Button buttonClear; private Button buttonClear;
private VisualComponentsLib.MyEmailTextBox emailTextBox; private VisualCompLib.MyEmailTextBox emailTextBox;
private TextBox textBoxExample; private TextBox textBoxExample;
private Label labelExample; private Label labelExample;
private Button buttonSetExample; private Button buttonSetExample;
private Label labelShow; private Label labelShow;
private Button buttonShow; private Button buttonShow;
private VisualComponentsLib.MyListBoxObjects listBoxObj; private VisualCompLib.MyListBoxObjects listBoxObj;
private Button buttonAddObjects; private Button buttonAddObjects;
private Button buttonShowItem; private Button buttonShowItem;
private Label labelShowInput; private Label labelShowInput;

View File

@ -1,4 +1,4 @@
using VisualComponentsLib.Object; using VisualCompLib.Object;
namespace WinForms namespace WinForms
{ {

View File

@ -9,7 +9,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\VisualComponentsLib\VisualComponentsLib.csproj" /> <ProjectReference Include="..\VisualCompLib\VisualCompLib.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>