rename lib
This commit is contained in:
parent
f455d5c147
commit
421ff97e84
@ -3,9 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.9.34728.123
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinFormsLibrary1", "WinFormsLibrary1\WinFormsLibrary1.csproj", "{260D3E8C-3599-49F1-BF42-64A92DD0FB62}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinFormsMain", "WinFormsMain\WinFormsMain.csproj", "{D671A342-9B1B-4662-B7CB-9E7382CCFBC7}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VisualComponents", "WinFormsLibrary1\VisualComponents.csproj", "{260D3E8C-3599-49F1-BF42-64A92DD0FB62}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -17,10 +15,6 @@ Global
|
||||
{260D3E8C-3599-49F1-BF42-64A92DD0FB62}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{260D3E8C-3599-49F1-BF42-64A92DD0FB62}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{260D3E8C-3599-49F1-BF42-64A92DD0FB62}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D671A342-9B1B-4662-B7CB-9E7382CCFBC7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D671A342-9B1B-4662-B7CB-9E7382CCFBC7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D671A342-9B1B-4662-B7CB-9E7382CCFBC7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D671A342-9B1B-4662-B7CB-9E7382CCFBC7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
244
WinFormsMain/Form1.Designer.cs
generated
244
WinFormsMain/Form1.Designer.cs
generated
@ -1,244 +0,0 @@
|
||||
namespace WinFormsMain
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
groupBox1 = new GroupBox();
|
||||
buttonSetList = new Button();
|
||||
textBoxList = new TextBox();
|
||||
buttonCheckSelected = new Button();
|
||||
labelListStatus = new Label();
|
||||
label1 = new Label();
|
||||
buttonAddTestList = new Button();
|
||||
buttonClearList = new Button();
|
||||
userControlStringsListBox = new WinFormsLibrary1.UserControlStringsListBox();
|
||||
groupBox2 = new GroupBox();
|
||||
userControlTable = new WinFormsLibrary1.UserControlTable();
|
||||
groupBox3 = new GroupBox();
|
||||
buttonSetInputtedInteger = new Button();
|
||||
textBoxInputtedInteger = new TextBox();
|
||||
buttonGetInputtedValue = new Button();
|
||||
userControlIntegerInput = new WinFormsLibrary1.UserControlIntegerInput();
|
||||
groupBox1.SuspendLayout();
|
||||
groupBox2.SuspendLayout();
|
||||
groupBox3.SuspendLayout();
|
||||
SuspendLayout();
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
groupBox1.Controls.Add(buttonSetList);
|
||||
groupBox1.Controls.Add(textBoxList);
|
||||
groupBox1.Controls.Add(buttonCheckSelected);
|
||||
groupBox1.Controls.Add(labelListStatus);
|
||||
groupBox1.Controls.Add(label1);
|
||||
groupBox1.Controls.Add(buttonAddTestList);
|
||||
groupBox1.Controls.Add(buttonClearList);
|
||||
groupBox1.Controls.Add(userControlStringsListBox);
|
||||
groupBox1.Location = new Point(12, 12);
|
||||
groupBox1.Name = "groupBox1";
|
||||
groupBox1.Size = new Size(225, 413);
|
||||
groupBox1.TabIndex = 0;
|
||||
groupBox1.TabStop = false;
|
||||
groupBox1.Text = "Визуальный компонент выбора";
|
||||
//
|
||||
// buttonSetList
|
||||
//
|
||||
buttonSetList.Location = new Point(144, 300);
|
||||
buttonSetList.Name = "buttonSetList";
|
||||
buttonSetList.Size = new Size(75, 23);
|
||||
buttonSetList.TabIndex = 7;
|
||||
buttonSetList.Text = "Выбрать";
|
||||
buttonSetList.UseVisualStyleBackColor = true;
|
||||
buttonSetList.Click += buttonSetList_Click;
|
||||
//
|
||||
// textBoxList
|
||||
//
|
||||
textBoxList.Location = new Point(6, 300);
|
||||
textBoxList.Name = "textBoxList";
|
||||
textBoxList.Size = new Size(132, 23);
|
||||
textBoxList.TabIndex = 6;
|
||||
//
|
||||
// buttonCheckSelected
|
||||
//
|
||||
buttonCheckSelected.Location = new Point(6, 256);
|
||||
buttonCheckSelected.Name = "buttonCheckSelected";
|
||||
buttonCheckSelected.Size = new Size(213, 33);
|
||||
buttonCheckSelected.TabIndex = 5;
|
||||
buttonCheckSelected.Text = "Выбранный элемент";
|
||||
buttonCheckSelected.UseVisualStyleBackColor = true;
|
||||
buttonCheckSelected.Click += buttonCheckSelected_Click;
|
||||
//
|
||||
// labelListStatus
|
||||
//
|
||||
labelListStatus.AutoSize = true;
|
||||
labelListStatus.Location = new Point(22, 387);
|
||||
labelListStatus.Name = "labelListStatus";
|
||||
labelListStatus.Size = new Size(0, 15);
|
||||
labelListStatus.TabIndex = 4;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Location = new Point(6, 360);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new Size(87, 15);
|
||||
label1.TabIndex = 3;
|
||||
label1.Text = "Статус списка:";
|
||||
//
|
||||
// buttonAddTestList
|
||||
//
|
||||
buttonAddTestList.Location = new Point(6, 178);
|
||||
buttonAddTestList.Name = "buttonAddTestList";
|
||||
buttonAddTestList.Size = new Size(213, 33);
|
||||
buttonAddTestList.TabIndex = 2;
|
||||
buttonAddTestList.Text = "Добавить список из 5 элементов";
|
||||
buttonAddTestList.UseVisualStyleBackColor = true;
|
||||
buttonAddTestList.Click += buttonAddTestList_Click;
|
||||
//
|
||||
// buttonClearList
|
||||
//
|
||||
buttonClearList.Location = new Point(6, 217);
|
||||
buttonClearList.Name = "buttonClearList";
|
||||
buttonClearList.Size = new Size(213, 33);
|
||||
buttonClearList.TabIndex = 1;
|
||||
buttonClearList.Text = "Очистить";
|
||||
buttonClearList.UseVisualStyleBackColor = true;
|
||||
buttonClearList.Click += buttonClearList_Click;
|
||||
//
|
||||
// userControlStringsListBox
|
||||
//
|
||||
userControlStringsListBox.ListElement = "";
|
||||
userControlStringsListBox.Location = new Point(6, 22);
|
||||
userControlStringsListBox.Name = "userControlStringsListBox";
|
||||
userControlStringsListBox.Size = new Size(213, 150);
|
||||
userControlStringsListBox.TabIndex = 0;
|
||||
userControlStringsListBox.ListChanged += userControlStringsListBox_ListChanged;
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
groupBox2.Controls.Add(userControlTable);
|
||||
groupBox2.Location = new Point(496, 12);
|
||||
groupBox2.Name = "groupBox2";
|
||||
groupBox2.Size = new Size(344, 323);
|
||||
groupBox2.TabIndex = 1;
|
||||
groupBox2.TabStop = false;
|
||||
groupBox2.Text = "Визуальный компонент вывода списков";
|
||||
//
|
||||
// userControlTable
|
||||
//
|
||||
userControlTable.index = -1;
|
||||
userControlTable.Location = new Point(7, 22);
|
||||
userControlTable.Name = "userControlTable";
|
||||
userControlTable.Size = new Size(331, 157);
|
||||
userControlTable.TabIndex = 0;
|
||||
//
|
||||
// groupBox3
|
||||
//
|
||||
groupBox3.Controls.Add(buttonSetInputtedInteger);
|
||||
groupBox3.Controls.Add(textBoxInputtedInteger);
|
||||
groupBox3.Controls.Add(buttonGetInputtedValue);
|
||||
groupBox3.Controls.Add(userControlIntegerInput);
|
||||
groupBox3.Location = new Point(243, 12);
|
||||
groupBox3.Name = "groupBox3";
|
||||
groupBox3.Size = new Size(247, 384);
|
||||
groupBox3.TabIndex = 2;
|
||||
groupBox3.TabStop = false;
|
||||
groupBox3.Text = "Визуальный компонент ввода";
|
||||
//
|
||||
// buttonSetInputtedInteger
|
||||
//
|
||||
buttonSetInputtedInteger.Location = new Point(166, 115);
|
||||
buttonSetInputtedInteger.Name = "buttonSetInputtedInteger";
|
||||
buttonSetInputtedInteger.Size = new Size(75, 23);
|
||||
buttonSetInputtedInteger.TabIndex = 8;
|
||||
buttonSetInputtedInteger.Text = "Заменить";
|
||||
buttonSetInputtedInteger.UseVisualStyleBackColor = true;
|
||||
buttonSetInputtedInteger.Click += buttonSetInputtedInteger_Click;
|
||||
//
|
||||
// textBoxInputtedInteger
|
||||
//
|
||||
textBoxInputtedInteger.Location = new Point(6, 115);
|
||||
textBoxInputtedInteger.Name = "textBoxInputtedInteger";
|
||||
textBoxInputtedInteger.Size = new Size(154, 23);
|
||||
textBoxInputtedInteger.TabIndex = 2;
|
||||
//
|
||||
// buttonGetInputtedValue
|
||||
//
|
||||
buttonGetInputtedValue.Location = new Point(6, 58);
|
||||
buttonGetInputtedValue.Name = "buttonGetInputtedValue";
|
||||
buttonGetInputtedValue.Size = new Size(235, 42);
|
||||
buttonGetInputtedValue.TabIndex = 1;
|
||||
buttonGetInputtedValue.Text = "Получить значение";
|
||||
buttonGetInputtedValue.UseVisualStyleBackColor = true;
|
||||
buttonGetInputtedValue.Click += buttonGetInputtedValue_Click;
|
||||
//
|
||||
// userControlIntegerInput
|
||||
//
|
||||
userControlIntegerInput.Location = new Point(6, 22);
|
||||
userControlIntegerInput.Name = "userControlIntegerInput";
|
||||
userControlIntegerInput.Size = new Size(235, 30);
|
||||
userControlIntegerInput.TabIndex = 0;
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
ClientSize = new Size(849, 437);
|
||||
Controls.Add(groupBox3);
|
||||
Controls.Add(groupBox2);
|
||||
Controls.Add(groupBox1);
|
||||
Name = "Form1";
|
||||
Text = "Основная форма";
|
||||
groupBox1.ResumeLayout(false);
|
||||
groupBox1.PerformLayout();
|
||||
groupBox2.ResumeLayout(false);
|
||||
groupBox3.ResumeLayout(false);
|
||||
groupBox3.PerformLayout();
|
||||
ResumeLayout(false);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private GroupBox groupBox1;
|
||||
private WinFormsLibrary1.UserControlStringsListBox userControlStringsListBox;
|
||||
private GroupBox groupBox2;
|
||||
private WinFormsLibrary1.UserControlTable userControlTable;
|
||||
private GroupBox groupBox3;
|
||||
private WinFormsLibrary1.UserControlIntegerInput userControlIntegerInput;
|
||||
private Button buttonAddTestList;
|
||||
private Button buttonClearList;
|
||||
private Label labelListStatus;
|
||||
private Label label1;
|
||||
private Button buttonCheckSelected;
|
||||
private Button buttonGetInputtedValue;
|
||||
private Button buttonSetList;
|
||||
private TextBox textBoxList;
|
||||
private Button buttonSetInputtedInteger;
|
||||
private TextBox textBoxInputtedInteger;
|
||||
}
|
||||
}
|
@ -1,67 +0,0 @@
|
||||
namespace WinFormsMain
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
private Random rnd = new Random();
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void buttonAddTestList_Click(object sender, EventArgs e)
|
||||
{
|
||||
List<string> testList = new List<string>();
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
testList.Add("test " + i);
|
||||
}
|
||||
userControlStringsListBox.AddList(testList);
|
||||
}
|
||||
|
||||
private void buttonClearList_Click(object sender, EventArgs e)
|
||||
{
|
||||
userControlStringsListBox.ClearList();
|
||||
}
|
||||
|
||||
private void userControlStringsListBox_ListChanged(object sender, EventArgs e)
|
||||
{
|
||||
labelListStatus.Text = userControlStringsListBox.ListElement;
|
||||
}
|
||||
|
||||
private void buttonCheckSelected_Click(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("Âûáðàíî \"" + userControlStringsListBox.ListElement + "\"");
|
||||
}
|
||||
|
||||
private void buttonSetList_Click(object sender, EventArgs e)
|
||||
{
|
||||
userControlStringsListBox.ListElement = textBoxList.Text;
|
||||
}
|
||||
|
||||
private void buttonSetInputtedInteger_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
userControlIntegerInput.InputtedInteger = Convert.ToInt32(textBoxInputtedInteger.Text);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonGetInputtedValue_Click(object sender, EventArgs e)
|
||||
{
|
||||
int? i;
|
||||
try
|
||||
{
|
||||
i = userControlIntegerInput.InputtedInteger;
|
||||
MessageBox.Show("Ââåäåíî: \"" + i + "\"");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
@ -1,17 +0,0 @@
|
||||
namespace WinFormsMain
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net7.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\WinFormsLibrary1\WinFormsLibrary1.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user