Смена библиотеки
This commit is contained in:
parent
65deacff8e
commit
7e39d424c7
10
COP/COP.sln
10
COP/COP.sln
@ -5,7 +5,7 @@ VisualStudioVersion = 17.7.34031.279
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinForms", "WinForms\WinForms.csproj", "{237F8689-B952-4E4B-AA51-71F3021838BF}"
|
||||
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
|
||||
Global
|
||||
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}.Release|Any CPU.ActiveCfg = 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
|
||||
{DC3C02AA-D21D-445E-A942-EE82E7F10228}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{DC3C02AA-D21D-445E-A942-EE82E7F10228}.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}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{FC1CFC63-5739-4519-B689-E8B614A9D106}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{FC1CFC63-5739-4519-B689-E8B614A9D106}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{FC1CFC63-5739-4519-B689-E8B614A9D106}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace VisualComponentsLib
|
||||
namespace VisualCompLib
|
||||
{
|
||||
partial class MyDropDownList
|
||||
{
|
@ -8,7 +8,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace VisualComponentsLib
|
||||
namespace VisualCompLib
|
||||
{
|
||||
public partial class MyDropDownList: UserControl
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace VisualComponentsLib
|
||||
namespace VisualCompLib
|
||||
{
|
||||
partial class MyEmailTextBox
|
||||
{
|
@ -4,7 +4,7 @@ using System.Text.RegularExpressions;
|
||||
using System.Windows.Forms;
|
||||
using System.Drawing;
|
||||
|
||||
namespace VisualComponentsLib
|
||||
namespace VisualCompLib
|
||||
{
|
||||
public partial class MyEmailTextBox : UserControl
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace VisualComponentsLib
|
||||
namespace VisualCompLib
|
||||
{
|
||||
partial class MyListBoxObjects
|
||||
{
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace VisualComponentsLib
|
||||
namespace VisualCompLib
|
||||
{
|
||||
public partial class MyListBoxObjects : UserControl
|
||||
{
|
@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VisualComponentsLib.Object
|
||||
namespace VisualCompLib.Object
|
||||
{
|
||||
public class Student
|
||||
{
|
22
COP/VisualCompLib/VisualCompLib.csproj
Normal file
22
COP/VisualCompLib/VisualCompLib.csproj
Normal 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>
|
@ -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")]
|
@ -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>
|
16
COP/WinForms/FormForComponents.Designer.cs
generated
16
COP/WinForms/FormForComponents.Designer.cs
generated
@ -28,18 +28,18 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
dropDownList = new VisualComponentsLib.MyDropDownList();
|
||||
dropDownList = new VisualCompLib.MyDropDownList();
|
||||
buttonAdd = new Button();
|
||||
buttonInfo = new Button();
|
||||
labelInfo = new Label();
|
||||
buttonClear = new Button();
|
||||
emailTextBox = new VisualComponentsLib.MyEmailTextBox();
|
||||
emailTextBox = new VisualCompLib.MyEmailTextBox();
|
||||
labelShow = new Label();
|
||||
buttonShow = new Button();
|
||||
buttonSetExample = new Button();
|
||||
labelExample = new Label();
|
||||
textBoxExample = new TextBox();
|
||||
listBoxObj = new VisualComponentsLib.MyListBoxObjects();
|
||||
listBoxObj = new VisualCompLib.MyListBoxObjects();
|
||||
buttonAddObjects = new Button();
|
||||
buttonShowItem = new Button();
|
||||
labelShowInput = new Label();
|
||||
@ -185,7 +185,7 @@
|
||||
labelShowInput.TabIndex = 14;
|
||||
labelShowInput.Text = "Вывод";
|
||||
//
|
||||
// Form1
|
||||
// FormForComponents
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(8F, 20F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
@ -205,25 +205,25 @@
|
||||
Controls.Add(buttonAddObjects);
|
||||
Controls.Add(buttonShowItem);
|
||||
Controls.Add(labelShowInput);
|
||||
Name = "Form1";
|
||||
Name = "FormForComponents";
|
||||
Text = "Form1";
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
}
|
||||
|
||||
#endregion
|
||||
private VisualComponentsLib.MyDropDownList dropDownList;
|
||||
private VisualCompLib.MyDropDownList dropDownList;
|
||||
private Button buttonAdd;
|
||||
private Button buttonInfo;
|
||||
private Label labelInfo;
|
||||
private Button buttonClear;
|
||||
private VisualComponentsLib.MyEmailTextBox emailTextBox;
|
||||
private VisualCompLib.MyEmailTextBox emailTextBox;
|
||||
private TextBox textBoxExample;
|
||||
private Label labelExample;
|
||||
private Button buttonSetExample;
|
||||
private Label labelShow;
|
||||
private Button buttonShow;
|
||||
private VisualComponentsLib.MyListBoxObjects listBoxObj;
|
||||
private VisualCompLib.MyListBoxObjects listBoxObj;
|
||||
private Button buttonAddObjects;
|
||||
private Button buttonShowItem;
|
||||
private Label labelShowInput;
|
||||
|
@ -1,4 +1,4 @@
|
||||
using VisualComponentsLib.Object;
|
||||
using VisualCompLib.Object;
|
||||
|
||||
namespace WinForms
|
||||
{
|
||||
|
@ -9,7 +9,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\VisualComponentsLib\VisualComponentsLib.csproj" />
|
||||
<ProjectReference Include="..\VisualCompLib\VisualCompLib.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user