still gotta work

This commit is contained in:
Никита Волков 2024-09-04 17:42:18 +04:00
parent 52a0e50af6
commit c44986349c
7 changed files with 277 additions and 291 deletions

View File

@ -35,7 +35,7 @@
// //
dateTimePicker.Location = new Point(3, 3); dateTimePicker.Location = new Point(3, 3);
dateTimePicker.Name = "dateTimePicker"; dateTimePicker.Name = "dateTimePicker";
dateTimePicker.Size = new Size(200, 23); dateTimePicker.Size = new Size(142, 23);
dateTimePicker.TabIndex = 0; dateTimePicker.TabIndex = 0;
dateTimePicker.ValueChanged += dateTimePicker_ValueChanged; dateTimePicker.ValueChanged += dateTimePicker_ValueChanged;
// //
@ -45,7 +45,7 @@
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
Controls.Add(dateTimePicker); Controls.Add(dateTimePicker);
Name = "CustomInputRangeDate"; Name = "CustomInputRangeDate";
Size = new Size(206, 183); Size = new Size(148, 231);
ResumeLayout(false); ResumeLayout(false);
} }

View File

@ -63,55 +63,5 @@ namespace WinFormsLibraryVolkov
return val; return val;
} }
public void AddCells<T>(int columnIndex, List<T> elements)
{
if (elements == null || elements.Count == 0)
{
return;
}
foreach (T element in elements)
{
AddCell(columnIndex, element);
}
}
// Обновленный метод для добавления одного элемента в дерево
public void AddCell<T>(int columnIndex, T element)
{
if (Levels == null || element == null || columnIndex < 0 || columnIndex >= Levels.NodeNames.Count)
{
return;
}
TreeNodeCollection treeNodeCollection = treeView.Nodes;
int num = 0;
foreach (string nodeName in Levels.NodeNames)
{
// Получение значения свойства или поля
PropertyInfo property = element.GetType().GetProperty(nodeName);
string text = property?.GetValue(element, null)?.ToString() ?? nodeName;
TreeNode treeNode = null;
foreach (TreeNode item in treeNodeCollection)
{
if (item.Text == text)
{
treeNode = item;
break;
}
}
// Если узел не найден, добавляем новый
treeNodeCollection = (treeNode == null) ? treeNodeCollection.Add(text).Nodes : treeNode.Nodes;
if (num >= columnIndex)
{
break;
}
num++;
}
}
} }
} }

View File

@ -39,6 +39,8 @@
checkedListBox.Size = new Size(144, 148); checkedListBox.Size = new Size(144, 148);
checkedListBox.TabIndex = 0; checkedListBox.TabIndex = 0;
checkedListBox.Dock = DockStyle.Fill; checkedListBox.Dock = DockStyle.Fill;
checkedListBox.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.CheckedListBox_ItemCheck);
checkedListBox.SelectedIndexChanged += new System.EventHandler(this.checkedListBox_SelectedIndexChanged);
// //
// SelectionListBox // SelectionListBox
// //

View File

@ -93,5 +93,9 @@ namespace WinFormsLibraryVolkov
_changeEvent?.Invoke(this, EventArgs.Empty); _changeEvent?.Invoke(this, EventArgs.Empty);
}); });
} }
private void checkedListBox_SelectedIndexChanged(object sender, EventArgs e)
{
_changeEvent?.Invoke(sender, e);
}
} }
} }

View File

@ -28,305 +28,284 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); customInputRangeDate = new WinFormsLibraryVolkov.CustomInputRangeDate();
this.customInputRangeDate = new WinFormsLibraryVolkov.CustomInputRangeDate(); buttonCheck = new Button();
this.buttonCheck = new System.Windows.Forms.Button(); labelCheckValue = new Label();
this.labelCheckValue = new System.Windows.Forms.Label(); groupBoxInput = new GroupBox();
this.groupBoxInput = new System.Windows.Forms.GroupBox(); groupBoxSelected = new GroupBox();
this.groupBoxSelected = new System.Windows.Forms.GroupBox(); buttonGetSelected = new Button();
this.buttonGetSelected = new System.Windows.Forms.Button(); labelSelectedValue = new Label();
this.labelSelectedValue = new System.Windows.Forms.Label(); buttonClear = new Button();
this.buttonClear = new System.Windows.Forms.Button(); buttonAdd = new Button();
this.buttonAdd = new System.Windows.Forms.Button(); textBoxAdd = new TextBox();
this.textBoxAdd = new System.Windows.Forms.TextBox(); SelectionListBox = new WinFormsLibraryVolkov.SelectionListBox();
this.SelectionListBox = new WinFormsLibraryVolkov.SelectionListBox(); groupBoxData = new GroupBox();
this.groupBoxData = new System.Windows.Forms.GroupBox(); labelTransportType = new Label();
this.labelTransportType = new System.Windows.Forms.Label(); labelModel = new Label();
this.labelModel = new System.Windows.Forms.Label(); labelRegNum = new Label();
this.labelRegNum = new System.Windows.Forms.Label(); buttonGetFromTree = new Button();
this.buttonGetFromTree = new System.Windows.Forms.Button(); buttonAddToTree = new Button();
this.buttonAddToTree = new System.Windows.Forms.Button(); comboBoxTransportType = new ComboBox();
this.comboBoxTransportType = new System.Windows.Forms.ComboBox(); textBoxModel = new TextBox();
this.textBoxModel = new System.Windows.Forms.TextBox(); textBoxRegNumber = new TextBox();
this.textBoxRegNumber = new System.Windows.Forms.TextBox(); customTreeCell = new WinFormsLibraryVolkov.CustomTreeCell();
this.customTreeCell = new WinFormsLibraryVolkov.CustomTreeCell(); tabControl = new TabControl();
this.tabControl = new System.Windows.Forms.TabControl(); Visual = new TabPage();
this.Visual = new System.Windows.Forms.TabPage(); groupBoxInput.SuspendLayout();
this.groupBoxInput.SuspendLayout(); groupBoxSelected.SuspendLayout();
this.groupBoxSelected.SuspendLayout(); groupBoxData.SuspendLayout();
this.groupBoxData.SuspendLayout(); tabControl.SuspendLayout();
this.tabControl.SuspendLayout(); Visual.SuspendLayout();
this.Visual.SuspendLayout(); SuspendLayout();
this.SuspendLayout();
// //
// customInputRangeDate // customInputRangeDate
// //
this.customInputRangeDate.AutoValidate = System.Windows.Forms.AutoValidate.Disable; customInputRangeDate.AutoValidate = AutoValidate.Disable;
this.customInputRangeDate.CausesValidation = false; customInputRangeDate.CausesValidation = false;
this.customInputRangeDate.Location = new System.Drawing.Point(34, 25); customInputRangeDate.Date = new DateTime(2024, 9, 1, 0, 0, 0, 0);
this.customInputRangeDate.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); customInputRangeDate.Location = new Point(15, 19);
this.customInputRangeDate.MaxDate = new DateTime(2024, 12, 31); customInputRangeDate.Margin = new Padding(3, 4, 3, 4);
this.customInputRangeDate.MinDate = new DateTime(2004, 01, 11); customInputRangeDate.MaxDate = new DateTime(2024, 12, 31, 0, 0, 0, 0);
this.customInputRangeDate.Name = "customInputRangeDate"; customInputRangeDate.MinDate = new DateTime(2004, 1, 11, 0, 0, 0, 0);
this.customInputRangeDate.Size = new System.Drawing.Size(144, 40); customInputRangeDate.Name = "customInputRangeDate";
this.customInputRangeDate.TabIndex = 0; customInputRangeDate.Size = new Size(148, 30);
this.customInputRangeDate.Date = new DateTime(2024, 9, 1); customInputRangeDate.TabIndex = 0;
// //
// buttonCheck // buttonCheck
// //
this.buttonCheck.Location = new System.Drawing.Point(193, 29); buttonCheck.Location = new Point(169, 22);
this.buttonCheck.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); buttonCheck.Name = "buttonCheck";
this.buttonCheck.Name = "buttonCheck"; buttonCheck.Size = new Size(126, 23);
this.buttonCheck.Size = new System.Drawing.Size(144, 31); buttonCheck.TabIndex = 1;
this.buttonCheck.TabIndex = 1; buttonCheck.Text = "Check";
this.buttonCheck.Text = "Check"; buttonCheck.UseVisualStyleBackColor = true;
this.buttonCheck.UseVisualStyleBackColor = true; buttonCheck.Click += buttonCheck_Click;
this.buttonCheck.Click += new System.EventHandler(this.buttonCheck_Click);
// //
// labelCheckValue // labelCheckValue
// //
this.labelCheckValue.AutoSize = true; labelCheckValue.AutoSize = true;
this.labelCheckValue.Location = new System.Drawing.Point(34, 148); labelCheckValue.Location = new Point(30, 111);
this.labelCheckValue.Name = "labelCheckValue"; labelCheckValue.Name = "labelCheckValue";
this.labelCheckValue.Size = new System.Drawing.Size(82, 20); labelCheckValue.Size = new Size(65, 15);
this.labelCheckValue.TabIndex = 2; labelCheckValue.TabIndex = 2;
this.labelCheckValue.Text = "Enter value"; labelCheckValue.Text = "Enter value";
// //
// groupBoxInput // groupBoxInput
// //
this.groupBoxInput.Controls.Add(this.customInputRangeDate); groupBoxInput.Controls.Add(customInputRangeDate);
this.groupBoxInput.Controls.Add(this.labelCheckValue); groupBoxInput.Controls.Add(labelCheckValue);
this.groupBoxInput.Controls.Add(this.buttonCheck); groupBoxInput.Controls.Add(buttonCheck);
this.groupBoxInput.Location = new System.Drawing.Point(7, 8); groupBoxInput.Location = new Point(6, 6);
this.groupBoxInput.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); groupBoxInput.Name = "groupBoxInput";
this.groupBoxInput.Name = "groupBoxInput"; groupBoxInput.Size = new Size(311, 190);
this.groupBoxInput.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); groupBoxInput.TabIndex = 9;
this.groupBoxInput.Size = new System.Drawing.Size(355, 253); groupBoxInput.TabStop = false;
this.groupBoxInput.TabIndex = 9; groupBoxInput.Text = "Input";
this.groupBoxInput.TabStop = false;
this.groupBoxInput.Text = "Input";
// //
// groupBoxSelected // groupBoxSelected
// //
this.groupBoxSelected.Controls.Add(this.buttonGetSelected); groupBoxSelected.Controls.Add(buttonGetSelected);
this.groupBoxSelected.Controls.Add(this.labelSelectedValue); groupBoxSelected.Controls.Add(labelSelectedValue);
this.groupBoxSelected.Controls.Add(this.buttonClear); groupBoxSelected.Controls.Add(buttonClear);
this.groupBoxSelected.Controls.Add(this.buttonAdd); groupBoxSelected.Controls.Add(buttonAdd);
this.groupBoxSelected.Controls.Add(this.textBoxAdd); groupBoxSelected.Controls.Add(textBoxAdd);
this.groupBoxSelected.Controls.Add(this.SelectionListBox); groupBoxSelected.Controls.Add(SelectionListBox);
this.groupBoxSelected.Location = new System.Drawing.Point(370, 8); groupBoxSelected.Location = new Point(324, 6);
this.groupBoxSelected.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); groupBoxSelected.Name = "groupBoxSelected";
this.groupBoxSelected.Name = "groupBoxSelected"; groupBoxSelected.Size = new Size(311, 190);
this.groupBoxSelected.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); groupBoxSelected.TabIndex = 10;
this.groupBoxSelected.Size = new System.Drawing.Size(355, 253); groupBoxSelected.TabStop = false;
this.groupBoxSelected.TabIndex = 10; groupBoxSelected.Text = "Selected";
this.groupBoxSelected.TabStop = false;
this.groupBoxSelected.Text = "Selected";
// //
// buttonGetSelected // buttonGetSelected
// //
this.buttonGetSelected.Location = new System.Drawing.Point(219, 192); buttonGetSelected.Location = new Point(192, 144);
this.buttonGetSelected.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); buttonGetSelected.Name = "buttonGetSelected";
this.buttonGetSelected.Name = "buttonGetSelected"; buttonGetSelected.Size = new Size(100, 23);
this.buttonGetSelected.Size = new System.Drawing.Size(114, 31); buttonGetSelected.TabIndex = 14;
this.buttonGetSelected.TabIndex = 14; buttonGetSelected.Text = "Get Selected";
this.buttonGetSelected.Text = "Get Selected"; buttonGetSelected.UseVisualStyleBackColor = true;
this.buttonGetSelected.UseVisualStyleBackColor = true; buttonGetSelected.Click += buttonGetSelected_Click;
this.buttonGetSelected.Click += new System.EventHandler(this.buttonGetSelected_Click);
// //
// labelSelectedValue // labelSelectedValue
// //
this.labelSelectedValue.AutoSize = true; labelSelectedValue.AutoSize = true;
this.labelSelectedValue.Location = new System.Drawing.Point(219, 148); labelSelectedValue.Location = new Point(192, 111);
this.labelSelectedValue.Name = "labelSelectedValue"; labelSelectedValue.Name = "labelSelectedValue";
this.labelSelectedValue.Size = new System.Drawing.Size(105, 20); labelSelectedValue.Size = new Size(82, 15);
this.labelSelectedValue.TabIndex = 11; labelSelectedValue.TabIndex = 11;
this.labelSelectedValue.Text = "Selected value"; labelSelectedValue.Text = "Selected value";
// //
// buttonClear // buttonClear
// //
this.buttonClear.Location = new System.Drawing.Point(219, 108); buttonClear.Location = new Point(192, 81);
this.buttonClear.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); buttonClear.Name = "buttonClear";
this.buttonClear.Name = "buttonClear"; buttonClear.Size = new Size(100, 23);
this.buttonClear.Size = new System.Drawing.Size(114, 31); buttonClear.TabIndex = 13;
this.buttonClear.TabIndex = 13; buttonClear.Text = "Clear";
this.buttonClear.Text = "Clear"; buttonClear.UseVisualStyleBackColor = true;
this.buttonClear.UseVisualStyleBackColor = true; buttonClear.Click += buttonClear_Click;
this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click);
// //
// buttonAdd // buttonAdd
// //
this.buttonAdd.Location = new System.Drawing.Point(219, 69); buttonAdd.Location = new Point(192, 52);
this.buttonAdd.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); buttonAdd.Name = "buttonAdd";
this.buttonAdd.Name = "buttonAdd"; buttonAdd.Size = new Size(100, 23);
this.buttonAdd.Size = new System.Drawing.Size(114, 31); buttonAdd.TabIndex = 12;
this.buttonAdd.TabIndex = 12; buttonAdd.Text = "Add or Select";
this.buttonAdd.Text = "Add or Select"; buttonAdd.UseVisualStyleBackColor = true;
this.buttonAdd.UseVisualStyleBackColor = true; buttonAdd.Click += buttonAdd_Click;
this.buttonAdd.Click += new System.EventHandler(this.buttonAdd_Click);
// //
// textBoxAdd // textBoxAdd
// //
this.textBoxAdd.Location = new System.Drawing.Point(219, 31); textBoxAdd.Location = new Point(192, 23);
this.textBoxAdd.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); textBoxAdd.Name = "textBoxAdd";
this.textBoxAdd.Name = "textBoxAdd"; textBoxAdd.Size = new Size(100, 23);
this.textBoxAdd.Size = new System.Drawing.Size(114, 27); textBoxAdd.TabIndex = 11;
this.textBoxAdd.TabIndex = 11;
// //
// SelectionListBox // SelectionListBox
// //
this.SelectionListBox.Location = new System.Drawing.Point(41, 25); SelectionListBox.Location = new Point(36, 19);
this.SelectionListBox.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); SelectionListBox.Margin = new Padding(3, 4, 3, 4);
this.SelectionListBox.Name = "SelectionListBox"; SelectionListBox.Name = "SelectionListBox";
this.SelectionListBox.SelectedValue = ""; SelectionListBox.SelectedValue = "";
this.SelectionListBox.Size = new System.Drawing.Size(171, 209); SelectionListBox.Size = new Size(150, 157);
this.SelectionListBox.TabIndex = 0; SelectionListBox.TabIndex = 0;
// //
// groupBoxData // groupBoxData
// //
this.groupBoxData.Controls.Add(this.labelTransportType); groupBoxData.Controls.Add(labelTransportType);
this.groupBoxData.Controls.Add(this.labelModel); groupBoxData.Controls.Add(labelModel);
this.groupBoxData.Controls.Add(this.labelRegNum); groupBoxData.Controls.Add(labelRegNum);
this.groupBoxData.Controls.Add(this.buttonGetFromTree); groupBoxData.Controls.Add(buttonGetFromTree);
this.groupBoxData.Controls.Add(this.buttonAddToTree); groupBoxData.Controls.Add(buttonAddToTree);
this.groupBoxData.Controls.Add(this.comboBoxTransportType); groupBoxData.Controls.Add(comboBoxTransportType);
this.groupBoxData.Controls.Add(this.textBoxModel); groupBoxData.Controls.Add(textBoxModel);
this.groupBoxData.Controls.Add(this.textBoxRegNumber); groupBoxData.Controls.Add(textBoxRegNumber);
this.groupBoxData.Controls.Add(this.customTreeCell); groupBoxData.Controls.Add(customTreeCell);
this.groupBoxData.Location = new System.Drawing.Point(7, 269); groupBoxData.Location = new Point(6, 202);
this.groupBoxData.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); groupBoxData.Name = "groupBoxData";
this.groupBoxData.Name = "groupBoxData"; groupBoxData.Size = new Size(629, 230);
this.groupBoxData.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); groupBoxData.TabIndex = 11;
this.groupBoxData.Size = new System.Drawing.Size(719, 307); groupBoxData.TabStop = false;
this.groupBoxData.TabIndex = 11; groupBoxData.Text = "Data";
this.groupBoxData.TabStop = false;
this.groupBoxData.Text = "Data";
// //
// labelTransportType // labelTransportType
// //
this.labelTransportType.AutoSize = true; labelTransportType.AutoSize = true;
this.labelTransportType.Location = new System.Drawing.Point(494, 155); labelTransportType.Location = new Point(432, 116);
this.labelTransportType.Name = "labelTransportType"; labelTransportType.Name = "labelTransportType";
this.labelTransportType.Size = new System.Drawing.Size(119, 20); labelTransportType.Size = new Size(93, 15);
this.labelTransportType.TabIndex = 8; labelTransportType.TabIndex = 8;
this.labelTransportType.Text = "Тип транспорта"; labelTransportType.Text = "Тип транспорта";
// //
// labelModel // labelModel
// //
this.labelModel.AutoSize = true; labelModel.AutoSize = true;
this.labelModel.Location = new System.Drawing.Point(494, 96); labelModel.Location = new Point(432, 72);
this.labelModel.Name = "labelModel"; labelModel.Name = "labelModel";
this.labelModel.Size = new System.Drawing.Size(63, 20); labelModel.Size = new Size(50, 15);
this.labelModel.TabIndex = 7; labelModel.TabIndex = 7;
this.labelModel.Text = "Модель"; labelModel.Text = "Модель";
// //
// labelRegNum // labelRegNum
// //
this.labelRegNum.AutoSize = true; labelRegNum.AutoSize = true;
this.labelRegNum.Location = new System.Drawing.Point(494, 37); labelRegNum.Location = new Point(432, 28);
this.labelRegNum.Name = "labelRegNum"; labelRegNum.Name = "labelRegNum";
this.labelRegNum.Size = new System.Drawing.Size(185, 20); labelRegNum.Size = new Size(146, 15);
this.labelRegNum.TabIndex = 6; labelRegNum.TabIndex = 6;
this.labelRegNum.Text = "Регистрационный номер"; labelRegNum.Text = "Регистрационный номер";
// //
// buttonGetFromTree // buttonGetFromTree
// //
this.buttonGetFromTree.Location = new System.Drawing.Point(494, 260); buttonGetFromTree.Location = new Point(432, 195);
this.buttonGetFromTree.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); buttonGetFromTree.Name = "buttonGetFromTree";
this.buttonGetFromTree.Name = "buttonGetFromTree"; buttonGetFromTree.Size = new Size(188, 23);
this.buttonGetFromTree.Size = new System.Drawing.Size(215, 31); buttonGetFromTree.TabIndex = 5;
this.buttonGetFromTree.TabIndex = 5; buttonGetFromTree.Text = "Get Selected";
this.buttonGetFromTree.Text = "Get Selected"; buttonGetFromTree.UseVisualStyleBackColor = true;
this.buttonGetFromTree.UseVisualStyleBackColor = true; buttonGetFromTree.Click += buttonGetFromTree_Click;
this.buttonGetFromTree.Click += new System.EventHandler(this.buttonGetFromTree_Click);
// //
// buttonAddToTree // buttonAddToTree
// //
this.buttonAddToTree.Location = new System.Drawing.Point(494, 221); buttonAddToTree.Location = new Point(432, 166);
this.buttonAddToTree.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); buttonAddToTree.Name = "buttonAddToTree";
this.buttonAddToTree.Name = "buttonAddToTree"; buttonAddToTree.Size = new Size(188, 23);
this.buttonAddToTree.Size = new System.Drawing.Size(215, 31); buttonAddToTree.TabIndex = 4;
this.buttonAddToTree.TabIndex = 4; buttonAddToTree.Text = "Add";
this.buttonAddToTree.Text = "Add"; buttonAddToTree.UseVisualStyleBackColor = true;
this.buttonAddToTree.UseVisualStyleBackColor = true; buttonAddToTree.Click += buttonAddToTree_Click;
this.buttonAddToTree.Click += new System.EventHandler(this.buttonAddToTree_Click);
// //
// comboBoxTransportType // comboBoxTransportType
// //
this.comboBoxTransportType.FormattingEnabled = true; comboBoxTransportType.FormattingEnabled = true;
this.comboBoxTransportType.Location = new System.Drawing.Point(494, 179); comboBoxTransportType.Location = new Point(432, 134);
this.comboBoxTransportType.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); comboBoxTransportType.Name = "comboBoxTransportType";
this.comboBoxTransportType.Name = "comboBoxTransportType"; comboBoxTransportType.Size = new Size(188, 23);
this.comboBoxTransportType.Size = new System.Drawing.Size(214, 28); comboBoxTransportType.TabIndex = 3;
this.comboBoxTransportType.TabIndex = 3;
// //
// textBoxModel // textBoxModel
// //
this.textBoxModel.Location = new System.Drawing.Point(494, 120); textBoxModel.Location = new Point(432, 90);
this.textBoxModel.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); textBoxModel.Name = "textBoxModel";
this.textBoxModel.Name = "textBoxModel"; textBoxModel.Size = new Size(188, 23);
this.textBoxModel.Size = new System.Drawing.Size(214, 27); textBoxModel.TabIndex = 2;
this.textBoxModel.TabIndex = 2;
// //
// textBoxRegNumber // textBoxRegNumber
// //
this.textBoxRegNumber.Location = new System.Drawing.Point(494, 61); textBoxRegNumber.Location = new Point(432, 46);
this.textBoxRegNumber.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); textBoxRegNumber.Name = "textBoxRegNumber";
this.textBoxRegNumber.Name = "textBoxRegNumber"; textBoxRegNumber.Size = new Size(188, 23);
this.textBoxRegNumber.Size = new System.Drawing.Size(214, 27); textBoxRegNumber.TabIndex = 1;
this.textBoxRegNumber.TabIndex = 1;
// //
// customTreeCell // customTreeCell
// //
this.customTreeCell.Location = new System.Drawing.Point(17, 29); customTreeCell.Location = new Point(15, 22);
this.customTreeCell.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); customTreeCell.Margin = new Padding(3, 4, 3, 4);
this.customTreeCell.Name = "customTreeCell"; customTreeCell.Name = "customTreeCell";
this.customTreeCell.Size = new System.Drawing.Size(455, 269); customTreeCell.Size = new Size(398, 202);
this.customTreeCell.TabIndex = 0; customTreeCell.TabIndex = 0;
// //
// tabControl // tabControl
// //
this.tabControl.Controls.Add(this.Visual); tabControl.Controls.Add(Visual);
this.tabControl.Location = new System.Drawing.Point(14, 16); tabControl.Location = new Point(12, 12);
this.tabControl.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); tabControl.Name = "tabControl";
this.tabControl.Name = "tabControl"; tabControl.SelectedIndex = 0;
this.tabControl.SelectedIndex = 0; tabControl.Size = new Size(653, 466);
this.tabControl.Size = new System.Drawing.Size(746, 621); tabControl.TabIndex = 12;
this.tabControl.TabIndex = 12;
// //
// Visual // Visual
// //
this.Visual.Controls.Add(this.groupBoxData); Visual.Controls.Add(groupBoxData);
this.Visual.Controls.Add(this.groupBoxInput); Visual.Controls.Add(groupBoxInput);
this.Visual.Controls.Add(this.groupBoxSelected); Visual.Controls.Add(groupBoxSelected);
this.Visual.Location = new System.Drawing.Point(4, 29); Visual.Location = new Point(4, 24);
this.Visual.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); Visual.Name = "Visual";
this.Visual.Name = "Visual"; Visual.Padding = new Padding(3, 3, 3, 3);
this.Visual.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); Visual.Size = new Size(645, 438);
this.Visual.Size = new System.Drawing.Size(738, 588); Visual.TabIndex = 0;
this.Visual.TabIndex = 0; Visual.Text = "Visual";
this.Visual.Text = "Visual"; Visual.UseVisualStyleBackColor = true;
this.Visual.UseVisualStyleBackColor = true;
// //
// FormMain // FormMain
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); AutoScaleDimensions = new SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(771, 648); ClientSize = new Size(675, 486);
this.Controls.Add(this.tabControl); Controls.Add(tabControl);
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); Name = "FormMain";
this.Name = "FormMain"; Text = "FormMain";
this.Text = "FormMain"; groupBoxInput.ResumeLayout(false);
this.groupBoxInput.ResumeLayout(false); groupBoxInput.PerformLayout();
this.groupBoxInput.PerformLayout(); groupBoxSelected.ResumeLayout(false);
this.groupBoxSelected.ResumeLayout(false); groupBoxSelected.PerformLayout();
this.groupBoxSelected.PerformLayout(); groupBoxData.ResumeLayout(false);
this.groupBoxData.ResumeLayout(false); groupBoxData.PerformLayout();
this.groupBoxData.PerformLayout(); tabControl.ResumeLayout(false);
this.tabControl.ResumeLayout(false); Visual.ResumeLayout(false);
this.Visual.ResumeLayout(false); ResumeLayout(false);
this.ResumeLayout(false);
} }
#endregion #endregion

View File

@ -77,7 +77,7 @@ namespace WinFormsTestApp
private void buttonAdd_Click(object sender, EventArgs e) private void buttonAdd_Click(object sender, EventArgs e)
{ {
// доделать
} }
private void buttonClear_Click(object sender, EventArgs e) private void buttonClear_Click(object sender, EventArgs e)

View File

@ -1,4 +1,64 @@
<root> <?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: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:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">
@ -57,13 +117,4 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="wordWithImages.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="wordWithTable.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>161, 17</value>
</metadata>
<metadata name="wordWithDiagram.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>295, 17</value>
</metadata>
</root> </root>