
string myForm = "Моя форма";
int x = 10;
int y = 10;
int width = 947;
int heigth = 525;

ZennoWinForms.ZennoForm ZF = new ZennoWinForms.ZennoForm(myForm, x, y, width, heigth);


System.Windows.Forms.SplitContainer splitContainer_Main = ZF.AddSplitContainer();
System.Windows.Forms.TabControl tabControl_Left = ZF.AddTabControl();
System.Windows.Forms.PictureBox pictureBox_Screen = ZF.AddPictureBox();
System.Windows.Forms.TabPage tabPage_File = ZF.AddTabPage();
System.Windows.Forms.TableLayoutPanel tableLayoutPanel_File = ZF.AddTableLayoutPanel();
System.Windows.Forms.ListView listView_Files = ZF.AddListView();
System.Windows.Forms.ComboBox comboBox_Devices = ZF.AddComboBox();
System.Windows.Forms.TableLayoutPanel tableLayoutPanel_Right = ZF.AddTableLayoutPanel();
System.Windows.Forms.TreeView treeView_Full = ZF.AddTreeView();
System.Windows.Forms.DataGridView dataGridView_Attributes = ZF.AddDataGridView();
System.Windows.Forms.DataGridView dataGridView_XPath = ZF.AddDataGridView();
System.Windows.Forms.Button button_CreateXpath = ZF.AddButton();
System.Windows.Forms.ComboBox comboBox_ConnectMode = ZF.AddComboBox();
System.Windows.Forms.Button button_Connect = ZF.AddButton();
System.Windows.Forms.Label label_ConnectStatus = ZF.AddLabel();
System.Windows.Forms.Button button_ResultDir = ZF.AddButton();
System.Windows.Forms.CheckBox checkBox_FileName = ZF.AddCheckBox();
System.Windows.Forms.TextBox textBox_FileName = ZF.AddTextBox();
System.Windows.Forms.CheckBox checkBox_WebView = ZF.AddCheckBox();
System.Windows.Forms.Button button_Save = ZF.AddButton();
System.Windows.Forms.Label label_ResultDir = ZF.AddLabel();
System.Windows.Forms.TabPage tabPage_Viewer = ZF.AddTabPage();
System.Windows.Forms.Label label_SaveInfo = ZF.AddLabel();
System.Windows.Forms.Button button_Expand = ZF.AddButton();
System.Windows.Forms.Button button_Collapse = ZF.AddButton();
System.Windows.Forms.ComboBox comboBox_Search = ZF.AddComboBox();
System.Windows.Forms.Label label_Selected = ZF.AddLabel();
System.Windows.Forms.Button button_Search = ZF.AddButton();
System.Windows.Forms.TextBox textBox_Search = ZF.AddTextBox();
System.Windows.Forms.DataGridViewTextBoxColumn Col_Count = ZF.AddDataGridViewTextBoxColumn();
System.Windows.Forms.DataGridViewTextBoxColumn Col_XPathValue = ZF.AddDataGridViewTextBoxColumn();
System.Windows.Forms.DataGridViewComboBoxColumn Col_AttrParam = ZF.AddDataGridViewComboBoxColumn();
System.Windows.Forms.DataGridViewTextBoxColumn Col_AttrName = ZF.AddDataGridViewTextBoxColumn();
System.Windows.Forms.DataGridViewTextBoxColumn Col_AttrValue = ZF.AddDataGridViewTextBoxColumn();
System.Windows.Forms.LinkLabel linkLabel_TGChannel = ZF.AddLinkLabel();
System.Windows.Forms.LinkLabel linkLabel_Forum = ZF.AddLinkLabel();
System.Windows.Forms.TableLayoutPanel tableLayoutPanel_Viewer = ZF.AddTableLayoutPanel();
System.Windows.Forms.Label label_FileImage = ZF.AddLabel();
System.Windows.Forms.TabControl tabControl_Selected = ZF.AddTabControl();
System.Windows.Forms.TabPage tabPage_Attr = ZF.AddTabPage();
System.Windows.Forms.TabPage tabPage_XmlCode = ZF.AddTabPage();
System.Windows.Forms.RichTextBox richTextBox_XmlNode = ZF.AddRichTextBox();
System.Windows.Forms.Button button_CopyXPath = ZF.AddButton();
System.Windows.Forms.TableLayoutPanel tableLayoutPanel_AddButtons = ZF.AddTableLayoutPanel();
System.Windows.Forms.Button button_Parent = ZF.AddButton();
System.Windows.Forms.Button button_Following = ZF.AddButton();
System.Windows.Forms.Button button_FSibling = ZF.AddButton();
System.Windows.Forms.Button button_Preceding = ZF.AddButton();
System.Windows.Forms.Button button_PSibling = ZF.AddButton();
System.Windows.Forms.Button button_CopyToSearch = ZF.AddButton();
//
// splitContainer_Main
//
splitContainer_Main.Dock = System.Windows.Forms.DockStyle.Fill;
splitContainer_Main.Location = new System.Drawing.Point(0, 0);
splitContainer_Main.Name = "splitContainer_Main";
//
// splitContainer_Main.Panel1
//
splitContainer_Main.Panel1.Controls.Add(tabControl_Left);
//
// splitContainer_Main.Panel2
//
splitContainer_Main.Panel2.Controls.Add(tableLayoutPanel_Right);
splitContainer_Main.Size = new System.Drawing.Size(1001, 493);
splitContainer_Main.SplitterDistance = 480;
splitContainer_Main.TabIndex = 1;
//
// tabControl_Left
//
tabControl_Left.Controls.Add(tabPage_File);
tabControl_Left.Controls.Add(tabPage_Viewer);
tabControl_Left.Dock = System.Windows.Forms.DockStyle.Fill;
tabControl_Left.Location = new System.Drawing.Point(0, 0);
tabControl_Left.Name = "tabControl_Left";
tabControl_Left.SelectedIndex = 0;
tabControl_Left.Size = new System.Drawing.Size(480, 493);
tabControl_Left.TabIndex = 0;
//
// tabPage_File
//
tabPage_File.Controls.Add(tableLayoutPanel_File);
tabPage_File.Location = new System.Drawing.Point(4, 22);
tabPage_File.Name = "tabPage_File";
tabPage_File.Padding = new System.Windows.Forms.Padding(3);
tabPage_File.Size = new System.Drawing.Size(472, 467);
tabPage_File.TabIndex = 1;
tabPage_File.Text = "File";
tabPage_File.UseVisualStyleBackColor = true;
//
// tableLayoutPanel_File
//
tableLayoutPanel_File.ColumnCount = 4;
tableLayoutPanel_File.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
tableLayoutPanel_File.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
tableLayoutPanel_File.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
tableLayoutPanel_File.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
tableLayoutPanel_File.Controls.Add(comboBox_Devices, 0, 0);
tableLayoutPanel_File.Controls.Add(button_Connect, 3, 0);
tableLayoutPanel_File.Controls.Add(comboBox_ConnectMode, 2, 0);
tableLayoutPanel_File.Controls.Add(checkBox_FileName, 0, 4);
tableLayoutPanel_File.Controls.Add(textBox_FileName, 1, 4);
tableLayoutPanel_File.Controls.Add(checkBox_WebView, 2, 4);
tableLayoutPanel_File.Controls.Add(button_Save, 3, 4);
tableLayoutPanel_File.Controls.Add(button_ResultDir, 0, 3);
tableLayoutPanel_File.Controls.Add(label_ResultDir, 1, 3);
tableLayoutPanel_File.Controls.Add(listView_Files, 0, 2);
tableLayoutPanel_File.Controls.Add(label_ConnectStatus, 0, 1);
tableLayoutPanel_File.Controls.Add(label_SaveInfo, 0, 5);
tableLayoutPanel_File.Dock = System.Windows.Forms.DockStyle.Fill;
tableLayoutPanel_File.Location = new System.Drawing.Point(3, 3);
tableLayoutPanel_File.Name = "tableLayoutPanel_File";
tableLayoutPanel_File.RowCount = 6;
tableLayoutPanel_File.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_File.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
tableLayoutPanel_File.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
tableLayoutPanel_File.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_File.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_File.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_File.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
tableLayoutPanel_File.Size = new System.Drawing.Size(466, 461);
tableLayoutPanel_File.TabIndex = 0;
//
// comboBox_Devices
//
tableLayoutPanel_File.SetColumnSpan(comboBox_Devices, 2);
comboBox_Devices.Dock = System.Windows.Forms.DockStyle.Fill;
comboBox_Devices.FormattingEnabled = true;
comboBox_Devices.Location = new System.Drawing.Point(3, 3);
comboBox_Devices.Name = "comboBox_Devices";
comboBox_Devices.Size = new System.Drawing.Size(285, 21);
comboBox_Devices.TabIndex = 1;
// comboBox_Devices.SelectedIndexChanged += new System.EventHandler(comboBox_Devices_SelectedIndexChanged);
//
// button_Connect
//
button_Connect.Location = new System.Drawing.Point(382, 3);
button_Connect.Name = "button_Connect";
button_Connect.Size = new System.Drawing.Size(75, 23);
button_Connect.TabIndex = 3;
button_Connect.Text = "Connect";
button_Connect.UseVisualStyleBackColor = true;
// button_Connect.Click += new System.EventHandler(button_Connect_Click);
//
// comboBox_ConnectMode
//
comboBox_ConnectMode.FormattingEnabled = true;
comboBox_ConnectMode.Items.AddRange(new object[] {
"ADB",
"APPIUM"});
comboBox_ConnectMode.Location = new System.Drawing.Point(294, 3);
comboBox_ConnectMode.Name = "comboBox_ConnectMode";
comboBox_ConnectMode.Size = new System.Drawing.Size(82, 21);
comboBox_ConnectMode.TabIndex = 2;
// comboBox_ConnectMode.SelectedIndexChanged += new System.EventHandler(comboBox_ConnectMode_SelectedIndexChanged);
//
// checkBox_FileName
//
checkBox_FileName.AutoSize = true;
checkBox_FileName.Location = new System.Drawing.Point(3, 404);
checkBox_FileName.Name = "checkBox_FileName";
checkBox_FileName.Size = new System.Drawing.Size(73, 17);
checkBox_FileName.TabIndex = 6;
checkBox_FileName.Text = "Set Name";
checkBox_FileName.UseVisualStyleBackColor = true;
// checkBox_FileName.CheckedChanged += new System.EventHandler(checkBox_FileName_CheckedChanged);
//
// textBox_FileName
//
textBox_FileName.Location = new System.Drawing.Point(84, 404);
textBox_FileName.Name = "textBox_FileName";
textBox_FileName.Size = new System.Drawing.Size(204, 20);
textBox_FileName.TabIndex = 7;
textBox_FileName.Text = "Enter Name Screen";
//
// checkBox_WebView
//
checkBox_WebView.AutoSize = true;
checkBox_WebView.Location = new System.Drawing.Point(294, 404);
checkBox_WebView.Name = "checkBox_WebView";
checkBox_WebView.Size = new System.Drawing.Size(72, 17);
checkBox_WebView.TabIndex = 8;
checkBox_WebView.Text = "WebView";
checkBox_WebView.UseVisualStyleBackColor = true;
// checkBox_WebView.CheckedChanged += new System.EventHandler(checkBox_WebView_CheckedChanged);
//
// button_Save
//
button_Save.Location = new System.Drawing.Point(382, 404);
button_Save.Name = "button_Save";
button_Save.Size = new System.Drawing.Size(75, 23);
button_Save.TabIndex = 9;
button_Save.Text = "Save";
button_Save.UseVisualStyleBackColor = true;
// button_Save.Click += new System.EventHandler(button_Save_Click);
//
// button_ResultDir
//
button_ResultDir.Location = new System.Drawing.Point(3, 374);
button_ResultDir.Name = "button_ResultDir";
button_ResultDir.Size = new System.Drawing.Size(75, 23);
button_ResultDir.TabIndex = 5;
button_ResultDir.Text = "Directory";
button_ResultDir.UseVisualStyleBackColor = true;
// button_ResultDir.Click += new System.EventHandler(button_ResultDir_Click);
//
// label_ResultDir
//
label_ResultDir.AutoSize = true;
tableLayoutPanel_File.SetColumnSpan(label_ResultDir, 3);
label_ResultDir.Location = new System.Drawing.Point(84, 371);
label_ResultDir.Name = "label_ResultDir";
label_ResultDir.Size = new System.Drawing.Size(36, 13);
label_ResultDir.TabIndex = 10;
label_ResultDir.Text = "Empty";
label_ResultDir.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// listView_Files
//
listView_Files.Alignment = System.Windows.Forms.ListViewAlignment.SnapToGrid;
tableLayoutPanel_File.SetColumnSpan(listView_Files, 4);
listView_Files.Dock = System.Windows.Forms.DockStyle.Fill;
listView_Files.HideSelection = false;
listView_Files.Location = new System.Drawing.Point(3, 53);
listView_Files.MultiSelect = false;
listView_Files.Name = "listView_Files";
listView_Files.Size = new System.Drawing.Size(460, 315);
listView_Files.Sorting = System.Windows.Forms.SortOrder.Ascending;
listView_Files.TabIndex = 0;
listView_Files.UseCompatibleStateImageBehavior = false;
// listView_Files.SelectedIndexChanged += new System.EventHandler(listView_Files_SelectedIndexChanged);
//
// label_ConnectStatus
//
label_ConnectStatus.AutoSize = true;
tableLayoutPanel_File.SetColumnSpan(label_ConnectStatus, 4);
label_ConnectStatus.Dock = System.Windows.Forms.DockStyle.Fill;
label_ConnectStatus.Location = new System.Drawing.Point(3, 30);
label_ConnectStatus.Name = "label_ConnectStatus";
label_ConnectStatus.Size = new System.Drawing.Size(460, 20);
label_ConnectStatus.TabIndex = 4;
label_ConnectStatus.Text = "Status:";
//
// label_SaveInfo
//
label_SaveInfo.AutoSize = true;
tableLayoutPanel_File.SetColumnSpan(label_SaveInfo, 4);
label_SaveInfo.Location = new System.Drawing.Point(3, 431);
label_SaveInfo.Name = "label_SaveInfo";
label_SaveInfo.Size = new System.Drawing.Size(50, 13);
label_SaveInfo.TabIndex = 11;
label_SaveInfo.Text = "SaveInfo";
//
// tabPage_Viewer
//
tabPage_Viewer.Controls.Add(tableLayoutPanel_Viewer);
tabPage_Viewer.Location = new System.Drawing.Point(4, 22);
tabPage_Viewer.Name = "tabPage_Viewer";
tabPage_Viewer.Padding = new System.Windows.Forms.Padding(3);
tabPage_Viewer.Size = new System.Drawing.Size(472, 467);
tabPage_Viewer.TabIndex = 2;
tabPage_Viewer.Text = "Viewer";
tabPage_Viewer.UseVisualStyleBackColor = true;
//
// tableLayoutPanel_Viewer
//
tableLayoutPanel_Viewer.ColumnCount = 2;
tableLayoutPanel_Viewer.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
tableLayoutPanel_Viewer.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
tableLayoutPanel_Viewer.Controls.Add(pictureBox_Screen, 0, 1);
tableLayoutPanel_Viewer.Controls.Add(label_FileImage, 0, 0);
tableLayoutPanel_Viewer.Dock = System.Windows.Forms.DockStyle.Fill;
tableLayoutPanel_Viewer.Location = new System.Drawing.Point(3, 3);
tableLayoutPanel_Viewer.Name = "tableLayoutPanel_Viewer";
tableLayoutPanel_Viewer.RowCount = 2;
tableLayoutPanel_Viewer.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 18F));
tableLayoutPanel_Viewer.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
tableLayoutPanel_Viewer.Size = new System.Drawing.Size(466, 461);
tableLayoutPanel_Viewer.TabIndex = 1;
//
// pictureBox_Screen
//
tableLayoutPanel_Viewer.SetColumnSpan(pictureBox_Screen, 2);
pictureBox_Screen.Dock = System.Windows.Forms.DockStyle.Fill;
pictureBox_Screen.Location = new System.Drawing.Point(3, 21);
pictureBox_Screen.Name = "pictureBox_Screen";
pictureBox_Screen.Size = new System.Drawing.Size(460, 437);
pictureBox_Screen.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
pictureBox_Screen.TabIndex = 0;
pictureBox_Screen.TabStop = false;
// pictureBox_Screen.Click += new System.EventHandler(pictureBox_Screen_Click);
//
// label_FileImage
//
label_FileImage.AutoSize = true;
label_FileImage.Location = new System.Drawing.Point(3, 0);
label_FileImage.Name = "label_FileImage";
label_FileImage.Size = new System.Drawing.Size(52, 13);
label_FileImage.TabIndex = 1;
label_FileImage.Text = "FileImage";
//
// tableLayoutPanel_Right
//
tableLayoutPanel_Right.ColumnCount = 6;
tableLayoutPanel_Right.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_Right.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_Right.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 105F));
tableLayoutPanel_Right.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
tableLayoutPanel_Right.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_Right.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 105F));
tableLayoutPanel_Right.Controls.Add(treeView_Full, 0, 1);
tableLayoutPanel_Right.Controls.Add(dataGridView_XPath, 0, 4);
tableLayoutPanel_Right.Controls.Add(button_Expand, 0, 0);
tableLayoutPanel_Right.Controls.Add(button_Collapse, 1, 0);
tableLayoutPanel_Right.Controls.Add(comboBox_Search, 2, 0);
tableLayoutPanel_Right.Controls.Add(textBox_Search, 3, 0);
tableLayoutPanel_Right.Controls.Add(linkLabel_TGChannel, 0, 3);
tableLayoutPanel_Right.Controls.Add(linkLabel_Forum, 3, 3);
tableLayoutPanel_Right.Controls.Add(label_Selected, 4, 0);
tableLayoutPanel_Right.Controls.Add(button_CreateXpath, 5, 3);
tableLayoutPanel_Right.Controls.Add(button_Search, 5, 0);
tableLayoutPanel_Right.Controls.Add(tabControl_Selected, 0, 2);
tableLayoutPanel_Right.Controls.Add(button_CopyXPath, 5, 4);
tableLayoutPanel_Right.Controls.Add(tableLayoutPanel_AddButtons, 5, 2);
tableLayoutPanel_Right.Dock = System.Windows.Forms.DockStyle.Fill;
tableLayoutPanel_Right.Location = new System.Drawing.Point(0, 0);
tableLayoutPanel_Right.Name = "tableLayoutPanel_Right";
tableLayoutPanel_Right.RowCount = 5;
tableLayoutPanel_Right.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_Right.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 45F));
tableLayoutPanel_Right.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 55F));
tableLayoutPanel_Right.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_Right.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 60F));
tableLayoutPanel_Right.Size = new System.Drawing.Size(517, 493);
tableLayoutPanel_Right.TabIndex = 0;
//
// treeView_Full
//
tableLayoutPanel_Right.SetColumnSpan(treeView_Full, 6);
treeView_Full.Dock = System.Windows.Forms.DockStyle.Fill;
treeView_Full.Location = new System.Drawing.Point(3, 33);
treeView_Full.Name = "treeView_Full";
treeView_Full.Size = new System.Drawing.Size(511, 161);
treeView_Full.TabIndex = 0;
// treeView_Full.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(treeView_Full_AfterSelect);
//
// dataGridView_XPath
//
dataGridView_XPath.AllowUserToAddRows = false;
dataGridView_XPath.AllowUserToDeleteRows = false;
dataGridView_XPath.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView_XPath.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
Col_Count,
Col_XPathValue});
tableLayoutPanel_Right.SetColumnSpan(dataGridView_XPath, 5);
dataGridView_XPath.Dock = System.Windows.Forms.DockStyle.Fill;
dataGridView_XPath.Location = new System.Drawing.Point(3, 435);
dataGridView_XPath.Name = "dataGridView_XPath";
dataGridView_XPath.RowHeadersWidth = 15;
dataGridView_XPath.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
dataGridView_XPath.Size = new System.Drawing.Size(406, 55);
dataGridView_XPath.TabIndex = 2;
// dataGridView_XPath.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(dataGridView_XPath_CellContentClick);
//
// Col_Count
//
Col_Count.HeaderText = "Count";
Col_Count.MinimumWidth = 39;
Col_Count.Name = "Col_Count";
Col_Count.ReadOnly = true;
Col_Count.Width = 39;
//
// Col_XPathValue
//
Col_XPathValue.HeaderText = "XPATH";
Col_XPathValue.MinimumWidth = 600;
Col_XPathValue.Name = "Col_XPathValue";
Col_XPathValue.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
Col_XPathValue.Width = 600;
//
// button_Expand
//
button_Expand.Location = new System.Drawing.Point(3, 3);
button_Expand.Name = "button_Expand";
button_Expand.Size = new System.Drawing.Size(21, 23);
button_Expand.TabIndex = 4;
button_Expand.Text = "+";
button_Expand.UseVisualStyleBackColor = true;
// button_Expand.Click += new System.EventHandler(button_Expand_Click);
//
// button_Collapse
//
button_Collapse.Location = new System.Drawing.Point(33, 3);
button_Collapse.Name = "button_Collapse";
button_Collapse.Size = new System.Drawing.Size(18, 23);
button_Collapse.TabIndex = 5;
button_Collapse.Text = "-";
button_Collapse.UseVisualStyleBackColor = true;
// button_Collapse.Click += new System.EventHandler(button_Collapse_Click);
//
// comboBox_Search
//
comboBox_Search.FormattingEnabled = true;
comboBox_Search.Location = new System.Drawing.Point(63, 3);
comboBox_Search.Name = "comboBox_Search";
comboBox_Search.Size = new System.Drawing.Size(98, 21);
comboBox_Search.TabIndex = 6;
// comboBox_Search.SelectedIndexChanged += new System.EventHandler(comboBox_Search_SelectedIndexChanged);
//
// textBox_Search
//
textBox_Search.Dock = System.Windows.Forms.DockStyle.Fill;
textBox_Search.Location = new System.Drawing.Point(168, 3);
textBox_Search.Name = "textBox_Search";
textBox_Search.Size = new System.Drawing.Size(211, 20);
textBox_Search.TabIndex = 7;
// textBox_Search.TextChanged += new System.EventHandler(textBox_Search_TextChanged);
//
// linkLabel_TGChannel
//
linkLabel_TGChannel.AutoSize = true;
tableLayoutPanel_Right.SetColumnSpan(linkLabel_TGChannel, 3);
linkLabel_TGChannel.Location = new System.Drawing.Point(3, 402);
linkLabel_TGChannel.Name = "linkLabel_TGChannel";
linkLabel_TGChannel.Size = new System.Drawing.Size(85, 13);
linkLabel_TGChannel.TabIndex = 10;
linkLabel_TGChannel.TabStop = true;
linkLabel_TGChannel.Text = "Telegram Канал";
// linkLabel_TGChannel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(linkLabel_TGChannel_LinkClicked);
//
// linkLabel_Forum
//
linkLabel_Forum.AutoSize = true;
tableLayoutPanel_Right.SetColumnSpan(linkLabel_Forum, 2);
linkLabel_Forum.Location = new System.Drawing.Point(168, 402);
linkLabel_Forum.Name = "linkLabel_Forum";
linkLabel_Forum.Size = new System.Drawing.Size(207, 13);
linkLabel_Forum.TabIndex = 11;
linkLabel_Forum.TabStop = true;
linkLabel_Forum.Text = "Zennoposter + Android + Nox/Memu/Real";
// linkLabel_Forum.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(linkLabel_Forum_LinkClicked);
//
// label_Selected
//
label_Selected.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
label_Selected.AutoSize = true;
label_Selected.Location = new System.Drawing.Point(396, 0);
label_Selected.Name = "label_Selected";
label_Selected.Size = new System.Drawing.Size(13, 30);
label_Selected.TabIndex = 8;
label_Selected.Text = "0";
label_Selected.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// label_Selected.Click += new System.EventHandler(label_Selected_Click);
//
// button_CreateXpath
//
button_CreateXpath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
button_CreateXpath.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
button_CreateXpath.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
button_CreateXpath.Location = new System.Drawing.Point(415, 405);
button_CreateXpath.Name = "button_CreateXpath";
button_CreateXpath.Size = new System.Drawing.Size(93, 24);
button_CreateXpath.TabIndex = 3;
button_CreateXpath.Text = "Create XPath";
button_CreateXpath.UseVisualStyleBackColor = true;
// button_CreateXpath.Click += new System.EventHandler(button_CreateXpath_Click);
//
// button_Search
//
button_Search.Location = new System.Drawing.Point(415, 3);
button_Search.Name = "button_Search";
button_Search.Size = new System.Drawing.Size(72, 23);
button_Search.TabIndex = 9;
button_Search.Text = "Search";
button_Search.UseVisualStyleBackColor = true;
// button_Search.Click += new System.EventHandler(button_Search_Click);
//
// tabControl_Selected
//
tableLayoutPanel_Right.SetColumnSpan(tabControl_Selected, 5);
tabControl_Selected.Controls.Add(tabPage_Attr);
tabControl_Selected.Controls.Add(tabPage_XmlCode);
tabControl_Selected.Dock = System.Windows.Forms.DockStyle.Fill;
tabControl_Selected.Location = new System.Drawing.Point(3, 200);
tabControl_Selected.Name = "tabControl_Selected";
tabControl_Selected.SelectedIndex = 0;
tabControl_Selected.Size = new System.Drawing.Size(406, 199);
tabControl_Selected.TabIndex = 12;
//
// tabPage_Attr
//
tabPage_Attr.Controls.Add(dataGridView_Attributes);
tabPage_Attr.Location = new System.Drawing.Point(4, 22);
tabPage_Attr.Name = "tabPage_Attr";
tabPage_Attr.Padding = new System.Windows.Forms.Padding(3);
tabPage_Attr.Size = new System.Drawing.Size(398, 173);
tabPage_Attr.TabIndex = 0;
tabPage_Attr.Text = "Attributes";
tabPage_Attr.UseVisualStyleBackColor = true;
//
// dataGridView_Attributes
//
dataGridView_Attributes.AllowUserToAddRows = false;
dataGridView_Attributes.AllowUserToDeleteRows = false;
dataGridView_Attributes.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView_Attributes.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
Col_AttrParam,
Col_AttrName,
Col_AttrValue});
dataGridView_Attributes.Dock = System.Windows.Forms.DockStyle.Fill;
dataGridView_Attributes.Location = new System.Drawing.Point(3, 3);
dataGridView_Attributes.Name = "dataGridView_Attributes";
dataGridView_Attributes.RowHeadersWidth = 15;
dataGridView_Attributes.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
dataGridView_Attributes.Size = new System.Drawing.Size(392, 167);
dataGridView_Attributes.TabIndex = 1;
// dataGridView_Attributes.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(dataGridView_Attributes_CellContentClick);
//
// Col_AttrParam
//
Col_AttrParam.FlatStyle = System.Windows.Forms.FlatStyle.System;
Col_AttrParam.HeaderText = "Param";
Col_AttrParam.Items.AddRange(new object[] {
"-",
"and",
"contains",
"*"});
Col_AttrParam.MinimumWidth = 75;
Col_AttrParam.Name = "Col_AttrParam";
Col_AttrParam.Width = 75;
//
// Col_AttrName
//
Col_AttrName.HeaderText = "Name";
Col_AttrName.MinimumWidth = 105;
Col_AttrName.Name = "Col_AttrName";
Col_AttrName.ReadOnly = true;
Col_AttrName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
Col_AttrName.Width = 105;
//
// Col_AttrValue
//
Col_AttrValue.HeaderText = "Value";
Col_AttrValue.MinimumWidth = 480;
Col_AttrValue.Name = "Col_AttrValue";
Col_AttrValue.ReadOnly = true;
Col_AttrValue.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
Col_AttrValue.Width = 480;
//
// tabPage_XmlCode
//
tabPage_XmlCode.Controls.Add(richTextBox_XmlNode);
tabPage_XmlCode.Location = new System.Drawing.Point(4, 22);
tabPage_XmlCode.Name = "tabPage_XmlCode";
tabPage_XmlCode.Padding = new System.Windows.Forms.Padding(3);
tabPage_XmlCode.Size = new System.Drawing.Size(398, 173);
tabPage_XmlCode.TabIndex = 1;
tabPage_XmlCode.Text = "XmlCode";
tabPage_XmlCode.UseVisualStyleBackColor = true;
//
// richTextBox_XmlNode
//
richTextBox_XmlNode.Dock = System.Windows.Forms.DockStyle.Fill;
richTextBox_XmlNode.Location = new System.Drawing.Point(3, 3);
richTextBox_XmlNode.Name = "richTextBox_XmlNode";
richTextBox_XmlNode.Size = new System.Drawing.Size(392, 167);
richTextBox_XmlNode.TabIndex = 1;
richTextBox_XmlNode.Text = "";
richTextBox_XmlNode.WordWrap = false;
//
// button_CopyXPath
//
button_CopyXPath.Location = new System.Drawing.Point(415, 462);
button_CopyXPath.Margin = new System.Windows.Forms.Padding(3, 30, 3, 3);
button_CopyXPath.Name = "button_CopyXPath";
button_CopyXPath.Size = new System.Drawing.Size(75, 23);
button_CopyXPath.TabIndex = 13;
button_CopyXPath.Text = "Copy";
button_CopyXPath.UseVisualStyleBackColor = true;
// button_CopyXPath.Click += new System.EventHandler(button_CopyXPath_Click);
//
// tableLayoutPanel_AddButtons
//
tableLayoutPanel_AddButtons.ColumnCount = 1;
tableLayoutPanel_AddButtons.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
tableLayoutPanel_AddButtons.Controls.Add(button_Parent, 0, 0);
tableLayoutPanel_AddButtons.Controls.Add(button_Following, 0, 1);
tableLayoutPanel_AddButtons.Controls.Add(button_CopyToSearch, 0, 5);
tableLayoutPanel_AddButtons.Controls.Add(button_Preceding, 0, 3);
tableLayoutPanel_AddButtons.Controls.Add(button_FSibling, 0, 2);
tableLayoutPanel_AddButtons.Controls.Add(button_PSibling, 0, 4);
tableLayoutPanel_AddButtons.Dock = System.Windows.Forms.DockStyle.Fill;
tableLayoutPanel_AddButtons.Location = new System.Drawing.Point(415, 212);
tableLayoutPanel_AddButtons.Margin = new System.Windows.Forms.Padding(3, 15, 3, 3);
tableLayoutPanel_AddButtons.Name = "tableLayoutPanel_AddButtons";
tableLayoutPanel_AddButtons.RowCount = 8;
tableLayoutPanel_AddButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_AddButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_AddButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_AddButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_AddButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_AddButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 32F));
tableLayoutPanel_AddButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
tableLayoutPanel_AddButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
tableLayoutPanel_AddButtons.Size = new System.Drawing.Size(99, 187);
tableLayoutPanel_AddButtons.TabIndex = 14;
//
// button_Parent
//
button_Parent.Location = new System.Drawing.Point(3, 3);
button_Parent.Name = "button_Parent";
button_Parent.Size = new System.Drawing.Size(77, 23);
button_Parent.TabIndex = 0;
button_Parent.Text = "+ parent::";
button_Parent.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
button_Parent.UseVisualStyleBackColor = true;
// button_Parent.Click += new System.EventHandler(button_Parent_Click);
//
// button_Following
//
button_Following.Location = new System.Drawing.Point(3, 33);
button_Following.Name = "button_Following";
button_Following.Size = new System.Drawing.Size(77, 23);
button_Following.TabIndex = 1;
button_Following.Text = "+ following::";
button_Following.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
button_Following.UseVisualStyleBackColor = true;
// button_Following.Click += new System.EventHandler(button_Following_Click);
//
// button_CopyToSearch
//
button_CopyToSearch.Location = new System.Drawing.Point(3, 153);
button_CopyToSearch.Name = "button_CopyToSearch";
button_CopyToSearch.Size = new System.Drawing.Size(93, 23);
button_CopyToSearch.TabIndex = 5;
button_CopyToSearch.Text = "CopyToSearch";
button_CopyToSearch.UseVisualStyleBackColor = true;
// button_CopyToSearch.Click += new System.EventHandler(button_CopyToSearch_Click);
//
// button_Preceding
//
button_Preceding.Location = new System.Drawing.Point(3, 93);
button_Preceding.Name = "button_Preceding";
button_Preceding.Size = new System.Drawing.Size(77, 23);
button_Preceding.TabIndex = 3;
button_Preceding.Text = "+ preceding::";
button_Preceding.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
button_Preceding.UseVisualStyleBackColor = true;
// button_Preceding.Click += new System.EventHandler(button_Preceding_Click);
//
// button_FSibling
//
button_FSibling.Location = new System.Drawing.Point(3, 63);
button_FSibling.Name = "button_FSibling";
button_FSibling.Size = new System.Drawing.Size(77, 23);
button_FSibling.TabIndex = 2;
button_FSibling.Text = "+ f-sibling::";
button_FSibling.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
button_FSibling.UseVisualStyleBackColor = true;
// button_FSibling.Click += new System.EventHandler(button_FSibling_Click);
//
// button_PSibling
//
button_PSibling.Location = new System.Drawing.Point(3, 123);
button_PSibling.Name = "button_PSibling";
button_PSibling.Size = new System.Drawing.Size(77, 23);
button_PSibling.TabIndex = 4;
button_PSibling.Text = "+ p-sibling::";
button_PSibling.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
button_PSibling.UseVisualStyleBackColor = true;
// button_PSibling.Click += new System.EventHandler(button_PSibling_Click);
//
// XPath_Helper_Form
//
AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
ClientSize = new System.Drawing.Size(1001, 493);
Controls.Add(splitContainer_Main);
Name = "XPath_Helper_Form";
Text = "Mobile App XPath Helper | Telegram: radv_softnews";
// FormClosing += new System.Windows.Forms.FormClosingEventHandler(XPath_Helper_Form_FormClosing);
// Load += new System.EventHandler(XPath_Helper_Form_Load);

// Список эвентов формы
;
        /// Подключение к устройству.
        button_Connect.Click  += delegate (object sender, System.EventArgs e)
        {
            string mode = comboBox_ConnectMode.Text.ToLower();
            nameDevice = comboBox_Devices.SelectedItem.ToString().Trim();
            if (string.IsNullOrEmpty(nameDevice) || nameDevice.Contains("устройств"))
            {
                string message = "Выберите устройство из списка. Если список пустой, проверьте видимость через команду adb devices и перезапустите проект";
                System.Windows.Forms.MessageBox.Show(message, "Выберите устройство!",// Заголовок
                                              System.Windows.Forms.MessageBoxButtons.OK,
                                              System.Windows.Forms.MessageBoxIcon.Error,
                                              System.Windows.Forms.MessageBoxDefaultButton.Button1,
                                              System.Windows.Forms.MessageBoxOptions.DefaultDesktopOnly);
                return;
            }
            nameDevice = nameDevice.Split(' ')[0];
            label_SaveInfo.Text = "Click the Save button";
            button_Save.Enabled = true;
        }
;
        /// Формируем xpath по выбранным параметрам
        button_CreateXpath.Click  += delegate (object sender, System.EventArgs e)
        {
        }
;
        /// Развернуть дерево элементов
        button_Expand.Click  += delegate (object sender, EventArgs e)
        {
            treeView_Full.ExpandAll();
        }
;
        /// Выбор папки с файлами.
        button_ResultDir.Click  += delegate (object sender, System.EventArgs e)
        {
            System.Windows.Forms.FolderBrowserDialog fbd = new FolderBrowserDialog();
            if (string.IsNullOrEmpty(pathSave))
            {
                fbd.SelectedPath = label_ResultDir.Text;
            }
            else
            {
                fbd.SelectedPath = pathSave;
            }
            if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                pathSave = fbd.SelectedPath;// + "\\"; ;
            }
            label_ResultDir.Text = pathSave;
        }
;
        /// Сохранение файла
        button_Save.Click  += delegate (object sender, System.EventArgs e)
        {
            string mode = comboBox_ConnectMode.Text.ToLower();
            string info = string.Empty;
            string status = label_ConnectStatus.Text;
            string fileName = string.Empty;
            if (checkBox_FileName.Checked == true)
            {
                fileName = textBox_FileName.Text;
            }
        }
;
        /// Кнопка поиска и создания xpath пути выделенного элемента
        button_Search.Click  += delegate (object sender, System.EventArgs e)
        {
            string textSearch = textBox_Search.Text;
    
            string paramSearch = comboBox_Search.SelectedItem.ToString();
        }
;
        /// Использовать имя файла вместо автоматического дата и режим.
        checkBox_FileName.CheckedChanged  += delegate (object sender, System.EventArgs e)
        {
        }
;
        /// Для webview
        checkBox_WebView.CheckedChanged  += delegate (object sender, System.EventArgs e)
        {
        }
;
        /// Изменение выбора подключения
        comboBox_ConnectMode.SelectedIndexChanged  += delegate (object sender, System.EventArgs e)
        {
        }
;
        /// Параметры поиска
        comboBox_Search.SelectedIndexChanged  += delegate (object sender, System.EventArgs e)
        {
        }
;
        /// Копирование выделенной ячейки
        dataGridView_Attributes.CellContentClick  += delegate (object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
        }
;
        /// Для копирования текста из ячейки
        dataGridView_XPath.CellContentClick  += delegate (object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
        }
;
        /// Клик по картинке. Загрузка дерева элементов и атрибутов.
        listView_Files.SelectedIndexChanged  += delegate (object sender, System.EventArgs e)
        {
            tabControl_Left.SelectedTab = tabPage_File;
            if (listView_Files.SelectedIndices.Count == 0)
            {
                return;
            }
            string nameSelectedFile = string.Empty;
            if (listView_Files.FocusedItem != null)
            {
                nameSelectedFile = listView_Files.FocusedItem.Text;
            }
        }
;
        /// Поле ввода текста для поиска
        textBox_Search.TextChanged  += delegate (object sender, System.EventArgs e)
        {
            if (!button_Search.Enabled)
            {
                button_Search.Enabled = true;
            }
        }
;
        /// Выбор узла в дереве элементов
        treeView_Full.AfterSelect  += delegate (object sender, System.Windows.Forms.TreeViewEventArgs e)
        {
            string curNode = treeView_Full.SelectedNode.Text;
            string bounds = curNode.Split(' ').Last();// [871,1769][1073,1977]
        }
;
        /// При загрузке формы
        XPath_Helper_Form.Load  += delegate (object sender, System.EventArgs e)
        {
            label_ConnectStatus.Text = "No Devices";
            label_SaveInfo.Text = "Click the Connect button";
            comboBox_ConnectMode.Text = "ADB";
            if (comboBox_ConnectMode.Text.ToLower() == "adb")
            {
                checkBox_WebView.Enabled = false;
            }
            button_Save.Enabled = false;
            string workDir = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            string path = System.IO.Path.Combine(workDir, "XPathHelper", "SaveScreens");
            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            label_ResultDir.Text = path;
            pathSave = label_ResultDir.Text;
            string[] adbDevices = null;
            try
            {
                adbDevices = new string[] { "Выберите устройство" };
            }
            catch (Exception ex)
            {
                tabControl_Selected.SelectedTab = tabPage_XmlCode;
                richTextBox_XmlNode.SelectionColor = System.Drawing.Color.Red;
                richTextBox_XmlNode.SelectionFont = new System.Drawing.Font("Arial", 12, System.Drawing.FontStyle.Regular);
                richTextBox_XmlNode.AppendText("Проверьте настройку окружения и PATH" + Environment.NewLine);
                richTextBox_XmlNode.AppendText(ex.Message + Environment.NewLine + ex.StackTrace + Environment.NewLine);
                string message = ex.Message;
                System.Windows.Forms.MessageBox.Show(message, "Ошибка! ",// Заголовок
                                              System.Windows.Forms.MessageBoxButtons.OK,
                                              System.Windows.Forms.MessageBoxIcon.Error,
                                              System.Windows.Forms.MessageBoxDefaultButton.Button1,
                                              System.Windows.Forms.MessageBoxOptions.DefaultDesktopOnly);
                return;
            }
            comboBox_Devices.Items.AddRange(adbDevices);
            if (adbDevices != null && adbDevices.Length == 1)
            {
                comboBox_Devices.SelectedIndex = 0;
                tabControl_Selected.SelectedTab = tabPage_XmlCode;
                richTextBox_XmlNode.SelectionColor = System.Drawing.Color.Red;
                richTextBox_XmlNode.SelectionFont = new System.Drawing.Font("Arial", 14, System.Drawing.FontStyle.Bold);
                richTextBox_XmlNode.AppendText("Выберите файл скриншота или" + Environment.NewLine + Environment.NewLine + "Проверьте список adb devices" + Environment.NewLine + "и перезапустите проект" + Environment.NewLine + "Проверьте настройку PATH" + Environment.NewLine);
            }
            else
            {
                richTextBox_XmlNode.Clear();
                comboBox_Devices.Items.Add("Выберите устройство");
                comboBox_Devices.SelectedItem = "Выберите устройство";
            }
            if (checkBox_FileName.Checked == true)
            {// Меняем видимость поля ввода xpath для xml
                textBox_FileName.Enabled = true;
                textBox_FileName.Text = string.Empty;
            }
            else
            {
                textBox_FileName.Enabled = false;
                textBox_FileName.Text = "Input Name Screen";
            }
            comboBox_Search.Items.AddRange(new string[] { "xpath", "all", "index", "text", "resource-id", "class", "package", "content-desc", "checkable", "checked", "clickable", "enabled", "focusable", "focused", "scrollable", "long-clickable", "password", "selected", "bounds" });
            comboBox_Search.SelectedItem = "all";
            button_Search.Enabled = false;
            label_Selected.Text = "0";
        }
;
        /// Ссылка на телеграм канал
        linkLabel_TGChannel.LinkClicked  += delegate (object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("https://t.me/radv_softnews");
        }
;
        /// Ссылка на тему ZennolAb
        linkLabel_Forum.LinkClicked  += delegate (object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("https://zennolab.com/discussion/threads/plugin-upravlenie-realnymi-android-ustrojstvami.89446/");
        }
;
        /// Копирование xpath в буфер
        button_CopyXPath.Click  += delegate (object sender, System.EventArgs e)
        {
        }
;
        /// Очистка поля поиска
        label_Selected.Click  += delegate (object sender, System.EventArgs e)
        {
            textBox_Search.Clear();
            label_Selected.Text = "0";
        }
;
        /// Добавление /parent::
        button_Parent.Click  += delegate (object sender, System.EventArgs e)
        {
            if (comboBox_Search.Text != "xpath")
            {
                comboBox_Search.Text = "xpath";
            }
        }
;
        /// Добавление /following::
        button_Following.Click  += delegate (object sender, System.EventArgs e)
        {
            if (comboBox_Search.Text != "xpath")
            {
                comboBox_Search.Text = "xpath";
            }
        }
;
        /// Добавление /preceding::
        button_Preceding.Click  += delegate (object sender, System.EventArgs e)
        {
            if (comboBox_Search.Text != "xpath")
            {
                comboBox_Search.Text = "xpath";
            }
        }
;
        /// Добавление /preceding-sibling::
        button_PSibling.Click  += delegate (object sender, System.EventArgs e)
        {
            if (comboBox_Search.Text != "xpath")
            {
                comboBox_Search.Text = "xpath";
            }
        }
;
        /// Добавление /following-sibling::
        button_FSibling.Click  += delegate (object sender, System.EventArgs e)
        {
            if (comboBox_Search.Text != "xpath")
            {
                comboBox_Search.Text = "xpath";
            }
        }
;
        /// Добавление в поле поиска
        button_CopyToSearch.Click  += delegate (object sender, System.EventArgs e)
        {
            if (comboBox_Search.Text != "xpath")
            {
                comboBox_Search.Text = "xpath";// Очищает поле ввода.
            }
        }
;
        /// Клик по картинке
        pictureBox_Screen.Click  += delegate (object sender, System.EventArgs e)
        {
        }
;
        /// Закрытие формы. Остановка процессов
        XPath_Helper_Form.FormClosing  += delegate (object sender, System.Windows.Forms.FormClosingEventArgs e)
        {
        }
;
        /// Изменение выбора в списке
        comboBox_Devices.SelectedIndexChanged  += delegate (object sender, EventArgs e)
        {

ZF.ShowForm();
