Compare commits
No commits in common. "app-source-code" and "v0.2" have entirely different histories.
app-source
...
v0.2
Binary file not shown.
535
SOURCE/Plugin/DeviceDescription.Designer.cs
generated
535
SOURCE/Plugin/DeviceDescription.Designer.cs
generated
@ -55,9 +55,8 @@ namespace Aml.Editor.Plugin
|
|||||||
this.automationComponentLibraryv100FullCAEX3BETAToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.automationComponentLibraryv100FullCAEX3BETAToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.electricConnectorLibraryv100ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.electricConnectorLibraryv100ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.industrialSensorLibraryv100ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.industrialSensorLibraryv100ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.advancedModeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.advancedModeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.caexVersionFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.helpButton = new System.Windows.Forms.ToolStripDropDownButton();
|
this.helpButton = new System.Windows.Forms.ToolStripDropDownButton();
|
||||||
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.manualToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.manualToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
@ -95,6 +94,22 @@ namespace Aml.Editor.Plugin
|
|||||||
this.dataGridViewTextBoxColumn27 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.dataGridViewTextBoxColumn27 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.dataGridViewTextBoxColumn28 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.dataGridViewTextBoxColumn28 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.dataGridViewTextBoxColumn29 = new System.Windows.Forms.DataGridViewComboBoxColumn();
|
this.dataGridViewTextBoxColumn29 = new System.Windows.Forms.DataGridViewComboBoxColumn();
|
||||||
|
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||||
|
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||||
|
this.genericDataNameTxtBx = new System.Windows.Forms.TextBox();
|
||||||
|
this.genericDataIDTxtBx = new System.Windows.Forms.TextBox();
|
||||||
|
this.genericDataAttributePathTxtBx = new System.Windows.Forms.TextBox();
|
||||||
|
this.genericDataRefBaseClassPathTxtBx = new System.Windows.Forms.TextBox();
|
||||||
|
this.genericDataRefClassNameTxtBx = new System.Windows.Forms.TextBox();
|
||||||
|
this.genericDataCopyrightTxtBx = new System.Windows.Forms.TextBox();
|
||||||
|
this.TableHeader_lbl_Name = new System.Windows.Forms.Label();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
|
this.label7 = new System.Windows.Forms.Label();
|
||||||
|
this.genericDataDescriptionTxtBx = new System.Windows.Forms.TextBox();
|
||||||
this.toolStrip5 = new System.Windows.Forms.ToolStrip();
|
this.toolStrip5 = new System.Windows.Forms.ToolStrip();
|
||||||
this.genericDataHeaderLabel = new System.Windows.Forms.ToolStripLabel();
|
this.genericDataHeaderLabel = new System.Windows.Forms.ToolStripLabel();
|
||||||
this.Interface = new System.Windows.Forms.TabPage();
|
this.Interface = new System.Windows.Forms.TabPage();
|
||||||
@ -109,6 +124,22 @@ namespace Aml.Editor.Plugin
|
|||||||
this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewComboBoxColumn();
|
this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewComboBoxColumn();
|
||||||
|
this.header = new System.Windows.Forms.TabPage();
|
||||||
|
this.headerpanelTabelLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
|
||||||
|
this.nameTxtBxElecAttri = new System.Windows.Forms.TextBox();
|
||||||
|
this.idTxtBxElecAttri = new System.Windows.Forms.TextBox();
|
||||||
|
this.attributepathTxtBxElecAttri = new System.Windows.Forms.TextBox();
|
||||||
|
this.RefBaseClassPathTxtBxElecAttri = new System.Windows.Forms.TextBox();
|
||||||
|
this.RefClassNameTxtBxElecAttri = new System.Windows.Forms.TextBox();
|
||||||
|
this.copyrightTxtBxElecAttri = new System.Windows.Forms.TextBox();
|
||||||
|
this.label31 = new System.Windows.Forms.Label();
|
||||||
|
this.label29 = new System.Windows.Forms.Label();
|
||||||
|
this.label27 = new System.Windows.Forms.Label();
|
||||||
|
this.label25 = new System.Windows.Forms.Label();
|
||||||
|
this.label21 = new System.Windows.Forms.Label();
|
||||||
|
this.TableHeader_lbl_Copyright = new System.Windows.Forms.Label();
|
||||||
|
this.TableHeader_lbl_Description = new System.Windows.Forms.Label();
|
||||||
|
this.descriptionTxtBoxElecAttri = new System.Windows.Forms.TextBox();
|
||||||
this.toolStrip2 = new System.Windows.Forms.ToolStrip();
|
this.toolStrip2 = new System.Windows.Forms.ToolStrip();
|
||||||
this.electricalInterfacesHeaderlabel = new System.Windows.Forms.ToolStripLabel();
|
this.electricalInterfacesHeaderlabel = new System.Windows.Forms.ToolStripLabel();
|
||||||
this.Page3_TopPanel = new System.Windows.Forms.Panel();
|
this.Page3_TopPanel = new System.Windows.Forms.Panel();
|
||||||
@ -218,6 +249,8 @@ namespace Aml.Editor.Plugin
|
|||||||
this.tabControl1.SuspendLayout();
|
this.tabControl1.SuspendLayout();
|
||||||
this.tabPage1.SuspendLayout();
|
this.tabPage1.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.genericparametersAttrDataGridView)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.genericparametersAttrDataGridView)).BeginInit();
|
||||||
|
this.tabPage2.SuspendLayout();
|
||||||
|
this.tableLayoutPanel1.SuspendLayout();
|
||||||
this.toolStrip5.SuspendLayout();
|
this.toolStrip5.SuspendLayout();
|
||||||
this.Interface.SuspendLayout();
|
this.Interface.SuspendLayout();
|
||||||
this.electricalInterfacesPanel.SuspendLayout();
|
this.electricalInterfacesPanel.SuspendLayout();
|
||||||
@ -225,6 +258,8 @@ namespace Aml.Editor.Plugin
|
|||||||
this.tabControlElectricalAttributes.SuspendLayout();
|
this.tabControlElectricalAttributes.SuspendLayout();
|
||||||
this.attributestab.SuspendLayout();
|
this.attributestab.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.elecInterAttDataGridView)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.elecInterAttDataGridView)).BeginInit();
|
||||||
|
this.header.SuspendLayout();
|
||||||
|
this.headerpanelTabelLayoutPanel.SuspendLayout();
|
||||||
this.toolStrip2.SuspendLayout();
|
this.toolStrip2.SuspendLayout();
|
||||||
this.Page3_TopPanel.SuspendLayout();
|
this.Page3_TopPanel.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.electricalInterfacesCollectionDataGridView)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.electricalInterfacesCollectionDataGridView)).BeginInit();
|
||||||
@ -258,7 +293,7 @@ namespace Aml.Editor.Plugin
|
|||||||
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
this.fileButton,
|
this.fileButton,
|
||||||
this.librariesSplitButton,
|
this.librariesSplitButton,
|
||||||
this.optionsToolStripMenuItem,
|
this.viewToolStripMenuItem,
|
||||||
this.helpButton,
|
this.helpButton,
|
||||||
this.vendorNameTextBox,
|
this.vendorNameTextBox,
|
||||||
this.filePathLabel,
|
this.filePathLabel,
|
||||||
@ -406,29 +441,21 @@ namespace Aml.Editor.Plugin
|
|||||||
this.industrialSensorLibraryv100ToolStripMenuItem.Text = "IndustrialSensorLibrary_v1_0_0";
|
this.industrialSensorLibraryv100ToolStripMenuItem.Text = "IndustrialSensorLibrary_v1_0_0";
|
||||||
this.industrialSensorLibraryv100ToolStripMenuItem.Click += new System.EventHandler(this.industrialSensorLibraryv100ToolStripMenuItem_Click);
|
this.industrialSensorLibraryv100ToolStripMenuItem.Click += new System.EventHandler(this.industrialSensorLibraryv100ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// optionsToolStripMenuItem
|
// viewToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.optionsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
this.advancedModeToolStripMenuItem,
|
this.advancedModeToolStripMenuItem});
|
||||||
this.caexVersionFileToolStripMenuItem});
|
this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
|
||||||
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
|
this.viewToolStripMenuItem.Size = new System.Drawing.Size(44, 23);
|
||||||
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(61, 23);
|
this.viewToolStripMenuItem.Text = "View";
|
||||||
this.optionsToolStripMenuItem.Text = "Options";
|
|
||||||
//
|
//
|
||||||
// advancedModeToolStripMenuItem
|
// advancedModeToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.advancedModeToolStripMenuItem.Name = "advancedModeToolStripMenuItem";
|
this.advancedModeToolStripMenuItem.Name = "advancedModeToolStripMenuItem";
|
||||||
this.advancedModeToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
|
this.advancedModeToolStripMenuItem.Size = new System.Drawing.Size(161, 22);
|
||||||
this.advancedModeToolStripMenuItem.Text = "Advanced Mode";
|
this.advancedModeToolStripMenuItem.Text = "Advanced Mode";
|
||||||
this.advancedModeToolStripMenuItem.Click += new System.EventHandler(this.advancedModeToolStripMenuItem_Click);
|
this.advancedModeToolStripMenuItem.Click += new System.EventHandler(this.advancedModeToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// caexVersionFileToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.caexVersionFileToolStripMenuItem.Name = "caexVersionFileToolStripMenuItem";
|
|
||||||
this.caexVersionFileToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
|
|
||||||
this.caexVersionFileToolStripMenuItem.Text = "Use CAEX 2.15 File";
|
|
||||||
this.caexVersionFileToolStripMenuItem.Click += new System.EventHandler(this.caexVersionFileToolStripMenuItem_Click);
|
|
||||||
//
|
|
||||||
// helpButton
|
// helpButton
|
||||||
//
|
//
|
||||||
this.helpButton.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.helpButton.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
@ -749,6 +776,7 @@ namespace Aml.Editor.Plugin
|
|||||||
// tabControl1
|
// tabControl1
|
||||||
//
|
//
|
||||||
this.tabControl1.Controls.Add(this.tabPage1);
|
this.tabControl1.Controls.Add(this.tabPage1);
|
||||||
|
this.tabControl1.Controls.Add(this.tabPage2);
|
||||||
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.tabControl1.Location = new System.Drawing.Point(0, 25);
|
this.tabControl1.Location = new System.Drawing.Point(0, 25);
|
||||||
this.tabControl1.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
this.tabControl1.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||||
@ -835,6 +863,220 @@ namespace Aml.Editor.Plugin
|
|||||||
this.dataGridViewTextBoxColumn29.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
this.dataGridViewTextBoxColumn29.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
this.dataGridViewTextBoxColumn29.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
this.dataGridViewTextBoxColumn29.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
//
|
//
|
||||||
|
// tabPage2
|
||||||
|
//
|
||||||
|
this.tabPage2.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||||
|
this.tabPage2.Controls.Add(this.tableLayoutPanel1);
|
||||||
|
this.tabPage2.Location = new System.Drawing.Point(4, 26);
|
||||||
|
this.tabPage2.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||||
|
this.tabPage2.Name = "tabPage2";
|
||||||
|
this.tabPage2.Padding = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||||
|
this.tabPage2.RightToLeft = System.Windows.Forms.RightToLeft.No;
|
||||||
|
this.tabPage2.Size = new System.Drawing.Size(1317, 346);
|
||||||
|
this.tabPage2.TabIndex = 1;
|
||||||
|
this.tabPage2.Text = "Header";
|
||||||
|
//
|
||||||
|
// tableLayoutPanel1
|
||||||
|
//
|
||||||
|
this.tableLayoutPanel1.AutoSize = true;
|
||||||
|
this.tableLayoutPanel1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||||
|
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
|
||||||
|
this.tableLayoutPanel1.ColumnCount = 2;
|
||||||
|
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 29.09091F));
|
||||||
|
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 70.90909F));
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.genericDataNameTxtBx, 1, 6);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.genericDataIDTxtBx, 1, 5);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.genericDataAttributePathTxtBx, 1, 4);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.genericDataRefBaseClassPathTxtBx, 1, 3);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.genericDataRefClassNameTxtBx, 1, 2);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.genericDataCopyrightTxtBx, 1, 1);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.TableHeader_lbl_Name, 0, 6);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 5);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.label3, 0, 4);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.label4, 0, 3);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.label5, 0, 2);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.label6, 0, 1);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.label7, 0, 0);
|
||||||
|
this.tableLayoutPanel1.Controls.Add(this.genericDataDescriptionTxtBx, 1, 0);
|
||||||
|
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.tableLayoutPanel1.Location = new System.Drawing.Point(2, 3);
|
||||||
|
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||||
|
this.tableLayoutPanel1.MaximumSize = new System.Drawing.Size(0, 300);
|
||||||
|
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||||
|
this.tableLayoutPanel1.RowCount = 7;
|
||||||
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||||
|
this.tableLayoutPanel1.Size = new System.Drawing.Size(1313, 300);
|
||||||
|
this.tableLayoutPanel1.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// genericDataNameTxtBx
|
||||||
|
//
|
||||||
|
this.genericDataNameTxtBx.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.genericDataNameTxtBx.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.genericDataNameTxtBx.Location = new System.Drawing.Point(383, 263);
|
||||||
|
this.genericDataNameTxtBx.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.genericDataNameTxtBx.Name = "genericDataNameTxtBx";
|
||||||
|
this.genericDataNameTxtBx.Size = new System.Drawing.Size(929, 25);
|
||||||
|
this.genericDataNameTxtBx.TabIndex = 24;
|
||||||
|
//
|
||||||
|
// genericDataIDTxtBx
|
||||||
|
//
|
||||||
|
this.genericDataIDTxtBx.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.genericDataIDTxtBx.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.genericDataIDTxtBx.Location = new System.Drawing.Point(383, 219);
|
||||||
|
this.genericDataIDTxtBx.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.genericDataIDTxtBx.Name = "genericDataIDTxtBx";
|
||||||
|
this.genericDataIDTxtBx.Size = new System.Drawing.Size(929, 25);
|
||||||
|
this.genericDataIDTxtBx.TabIndex = 23;
|
||||||
|
//
|
||||||
|
// genericDataAttributePathTxtBx
|
||||||
|
//
|
||||||
|
this.genericDataAttributePathTxtBx.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.genericDataAttributePathTxtBx.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.genericDataAttributePathTxtBx.Location = new System.Drawing.Point(383, 177);
|
||||||
|
this.genericDataAttributePathTxtBx.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.genericDataAttributePathTxtBx.Name = "genericDataAttributePathTxtBx";
|
||||||
|
this.genericDataAttributePathTxtBx.Size = new System.Drawing.Size(929, 25);
|
||||||
|
this.genericDataAttributePathTxtBx.TabIndex = 22;
|
||||||
|
//
|
||||||
|
// genericDataRefBaseClassPathTxtBx
|
||||||
|
//
|
||||||
|
this.genericDataRefBaseClassPathTxtBx.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.genericDataRefBaseClassPathTxtBx.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.genericDataRefBaseClassPathTxtBx.Location = new System.Drawing.Point(383, 135);
|
||||||
|
this.genericDataRefBaseClassPathTxtBx.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.genericDataRefBaseClassPathTxtBx.Name = "genericDataRefBaseClassPathTxtBx";
|
||||||
|
this.genericDataRefBaseClassPathTxtBx.Size = new System.Drawing.Size(929, 25);
|
||||||
|
this.genericDataRefBaseClassPathTxtBx.TabIndex = 21;
|
||||||
|
//
|
||||||
|
// genericDataRefClassNameTxtBx
|
||||||
|
//
|
||||||
|
this.genericDataRefClassNameTxtBx.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.genericDataRefClassNameTxtBx.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.genericDataRefClassNameTxtBx.Location = new System.Drawing.Point(383, 93);
|
||||||
|
this.genericDataRefClassNameTxtBx.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.genericDataRefClassNameTxtBx.Name = "genericDataRefClassNameTxtBx";
|
||||||
|
this.genericDataRefClassNameTxtBx.Size = new System.Drawing.Size(929, 25);
|
||||||
|
this.genericDataRefClassNameTxtBx.TabIndex = 20;
|
||||||
|
//
|
||||||
|
// genericDataCopyrightTxtBx
|
||||||
|
//
|
||||||
|
this.genericDataCopyrightTxtBx.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.genericDataCopyrightTxtBx.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.genericDataCopyrightTxtBx.Location = new System.Drawing.Point(383, 51);
|
||||||
|
this.genericDataCopyrightTxtBx.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.genericDataCopyrightTxtBx.Name = "genericDataCopyrightTxtBx";
|
||||||
|
this.genericDataCopyrightTxtBx.Size = new System.Drawing.Size(929, 25);
|
||||||
|
this.genericDataCopyrightTxtBx.TabIndex = 19;
|
||||||
|
//
|
||||||
|
// TableHeader_lbl_Name
|
||||||
|
//
|
||||||
|
this.TableHeader_lbl_Name.AccessibleName = "";
|
||||||
|
this.TableHeader_lbl_Name.AutoSize = true;
|
||||||
|
this.TableHeader_lbl_Name.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.TableHeader_lbl_Name.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.TableHeader_lbl_Name.Location = new System.Drawing.Point(3, 253);
|
||||||
|
this.TableHeader_lbl_Name.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.TableHeader_lbl_Name.Name = "TableHeader_lbl_Name";
|
||||||
|
this.TableHeader_lbl_Name.Size = new System.Drawing.Size(377, 46);
|
||||||
|
this.TableHeader_lbl_Name.TabIndex = 12;
|
||||||
|
this.TableHeader_lbl_Name.Text = "Name";
|
||||||
|
this.TableHeader_lbl_Name.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label2.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.label2.Location = new System.Drawing.Point(3, 211);
|
||||||
|
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(377, 41);
|
||||||
|
this.label2.TabIndex = 10;
|
||||||
|
this.label2.Text = "ID";
|
||||||
|
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label3.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.label3.Location = new System.Drawing.Point(3, 169);
|
||||||
|
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(377, 41);
|
||||||
|
this.label3.TabIndex = 8;
|
||||||
|
this.label3.Text = "Attribute Path";
|
||||||
|
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label4.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.label4.Location = new System.Drawing.Point(3, 127);
|
||||||
|
this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(377, 41);
|
||||||
|
this.label4.TabIndex = 6;
|
||||||
|
this.label4.Text = "Referenced Base Class Path";
|
||||||
|
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
this.label5.AutoSize = true;
|
||||||
|
this.label5.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label5.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.label5.Location = new System.Drawing.Point(3, 85);
|
||||||
|
this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label5.Name = "label5";
|
||||||
|
this.label5.Size = new System.Drawing.Size(377, 41);
|
||||||
|
this.label5.TabIndex = 4;
|
||||||
|
this.label5.Text = "Referenced Class Name";
|
||||||
|
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// label6
|
||||||
|
//
|
||||||
|
this.label6.AutoSize = true;
|
||||||
|
this.label6.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label6.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.label6.Location = new System.Drawing.Point(3, 43);
|
||||||
|
this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label6.Name = "label6";
|
||||||
|
this.label6.Size = new System.Drawing.Size(377, 41);
|
||||||
|
this.label6.TabIndex = 2;
|
||||||
|
this.label6.Text = "Copyright";
|
||||||
|
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// label7
|
||||||
|
//
|
||||||
|
this.label7.AutoSize = true;
|
||||||
|
this.label7.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label7.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.label7.Location = new System.Drawing.Point(3, 1);
|
||||||
|
this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label7.Name = "label7";
|
||||||
|
this.label7.Size = new System.Drawing.Size(377, 41);
|
||||||
|
this.label7.TabIndex = 0;
|
||||||
|
this.label7.Text = "Description";
|
||||||
|
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// genericDataDescriptionTxtBx
|
||||||
|
//
|
||||||
|
this.genericDataDescriptionTxtBx.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.genericDataDescriptionTxtBx.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.genericDataDescriptionTxtBx.Location = new System.Drawing.Point(383, 9);
|
||||||
|
this.genericDataDescriptionTxtBx.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.genericDataDescriptionTxtBx.Name = "genericDataDescriptionTxtBx";
|
||||||
|
this.genericDataDescriptionTxtBx.Size = new System.Drawing.Size(929, 25);
|
||||||
|
this.genericDataDescriptionTxtBx.TabIndex = 18;
|
||||||
|
//
|
||||||
// toolStrip5
|
// toolStrip5
|
||||||
//
|
//
|
||||||
this.toolStrip5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(158)))), ((int)(((byte)(158)))));
|
this.toolStrip5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(158)))), ((int)(((byte)(158)))));
|
||||||
@ -898,6 +1140,7 @@ namespace Aml.Editor.Plugin
|
|||||||
// tabControlElectricalAttributes
|
// tabControlElectricalAttributes
|
||||||
//
|
//
|
||||||
this.tabControlElectricalAttributes.Controls.Add(this.attributestab);
|
this.tabControlElectricalAttributes.Controls.Add(this.attributestab);
|
||||||
|
this.tabControlElectricalAttributes.Controls.Add(this.header);
|
||||||
this.tabControlElectricalAttributes.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.tabControlElectricalAttributes.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.tabControlElectricalAttributes.Location = new System.Drawing.Point(0, 25);
|
this.tabControlElectricalAttributes.Location = new System.Drawing.Point(0, 25);
|
||||||
this.tabControlElectricalAttributes.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
this.tabControlElectricalAttributes.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||||
@ -984,6 +1227,219 @@ namespace Aml.Editor.Plugin
|
|||||||
this.dataGridViewTextBoxColumn22.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
this.dataGridViewTextBoxColumn22.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
this.dataGridViewTextBoxColumn22.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
this.dataGridViewTextBoxColumn22.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
//
|
//
|
||||||
|
// header
|
||||||
|
//
|
||||||
|
this.header.AutoScroll = true;
|
||||||
|
this.header.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||||
|
this.header.Controls.Add(this.headerpanelTabelLayoutPanel);
|
||||||
|
this.header.Location = new System.Drawing.Point(4, 26);
|
||||||
|
this.header.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||||
|
this.header.Name = "header";
|
||||||
|
this.header.Padding = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||||
|
this.header.Size = new System.Drawing.Size(1317, 345);
|
||||||
|
this.header.TabIndex = 1;
|
||||||
|
this.header.Text = "Header";
|
||||||
|
//
|
||||||
|
// headerpanelTabelLayoutPanel
|
||||||
|
//
|
||||||
|
this.headerpanelTabelLayoutPanel.AutoSize = true;
|
||||||
|
this.headerpanelTabelLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||||
|
this.headerpanelTabelLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
|
||||||
|
this.headerpanelTabelLayoutPanel.ColumnCount = 2;
|
||||||
|
this.headerpanelTabelLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 29.02047F));
|
||||||
|
this.headerpanelTabelLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 70.97953F));
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.nameTxtBxElecAttri, 1, 6);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.idTxtBxElecAttri, 1, 5);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.attributepathTxtBxElecAttri, 1, 4);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.RefBaseClassPathTxtBxElecAttri, 1, 3);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.RefClassNameTxtBxElecAttri, 1, 2);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.copyrightTxtBxElecAttri, 1, 1);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.label31, 0, 6);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.label29, 0, 5);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.label27, 0, 4);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.label25, 0, 3);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.label21, 0, 2);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.TableHeader_lbl_Copyright, 0, 1);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.TableHeader_lbl_Description, 0, 0);
|
||||||
|
this.headerpanelTabelLayoutPanel.Controls.Add(this.descriptionTxtBoxElecAttri, 1, 0);
|
||||||
|
this.headerpanelTabelLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.headerpanelTabelLayoutPanel.Location = new System.Drawing.Point(2, 3);
|
||||||
|
this.headerpanelTabelLayoutPanel.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||||
|
this.headerpanelTabelLayoutPanel.MaximumSize = new System.Drawing.Size(0, 300);
|
||||||
|
this.headerpanelTabelLayoutPanel.Name = "headerpanelTabelLayoutPanel";
|
||||||
|
this.headerpanelTabelLayoutPanel.RowCount = 7;
|
||||||
|
this.headerpanelTabelLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.headerpanelTabelLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.headerpanelTabelLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.headerpanelTabelLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.headerpanelTabelLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.headerpanelTabelLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.headerpanelTabelLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
|
||||||
|
this.headerpanelTabelLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||||
|
this.headerpanelTabelLayoutPanel.Size = new System.Drawing.Size(1313, 300);
|
||||||
|
this.headerpanelTabelLayoutPanel.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// nameTxtBxElecAttri
|
||||||
|
//
|
||||||
|
this.nameTxtBxElecAttri.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.nameTxtBxElecAttri.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.nameTxtBxElecAttri.Location = new System.Drawing.Point(382, 263);
|
||||||
|
this.nameTxtBxElecAttri.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.nameTxtBxElecAttri.Name = "nameTxtBxElecAttri";
|
||||||
|
this.nameTxtBxElecAttri.Size = new System.Drawing.Size(930, 25);
|
||||||
|
this.nameTxtBxElecAttri.TabIndex = 24;
|
||||||
|
//
|
||||||
|
// idTxtBxElecAttri
|
||||||
|
//
|
||||||
|
this.idTxtBxElecAttri.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.idTxtBxElecAttri.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.idTxtBxElecAttri.Location = new System.Drawing.Point(382, 219);
|
||||||
|
this.idTxtBxElecAttri.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.idTxtBxElecAttri.Name = "idTxtBxElecAttri";
|
||||||
|
this.idTxtBxElecAttri.Size = new System.Drawing.Size(930, 25);
|
||||||
|
this.idTxtBxElecAttri.TabIndex = 23;
|
||||||
|
//
|
||||||
|
// attributepathTxtBxElecAttri
|
||||||
|
//
|
||||||
|
this.attributepathTxtBxElecAttri.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.attributepathTxtBxElecAttri.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.attributepathTxtBxElecAttri.Location = new System.Drawing.Point(382, 177);
|
||||||
|
this.attributepathTxtBxElecAttri.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.attributepathTxtBxElecAttri.Name = "attributepathTxtBxElecAttri";
|
||||||
|
this.attributepathTxtBxElecAttri.Size = new System.Drawing.Size(930, 25);
|
||||||
|
this.attributepathTxtBxElecAttri.TabIndex = 22;
|
||||||
|
//
|
||||||
|
// RefBaseClassPathTxtBxElecAttri
|
||||||
|
//
|
||||||
|
this.RefBaseClassPathTxtBxElecAttri.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.RefBaseClassPathTxtBxElecAttri.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.RefBaseClassPathTxtBxElecAttri.Location = new System.Drawing.Point(382, 135);
|
||||||
|
this.RefBaseClassPathTxtBxElecAttri.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.RefBaseClassPathTxtBxElecAttri.Name = "RefBaseClassPathTxtBxElecAttri";
|
||||||
|
this.RefBaseClassPathTxtBxElecAttri.Size = new System.Drawing.Size(930, 25);
|
||||||
|
this.RefBaseClassPathTxtBxElecAttri.TabIndex = 21;
|
||||||
|
//
|
||||||
|
// RefClassNameTxtBxElecAttri
|
||||||
|
//
|
||||||
|
this.RefClassNameTxtBxElecAttri.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.RefClassNameTxtBxElecAttri.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.RefClassNameTxtBxElecAttri.Location = new System.Drawing.Point(382, 93);
|
||||||
|
this.RefClassNameTxtBxElecAttri.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.RefClassNameTxtBxElecAttri.Name = "RefClassNameTxtBxElecAttri";
|
||||||
|
this.RefClassNameTxtBxElecAttri.Size = new System.Drawing.Size(930, 25);
|
||||||
|
this.RefClassNameTxtBxElecAttri.TabIndex = 20;
|
||||||
|
//
|
||||||
|
// copyrightTxtBxElecAttri
|
||||||
|
//
|
||||||
|
this.copyrightTxtBxElecAttri.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.copyrightTxtBxElecAttri.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.copyrightTxtBxElecAttri.Location = new System.Drawing.Point(382, 51);
|
||||||
|
this.copyrightTxtBxElecAttri.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.copyrightTxtBxElecAttri.Name = "copyrightTxtBxElecAttri";
|
||||||
|
this.copyrightTxtBxElecAttri.Size = new System.Drawing.Size(930, 25);
|
||||||
|
this.copyrightTxtBxElecAttri.TabIndex = 19;
|
||||||
|
//
|
||||||
|
// label31
|
||||||
|
//
|
||||||
|
this.label31.AutoSize = true;
|
||||||
|
this.label31.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label31.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.label31.Location = new System.Drawing.Point(3, 253);
|
||||||
|
this.label31.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label31.Name = "label31";
|
||||||
|
this.label31.Size = new System.Drawing.Size(376, 46);
|
||||||
|
this.label31.TabIndex = 12;
|
||||||
|
this.label31.Text = "Name";
|
||||||
|
this.label31.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// label29
|
||||||
|
//
|
||||||
|
this.label29.AutoSize = true;
|
||||||
|
this.label29.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label29.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.label29.Location = new System.Drawing.Point(3, 211);
|
||||||
|
this.label29.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label29.Name = "label29";
|
||||||
|
this.label29.Size = new System.Drawing.Size(376, 41);
|
||||||
|
this.label29.TabIndex = 10;
|
||||||
|
this.label29.Text = "ID";
|
||||||
|
this.label29.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// label27
|
||||||
|
//
|
||||||
|
this.label27.AutoSize = true;
|
||||||
|
this.label27.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label27.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.label27.Location = new System.Drawing.Point(3, 169);
|
||||||
|
this.label27.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label27.Name = "label27";
|
||||||
|
this.label27.Size = new System.Drawing.Size(376, 41);
|
||||||
|
this.label27.TabIndex = 8;
|
||||||
|
this.label27.Text = "Attribute Path";
|
||||||
|
this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// label25
|
||||||
|
//
|
||||||
|
this.label25.AutoSize = true;
|
||||||
|
this.label25.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label25.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.label25.Location = new System.Drawing.Point(3, 127);
|
||||||
|
this.label25.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label25.Name = "label25";
|
||||||
|
this.label25.Size = new System.Drawing.Size(376, 41);
|
||||||
|
this.label25.TabIndex = 6;
|
||||||
|
this.label25.Text = "Referenced Base Class Path";
|
||||||
|
this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// label21
|
||||||
|
//
|
||||||
|
this.label21.AutoSize = true;
|
||||||
|
this.label21.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label21.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.label21.Location = new System.Drawing.Point(3, 85);
|
||||||
|
this.label21.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.label21.Name = "label21";
|
||||||
|
this.label21.Size = new System.Drawing.Size(376, 41);
|
||||||
|
this.label21.TabIndex = 4;
|
||||||
|
this.label21.Text = "Referenced Class Name";
|
||||||
|
this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// TableHeader_lbl_Copyright
|
||||||
|
//
|
||||||
|
this.TableHeader_lbl_Copyright.AutoSize = true;
|
||||||
|
this.TableHeader_lbl_Copyright.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.TableHeader_lbl_Copyright.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.TableHeader_lbl_Copyright.Location = new System.Drawing.Point(3, 43);
|
||||||
|
this.TableHeader_lbl_Copyright.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.TableHeader_lbl_Copyright.Name = "TableHeader_lbl_Copyright";
|
||||||
|
this.TableHeader_lbl_Copyright.Size = new System.Drawing.Size(376, 41);
|
||||||
|
this.TableHeader_lbl_Copyright.TabIndex = 2;
|
||||||
|
this.TableHeader_lbl_Copyright.Text = "Copyright";
|
||||||
|
this.TableHeader_lbl_Copyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// TableHeader_lbl_Description
|
||||||
|
//
|
||||||
|
this.TableHeader_lbl_Description.AutoSize = true;
|
||||||
|
this.TableHeader_lbl_Description.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.TableHeader_lbl_Description.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.TableHeader_lbl_Description.Location = new System.Drawing.Point(3, 1);
|
||||||
|
this.TableHeader_lbl_Description.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
this.TableHeader_lbl_Description.Name = "TableHeader_lbl_Description";
|
||||||
|
this.TableHeader_lbl_Description.Size = new System.Drawing.Size(376, 41);
|
||||||
|
this.TableHeader_lbl_Description.TabIndex = 0;
|
||||||
|
this.TableHeader_lbl_Description.Text = "Description";
|
||||||
|
this.TableHeader_lbl_Description.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// descriptionTxtBoxElecAttri
|
||||||
|
//
|
||||||
|
this.descriptionTxtBoxElecAttri.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.descriptionTxtBoxElecAttri.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.descriptionTxtBoxElecAttri.Location = new System.Drawing.Point(382, 9);
|
||||||
|
this.descriptionTxtBoxElecAttri.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.descriptionTxtBoxElecAttri.Name = "descriptionTxtBoxElecAttri";
|
||||||
|
this.descriptionTxtBoxElecAttri.Size = new System.Drawing.Size(930, 25);
|
||||||
|
this.descriptionTxtBoxElecAttri.TabIndex = 18;
|
||||||
|
//
|
||||||
// toolStrip2
|
// toolStrip2
|
||||||
//
|
//
|
||||||
this.toolStrip2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(158)))), ((int)(((byte)(158)))));
|
this.toolStrip2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(158)))), ((int)(((byte)(158)))));
|
||||||
@ -1966,6 +2422,10 @@ namespace Aml.Editor.Plugin
|
|||||||
this.tabControl1.ResumeLayout(false);
|
this.tabControl1.ResumeLayout(false);
|
||||||
this.tabPage1.ResumeLayout(false);
|
this.tabPage1.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.genericparametersAttrDataGridView)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.genericparametersAttrDataGridView)).EndInit();
|
||||||
|
this.tabPage2.ResumeLayout(false);
|
||||||
|
this.tabPage2.PerformLayout();
|
||||||
|
this.tableLayoutPanel1.ResumeLayout(false);
|
||||||
|
this.tableLayoutPanel1.PerformLayout();
|
||||||
this.toolStrip5.ResumeLayout(false);
|
this.toolStrip5.ResumeLayout(false);
|
||||||
this.toolStrip5.PerformLayout();
|
this.toolStrip5.PerformLayout();
|
||||||
this.Interface.ResumeLayout(false);
|
this.Interface.ResumeLayout(false);
|
||||||
@ -1976,6 +2436,10 @@ namespace Aml.Editor.Plugin
|
|||||||
this.tabControlElectricalAttributes.ResumeLayout(false);
|
this.tabControlElectricalAttributes.ResumeLayout(false);
|
||||||
this.attributestab.ResumeLayout(false);
|
this.attributestab.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.elecInterAttDataGridView)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.elecInterAttDataGridView)).EndInit();
|
||||||
|
this.header.ResumeLayout(false);
|
||||||
|
this.header.PerformLayout();
|
||||||
|
this.headerpanelTabelLayoutPanel.ResumeLayout(false);
|
||||||
|
this.headerpanelTabelLayoutPanel.PerformLayout();
|
||||||
this.toolStrip2.ResumeLayout(false);
|
this.toolStrip2.ResumeLayout(false);
|
||||||
this.toolStrip2.PerformLayout();
|
this.toolStrip2.PerformLayout();
|
||||||
this.Page3_TopPanel.ResumeLayout(false);
|
this.Page3_TopPanel.ResumeLayout(false);
|
||||||
@ -2111,7 +2575,23 @@ namespace Aml.Editor.Plugin
|
|||||||
private System.Windows.Forms.SplitContainer splitContainer3;
|
private System.Windows.Forms.SplitContainer splitContainer3;
|
||||||
private System.Windows.Forms.TabControl tabControlElectricalAttributes;
|
private System.Windows.Forms.TabControl tabControlElectricalAttributes;
|
||||||
private System.Windows.Forms.TabPage attributestab;
|
private System.Windows.Forms.TabPage attributestab;
|
||||||
|
private System.Windows.Forms.TabPage header;
|
||||||
private System.Windows.Forms.ToolStripLabel electricalInterfacesHeaderlabel;
|
private System.Windows.Forms.ToolStripLabel electricalInterfacesHeaderlabel;
|
||||||
|
private System.Windows.Forms.TableLayoutPanel headerpanelTabelLayoutPanel;
|
||||||
|
private System.Windows.Forms.TextBox nameTxtBxElecAttri;
|
||||||
|
private System.Windows.Forms.TextBox idTxtBxElecAttri;
|
||||||
|
private System.Windows.Forms.TextBox attributepathTxtBxElecAttri;
|
||||||
|
private System.Windows.Forms.TextBox RefBaseClassPathTxtBxElecAttri;
|
||||||
|
private System.Windows.Forms.TextBox RefClassNameTxtBxElecAttri;
|
||||||
|
private System.Windows.Forms.TextBox copyrightTxtBxElecAttri;
|
||||||
|
private System.Windows.Forms.Label label31;
|
||||||
|
private System.Windows.Forms.Label label29;
|
||||||
|
private System.Windows.Forms.Label label27;
|
||||||
|
private System.Windows.Forms.Label label25;
|
||||||
|
private System.Windows.Forms.Label label21;
|
||||||
|
private System.Windows.Forms.Label TableHeader_lbl_Copyright;
|
||||||
|
private System.Windows.Forms.Label TableHeader_lbl_Description;
|
||||||
|
private System.Windows.Forms.TextBox descriptionTxtBoxElecAttri;
|
||||||
private System.Windows.Forms.TreeView treeViewElectricalInterfaces;
|
private System.Windows.Forms.TreeView treeViewElectricalInterfaces;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn17;
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn17;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn18;
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn18;
|
||||||
@ -2176,10 +2656,25 @@ namespace Aml.Editor.Plugin
|
|||||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn27;
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn27;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn28;
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn28;
|
||||||
private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewTextBoxColumn29;
|
private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewTextBoxColumn29;
|
||||||
|
private System.Windows.Forms.TabPage tabPage2;
|
||||||
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
||||||
|
private System.Windows.Forms.TextBox genericDataNameTxtBx;
|
||||||
|
private System.Windows.Forms.TextBox genericDataIDTxtBx;
|
||||||
|
private System.Windows.Forms.TextBox genericDataAttributePathTxtBx;
|
||||||
|
private System.Windows.Forms.TextBox genericDataRefBaseClassPathTxtBx;
|
||||||
|
private System.Windows.Forms.TextBox genericDataRefClassNameTxtBx;
|
||||||
|
private System.Windows.Forms.TextBox genericDataCopyrightTxtBx;
|
||||||
|
private System.Windows.Forms.Label TableHeader_lbl_Name;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.Label label5;
|
||||||
|
private System.Windows.Forms.Label label6;
|
||||||
|
private System.Windows.Forms.Label label7;
|
||||||
|
private System.Windows.Forms.TextBox genericDataDescriptionTxtBx;
|
||||||
private System.Windows.Forms.ToolStrip toolStrip5;
|
private System.Windows.Forms.ToolStrip toolStrip5;
|
||||||
private System.Windows.Forms.ToolStripLabel genericDataHeaderLabel;
|
private System.Windows.Forms.ToolStripLabel genericDataHeaderLabel;
|
||||||
private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem viewToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem advancedModeToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem advancedModeToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem caexVersionFileToolStripMenuItem;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,6 @@ namespace Aml.Editor.Plugin
|
|||||||
private object _row;
|
private object _row;
|
||||||
private bool isEditing = false;
|
private bool isEditing = false;
|
||||||
private bool expertMode = false;
|
private bool expertMode = false;
|
||||||
private bool useCaex2_15 = false;
|
|
||||||
private OpenFileDialog openFileDialog = new OpenFileDialog();
|
private OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||||
|
|
||||||
private List<string> AllInterfaces = new List<string>();
|
private List<string> AllInterfaces = new List<string>();
|
||||||
@ -477,6 +476,7 @@ namespace Aml.Editor.Plugin
|
|||||||
{
|
{
|
||||||
string searchName = "";
|
string searchName = "";
|
||||||
var AutomationMLDataTables = new AutomationMLDataTables();
|
var AutomationMLDataTables = new AutomationMLDataTables();
|
||||||
|
ClearHeaderTabPageValuesofElectricalInterfaces();
|
||||||
|
|
||||||
TreeNode targetNode = treeViewElectricalInterfaces.SelectedNode;
|
TreeNode targetNode = treeViewElectricalInterfaces.SelectedNode;
|
||||||
/* targetNode.SelectedImageIndex = targetNode.ImageIndex;*/
|
/* targetNode.SelectedImageIndex = targetNode.ImageIndex;*/
|
||||||
@ -502,6 +502,24 @@ namespace Aml.Editor.Plugin
|
|||||||
AutomationMLDataTables.CreateDataTableWithColumns(AMLDataTable, elecInterAttDataGridView, pair);
|
AutomationMLDataTables.CreateDataTableWithColumns(AMLDataTable, elecInterAttDataGridView, pair);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
foreach (var pair in device.DictionaryForExternalInterfacesUnderInterfaceClassInElectricalInterfaces)
|
||||||
|
{
|
||||||
|
if (pair.Key.ToString() == searchName)
|
||||||
|
{
|
||||||
|
foreach (var valueList in pair.Value)
|
||||||
|
{
|
||||||
|
foreach (var item in valueList)
|
||||||
|
{
|
||||||
|
descriptionTxtBoxElecAttri.Text = item.Description;
|
||||||
|
copyrightTxtBxElecAttri.Text = item.CopyRight;
|
||||||
|
RefClassNameTxtBxElecAttri.Text = item.ReferencedClassName;
|
||||||
|
RefBaseClassPathTxtBxElecAttri.Text = item.RefBaseClassPath;
|
||||||
|
attributepathTxtBxElecAttri.Text = item.AttributePath;
|
||||||
|
idTxtBxElecAttri.Text = item.ID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -516,6 +534,25 @@ namespace Aml.Editor.Plugin
|
|||||||
AutomationMLDataTables.CreateDataTableWithColumns(AMLDataTable, elecInterAttDataGridView, pair);
|
AutomationMLDataTables.CreateDataTableWithColumns(AMLDataTable, elecInterAttDataGridView, pair);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
foreach (var pair in device.DictionaryForInterfaceClassesInElectricalInterfaces)
|
||||||
|
{
|
||||||
|
if (pair.Key.ToString() == searchName)
|
||||||
|
{
|
||||||
|
|
||||||
|
foreach (var valueList in pair.Value)
|
||||||
|
{
|
||||||
|
foreach (var item in valueList)
|
||||||
|
{
|
||||||
|
descriptionTxtBoxElecAttri.Text = item.Description;
|
||||||
|
copyrightTxtBxElecAttri.Text = item.CopyRight;
|
||||||
|
RefClassNameTxtBxElecAttri.Text = item.ReferencedClassName;
|
||||||
|
RefBaseClassPathTxtBxElecAttri.Text = item.RefBaseClassPath;
|
||||||
|
attributepathTxtBxElecAttri.Text = item.AttributePath;
|
||||||
|
idTxtBxElecAttri.Text = item.ID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1146,6 +1183,7 @@ namespace Aml.Editor.Plugin
|
|||||||
TreeNode targetNode = node;
|
TreeNode targetNode = node;
|
||||||
|
|
||||||
/* targetNode.SelectedImageIndex = targetNode.ImageIndex;*/
|
/* targetNode.SelectedImageIndex = targetNode.ImageIndex;*/
|
||||||
|
ClearHeaderTabPageValuesofgenericData();
|
||||||
genericparametersAttrDataGridView.Rows.Clear();
|
genericparametersAttrDataGridView.Rows.Clear();
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -1163,6 +1201,24 @@ namespace Aml.Editor.Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
foreach (var pair in device.DictionaryForExternalInterfacesUnderRoleClassofComponent)
|
||||||
|
{
|
||||||
|
if (pair.Key.ToString() == searchName)
|
||||||
|
{
|
||||||
|
foreach (var valueList in pair.Value)
|
||||||
|
{
|
||||||
|
foreach (var item in valueList)
|
||||||
|
{
|
||||||
|
genericDataDescriptionTxtBx.Text = item.Description;
|
||||||
|
genericDataCopyrightTxtBx.Text = item.CopyRight;
|
||||||
|
genericDataRefClassNameTxtBx.Text = item.ReferencedClassName;
|
||||||
|
genericDataRefBaseClassPathTxtBx.Text = item.RefBaseClassPath;
|
||||||
|
genericDataAttributePathTxtBx.Text = item.AttributePath;
|
||||||
|
genericDataIDTxtBx.Text = item.ID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1179,6 +1235,25 @@ namespace Aml.Editor.Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
foreach (var pair in device.DictionaryForRoleClassofComponent)
|
||||||
|
{
|
||||||
|
if (pair.Key.ToString() == searchName)
|
||||||
|
{
|
||||||
|
|
||||||
|
foreach (var valueList in pair.Value)
|
||||||
|
{
|
||||||
|
foreach (var item in valueList)
|
||||||
|
{
|
||||||
|
genericDataDescriptionTxtBx.Text = item.Description;
|
||||||
|
genericDataCopyrightTxtBx.Text = item.CopyRight;
|
||||||
|
genericDataRefClassNameTxtBx.Text = item.ReferencedClassName;
|
||||||
|
genericDataRefBaseClassPathTxtBx.Text = item.RefBaseClassPath;
|
||||||
|
genericDataAttributePathTxtBx.Text = item.AttributePath;
|
||||||
|
genericDataIDTxtBx.Text = item.ID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception) { }
|
catch (Exception) { }
|
||||||
@ -1192,6 +1267,7 @@ namespace Aml.Editor.Plugin
|
|||||||
TreeNode targetNode = genericInformationtreeView.SelectedNode;
|
TreeNode targetNode = genericInformationtreeView.SelectedNode;
|
||||||
|
|
||||||
/* targetNode.SelectedImageIndex = targetNode.ImageIndex;*/
|
/* targetNode.SelectedImageIndex = targetNode.ImageIndex;*/
|
||||||
|
ClearHeaderTabPageValuesofgenericData();
|
||||||
genericparametersAttrDataGridView.Rows.Clear();
|
genericparametersAttrDataGridView.Rows.Clear();
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -1213,6 +1289,25 @@ namespace Aml.Editor.Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
foreach (var pair in device.DictionaryForExternalInterfacesUnderRoleClassofComponent)
|
||||||
|
{
|
||||||
|
if (pair.Key.ToString() == searchName)
|
||||||
|
{
|
||||||
|
foreach (var valueList in pair.Value)
|
||||||
|
{
|
||||||
|
foreach (var item in valueList)
|
||||||
|
{
|
||||||
|
genericDataDescriptionTxtBx.Text = item.Description;
|
||||||
|
genericDataCopyrightTxtBx.Text = item.CopyRight;
|
||||||
|
genericDataRefClassNameTxtBx.Text = item.ReferencedClassName;
|
||||||
|
genericDataRefBaseClassPathTxtBx.Text = item.RefBaseClassPath;
|
||||||
|
genericDataAttributePathTxtBx.Text = item.AttributePath;
|
||||||
|
genericDataIDTxtBx.Text = item.ID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1229,6 +1324,25 @@ namespace Aml.Editor.Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
foreach (var pair in device.DictionaryForRoleClassofComponent)
|
||||||
|
{
|
||||||
|
if (pair.Key.ToString() == searchName)
|
||||||
|
{
|
||||||
|
|
||||||
|
foreach (var valueList in pair.Value)
|
||||||
|
{
|
||||||
|
foreach (var item in valueList)
|
||||||
|
{
|
||||||
|
genericDataDescriptionTxtBx.Text = item.Description;
|
||||||
|
genericDataCopyrightTxtBx.Text = item.CopyRight;
|
||||||
|
genericDataRefClassNameTxtBx.Text = item.ReferencedClassName;
|
||||||
|
genericDataRefBaseClassPathTxtBx.Text = item.RefBaseClassPath;
|
||||||
|
genericDataAttributePathTxtBx.Text = item.AttributePath;
|
||||||
|
genericDataIDTxtBx.Text = item.ID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1247,6 +1361,28 @@ namespace Aml.Editor.Plugin
|
|||||||
catch (Exception) { }
|
catch (Exception) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ClearHeaderTabPageValuesofElectricalInterfaces()
|
||||||
|
{
|
||||||
|
descriptionTxtBoxElecAttri.Text = "";
|
||||||
|
copyrightTxtBxElecAttri.Text = "";
|
||||||
|
RefClassNameTxtBxElecAttri.Text = "";
|
||||||
|
RefBaseClassPathTxtBxElecAttri.Text = "";
|
||||||
|
attributepathTxtBxElecAttri.Text = "";
|
||||||
|
idTxtBxElecAttri.Text = "";
|
||||||
|
nameTxtBxElecAttri.Text = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ClearHeaderTabPageValuesofgenericData()
|
||||||
|
{
|
||||||
|
genericDataDescriptionTxtBx.Text = "";
|
||||||
|
genericDataCopyrightTxtBx.Text = "";
|
||||||
|
genericDataRefClassNameTxtBx.Text = "";
|
||||||
|
genericDataRefBaseClassPathTxtBx.Text = "";
|
||||||
|
genericDataAttributePathTxtBx.Text = "";
|
||||||
|
genericDataIDTxtBx.Text = "";
|
||||||
|
genericDataNameTxtBx.Text = "";
|
||||||
|
}
|
||||||
|
|
||||||
private void deleterowsInelectricalInterfacesDataGridView_Click(object sender, EventArgs e)
|
private void deleterowsInelectricalInterfacesDataGridView_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -1455,11 +1591,10 @@ namespace Aml.Editor.Plugin
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
SaveFileDialog saveFileDialog = new SaveFileDialog
|
SaveFileDialog saveFileDialog = new SaveFileDialog();
|
||||||
{
|
|
||||||
Filter = "AML Files( *.amlx )| *.amlx;",
|
saveFileDialog.Filter = "AML Files( *.amlx )| *.amlx;";
|
||||||
FileName = vendorNameTextBox.Text + "-" + deviceNameTextBox.Text + "-V.1.0-" + DateTime.Now.Date.ToShortDateString()
|
saveFileDialog.FileName = vendorNameTextBox.Text + "-" + deviceNameTextBox.Text + "-V.1.0-" + DateTime.Now.Date.ToShortDateString();
|
||||||
};
|
|
||||||
|
|
||||||
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
@ -1468,10 +1603,11 @@ namespace Aml.Editor.Plugin
|
|||||||
device.environment = Path.GetDirectoryName(saveFileDialog.FileName);
|
device.environment = Path.GetDirectoryName(saveFileDialog.FileName);
|
||||||
device.fileName = saveFileDialog.FileName;
|
device.fileName = saveFileDialog.FileName;
|
||||||
|
|
||||||
|
|
||||||
// storing user defined values of Attachebles data grid view in to list
|
// storing user defined values of Attachebles data grid view in to list
|
||||||
|
|
||||||
// Pass the device to the controller
|
// Pass the device to the controller
|
||||||
string result1 = mWController.CreateDeviceOnClick(device, isEditing, useCaex2_15);
|
string result1 = mWController.CreateDeviceOnClick(device, isEditing);
|
||||||
|
|
||||||
//clear();
|
//clear();
|
||||||
|
|
||||||
@ -1594,7 +1730,7 @@ namespace Aml.Editor.Plugin
|
|||||||
// storing user defined values of Attachebles data grid view in to list
|
// storing user defined values of Attachebles data grid view in to list
|
||||||
|
|
||||||
// Pass the device to the controller
|
// Pass the device to the controller
|
||||||
string result1 = mWController.CreateDeviceOnClick(device, isEditing, useCaex2_15);
|
string result1 = mWController.CreateDeviceOnClick(device, isEditing);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1624,7 +1760,6 @@ namespace Aml.Editor.Plugin
|
|||||||
|
|
||||||
private void newToolStripMenuItem_Click(object sender, EventArgs e)
|
private void newToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
isEditing = false;
|
|
||||||
clear();
|
clear();
|
||||||
|
|
||||||
|
|
||||||
@ -1692,8 +1827,6 @@ namespace Aml.Editor.Plugin
|
|||||||
|
|
||||||
private void openToolStripMenuItem_Click(object sender, EventArgs e)
|
private void openToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
isEditing = true;
|
|
||||||
|
|
||||||
searchAMLComponentFile.DictionaryofElectricalConnectorType = new Dictionary<string, List<List<ClassOfListsFromReferencefile>>>();
|
searchAMLComponentFile.DictionaryofElectricalConnectorType = new Dictionary<string, List<List<ClassOfListsFromReferencefile>>>();
|
||||||
searchAMLComponentFile.DictioanryofElectricalConnectorPinType = new Dictionary<string, List<List<ClassOfListsFromReferencefile>>>();
|
searchAMLComponentFile.DictioanryofElectricalConnectorPinType = new Dictionary<string, List<List<ClassOfListsFromReferencefile>>>();
|
||||||
|
|
||||||
@ -1736,7 +1869,7 @@ namespace Aml.Editor.Plugin
|
|||||||
IEnumerable<PackagePart> rootParts = amlx.GetPartsByRelationShipType(AutomationMLContainer.RelationshipType.Root);
|
IEnumerable<PackagePart> rootParts = amlx.GetPartsByRelationShipType(AutomationMLContainer.RelationshipType.Root);
|
||||||
|
|
||||||
// We expect the aml to only have one root part
|
// We expect the aml to only have one root part
|
||||||
if (rootParts.Count() != 0 && rootParts.First() != null)
|
if (rootParts.First() != null)
|
||||||
{
|
{
|
||||||
|
|
||||||
PackagePart part = rootParts.First();
|
PackagePart part = rootParts.First();
|
||||||
@ -3427,6 +3560,8 @@ namespace Aml.Editor.Plugin
|
|||||||
electricalInterfacesCollectionDataGridView.Rows.Clear();
|
electricalInterfacesCollectionDataGridView.Rows.Clear();
|
||||||
elecInterAttDataGridView.Rows.Clear();
|
elecInterAttDataGridView.Rows.Clear();
|
||||||
treeViewElectricalInterfaces.Nodes.Clear();
|
treeViewElectricalInterfaces.Nodes.Clear();
|
||||||
|
ClearHeaderTabPageValuesofgenericData();
|
||||||
|
ClearHeaderTabPageValuesofElectricalInterfaces();
|
||||||
|
|
||||||
|
|
||||||
device.DictionaryForInterfaceClassesInElectricalInterfaces = new Dictionary<string, List<List<ClassOfListsFromReferencefile>>>();
|
device.DictionaryForInterfaceClassesInElectricalInterfaces = new Dictionary<string, List<List<ClassOfListsFromReferencefile>>>();
|
||||||
@ -3679,6 +3814,7 @@ namespace Aml.Editor.Plugin
|
|||||||
|
|
||||||
private void elecInterAttDataGridView_CellEndEdit(object sender, DataGridViewCellEventArgs e)
|
private void elecInterAttDataGridView_CellEndEdit(object sender, DataGridViewCellEventArgs e)
|
||||||
{
|
{
|
||||||
|
ClearHeaderTabPageValuesofElectricalInterfaces();
|
||||||
elecInterAttDataGridView.CurrentRow.Selected = true;
|
elecInterAttDataGridView.CurrentRow.Selected = true;
|
||||||
|
|
||||||
string attributeName = "";
|
string attributeName = "";
|
||||||
@ -3774,6 +3910,16 @@ namespace Aml.Editor.Plugin
|
|||||||
{
|
{
|
||||||
if (item.Name.ToString() == attributeName)
|
if (item.Name.ToString() == attributeName)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
descriptionTxtBoxElecAttri.Text = item.Description;
|
||||||
|
copyrightTxtBxElecAttri.Text = item.CopyRight;
|
||||||
|
RefClassNameTxtBxElecAttri.Text = item.ReferencedClassName;
|
||||||
|
RefBaseClassPathTxtBxElecAttri.Text = item.RefBaseClassPath;
|
||||||
|
attributepathTxtBxElecAttri.Text = item.AttributePath;
|
||||||
|
idTxtBxElecAttri.Text = item.ID;
|
||||||
|
nameTxtBxElecAttri.Text = item.Name;
|
||||||
|
|
||||||
foreach (var pair2 in device.DictionaryForInterfaceClassesInElectricalInterfaces)
|
foreach (var pair2 in device.DictionaryForInterfaceClassesInElectricalInterfaces)
|
||||||
{
|
{
|
||||||
if (pair2.Key.ToString() == interfaceClass)
|
if (pair2.Key.ToString() == interfaceClass)
|
||||||
@ -3796,6 +3942,14 @@ namespace Aml.Editor.Plugin
|
|||||||
var refsems = item2.RefSemanticList.Append();
|
var refsems = item2.RefSemanticList.Append();
|
||||||
refsems.CorrespondingAttributePath = str;
|
refsems.CorrespondingAttributePath = str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
item2.Description = descriptionTxtBoxElecAttri.Text;
|
||||||
|
item2.CopyRight = copyrightTxtBxElecAttri.Text;
|
||||||
|
item2.ReferencedClassName = RefClassNameTxtBxElecAttri.Text;
|
||||||
|
item2.RefBaseClassPath = RefBaseClassPathTxtBxElecAttri.Text;
|
||||||
|
item2.AttributePath = attributepathTxtBxElecAttri.Text;
|
||||||
|
item2.ID = idTxtBxElecAttri.Text;
|
||||||
|
item2.Name = nameTxtBxElecAttri.Text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3820,6 +3974,16 @@ namespace Aml.Editor.Plugin
|
|||||||
item.Default = defaults;
|
item.Default = defaults;
|
||||||
item.Unit = Units;
|
item.Unit = Units;
|
||||||
item.Semantic = semantics;*/
|
item.Semantic = semantics;*/
|
||||||
|
|
||||||
|
|
||||||
|
descriptionTxtBoxElecAttri.Text = item.Description;
|
||||||
|
copyrightTxtBxElecAttri.Text = item.CopyRight;
|
||||||
|
RefClassNameTxtBxElecAttri.Text = item.ReferencedClassName;
|
||||||
|
RefBaseClassPathTxtBxElecAttri.Text = item.RefBaseClassPath;
|
||||||
|
attributepathTxtBxElecAttri.Text = item.AttributePath;
|
||||||
|
idTxtBxElecAttri.Text = item.ID;
|
||||||
|
nameTxtBxElecAttri.Text = item.Name;
|
||||||
|
|
||||||
foreach (var pair2 in device.DictionaryForExternalInterfacesUnderInterfaceClassInElectricalInterfaces)
|
foreach (var pair2 in device.DictionaryForExternalInterfacesUnderInterfaceClassInElectricalInterfaces)
|
||||||
{
|
{
|
||||||
if (pair2.Key.ToString() == interfaceClass)
|
if (pair2.Key.ToString() == interfaceClass)
|
||||||
@ -3841,6 +4005,13 @@ namespace Aml.Editor.Plugin
|
|||||||
var refsems = item2.RefSemanticList.Append();
|
var refsems = item2.RefSemanticList.Append();
|
||||||
refsems.CorrespondingAttributePath = str;
|
refsems.CorrespondingAttributePath = str;
|
||||||
}
|
}
|
||||||
|
item2.Description = descriptionTxtBoxElecAttri.Text;
|
||||||
|
item2.CopyRight = copyrightTxtBxElecAttri.Text;
|
||||||
|
item2.ReferencedClassName = RefClassNameTxtBxElecAttri.Text;
|
||||||
|
item2.RefBaseClassPath = RefBaseClassPathTxtBxElecAttri.Text;
|
||||||
|
item2.AttributePath = attributepathTxtBxElecAttri.Text;
|
||||||
|
item2.ID = idTxtBxElecAttri.Text;
|
||||||
|
item2.Name = nameTxtBxElecAttri.Text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3937,6 +4108,7 @@ namespace Aml.Editor.Plugin
|
|||||||
|
|
||||||
private void genericParametersAttrDataGridView_CellEndEdit(object sender, DataGridViewCellEventArgs e)
|
private void genericParametersAttrDataGridView_CellEndEdit(object sender, DataGridViewCellEventArgs e)
|
||||||
{
|
{
|
||||||
|
ClearHeaderTabPageValuesofgenericData();
|
||||||
genericparametersAttrDataGridView.CurrentRow.Selected = true;
|
genericparametersAttrDataGridView.CurrentRow.Selected = true;
|
||||||
|
|
||||||
string attributeName = "";
|
string attributeName = "";
|
||||||
@ -4036,6 +4208,14 @@ namespace Aml.Editor.Plugin
|
|||||||
{
|
{
|
||||||
if (item.Name.ToString() == attributeName)
|
if (item.Name.ToString() == attributeName)
|
||||||
{
|
{
|
||||||
|
genericDataDescriptionTxtBx.Text = item.Description;
|
||||||
|
genericDataCopyrightTxtBx.Text = item.CopyRight;
|
||||||
|
genericDataRefClassNameTxtBx.Text = item.ReferencedClassName;
|
||||||
|
genericDataRefBaseClassPathTxtBx.Text = item.RefBaseClassPath;
|
||||||
|
genericDataAttributePathTxtBx.Text = item.AttributePath;
|
||||||
|
genericDataIDTxtBx.Text = item.ID;
|
||||||
|
genericDataNameTxtBx.Text = item.Name;
|
||||||
|
|
||||||
foreach (var pair2 in device.DictionaryForRoleClassofComponent)
|
foreach (var pair2 in device.DictionaryForRoleClassofComponent)
|
||||||
{
|
{
|
||||||
if (pair2.Key.ToString() == interfaceClass)
|
if (pair2.Key.ToString() == interfaceClass)
|
||||||
@ -4057,6 +4237,14 @@ namespace Aml.Editor.Plugin
|
|||||||
var refsems = item2.RefSemanticList.Append();
|
var refsems = item2.RefSemanticList.Append();
|
||||||
refsems.CorrespondingAttributePath = str;
|
refsems.CorrespondingAttributePath = str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
item2.Description = genericDataDescriptionTxtBx.Text;
|
||||||
|
item2.CopyRight = genericDataCopyrightTxtBx.Text;
|
||||||
|
item2.ReferencedClassName = genericDataRefClassNameTxtBx.Text;
|
||||||
|
item2.RefBaseClassPath = genericDataRefBaseClassPathTxtBx.Text;
|
||||||
|
item2.AttributePath = genericDataAttributePathTxtBx.Text;
|
||||||
|
item2.ID = genericDataIDTxtBx.Text;
|
||||||
|
item2.Name = genericDataNameTxtBx.Text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4082,6 +4270,14 @@ namespace Aml.Editor.Plugin
|
|||||||
item.Unit = Units;
|
item.Unit = Units;
|
||||||
item.Semantic = semantics;*/
|
item.Semantic = semantics;*/
|
||||||
|
|
||||||
|
genericDataDescriptionTxtBx.Text = item.Description;
|
||||||
|
genericDataCopyrightTxtBx.Text = item.CopyRight;
|
||||||
|
genericDataRefClassNameTxtBx.Text = item.ReferencedClassName;
|
||||||
|
genericDataRefBaseClassPathTxtBx.Text = item.RefBaseClassPath;
|
||||||
|
genericDataAttributePathTxtBx.Text = item.AttributePath;
|
||||||
|
genericDataIDTxtBx.Text = item.ID;
|
||||||
|
genericDataNameTxtBx.Text = item.Name;
|
||||||
|
|
||||||
foreach (var pair2 in device.DictionaryForExternalInterfacesUnderRoleClassofComponent)
|
foreach (var pair2 in device.DictionaryForExternalInterfacesUnderRoleClassofComponent)
|
||||||
{
|
{
|
||||||
if (pair2.Key.ToString() == interfaceClass)
|
if (pair2.Key.ToString() == interfaceClass)
|
||||||
@ -4103,6 +4299,13 @@ namespace Aml.Editor.Plugin
|
|||||||
var refsems = item2.RefSemanticList.Append();
|
var refsems = item2.RefSemanticList.Append();
|
||||||
refsems.CorrespondingAttributePath = str;
|
refsems.CorrespondingAttributePath = str;
|
||||||
}
|
}
|
||||||
|
item2.Description = genericDataDescriptionTxtBx.Text;
|
||||||
|
item2.CopyRight = genericDataCopyrightTxtBx.Text;
|
||||||
|
item2.ReferencedClassName = genericDataRefClassNameTxtBx.Text;
|
||||||
|
item2.RefBaseClassPath = genericDataRefBaseClassPathTxtBx.Text;
|
||||||
|
item2.AttributePath = genericDataAttributePathTxtBx.Text;
|
||||||
|
item2.ID = genericDataIDTxtBx.Text;
|
||||||
|
item2.Name = genericDataNameTxtBx.Text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4289,7 +4492,7 @@ namespace Aml.Editor.Plugin
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.advancedModeToolStripMenuItem.Text = "Advanced mode";
|
this.advancedModeToolStripMenuItem.Text = "Expert mode";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show/hide elements
|
// Show/hide elements
|
||||||
@ -4376,21 +4579,5 @@ namespace Aml.Editor.Plugin
|
|||||||
}
|
}
|
||||||
catch (Exception) { }
|
catch (Exception) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
private void caexVersionFileToolStripMenuItem_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
// Switch mode
|
|
||||||
useCaex2_15 = !useCaex2_15;
|
|
||||||
|
|
||||||
// Change text
|
|
||||||
if (useCaex2_15)
|
|
||||||
{
|
|
||||||
this.caexVersionFileToolStripMenuItem.Text = "Use CAEX 3.0 File";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this.caexVersionFileToolStripMenuItem.Text = "Use CAEX 2.15 File";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -131,7 +131,7 @@
|
|||||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD6
|
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD6
|
||||||
DAAAAk1TRnQBSQFMAgEBAwEAAaABBAGgAQQBHAEAARwBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
DAAAAk1TRnQBSQFMAgEBAwEAAVABBAFQAQQBHAEAARwBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||||
AwABcAMAARwDAAEBAQABCAUAAUABDBgAAYACAAGAAwACgAEAAYADAAGAAQABgAEAAoACAAPAAQABwAHc
|
AwABcAMAARwDAAEBAQABCAUAAUABDBgAAYACAAGAAwACgAEAAYADAAGAAQABgAEAAoACAAPAAQABwAHc
|
||||||
AcABAAHwAcoBpgEAATMFAAEzAQABMwEAATMBAAIzAgADFgEAAxwBAAMiAQADKQEAA1UBAANNAQADQgEA
|
AcABAAHwAcoBpgEAATMFAAEzAQABMwEAATMBAAIzAgADFgEAAxwBAAMiAQADKQEAA1UBAANNAQADQgEA
|
||||||
AzkBAAGAAXwB/wEAAlAB/wEAAZMBAAHWAQAB/wHsAcwBAAHGAdYB7wEAAdYC5wEAAZABqQGtAgAB/wEz
|
AzkBAAGAAXwB/wEAAlAB/wEAAZMBAAHWAQAB/wHsAcwBAAHGAdYB7wEAAdYC5wEAAZABqQGtAgAB/wEz
|
||||||
@ -344,7 +344,7 @@
|
|||||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABC
|
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABC
|
||||||
DQAAAk1TRnQBSQFMAgEBAwEAAaABBAGgAQQBHAEAARwBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
DQAAAk1TRnQBSQFMAgEBAwEAAVABBAFQAQQBHAEAARwBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||||
AwABcAMAARwDAAEBAQABCAUAAUABDBgAAYACAAGAAwACgAEAAYADAAGAAQABgAEAAoACAAPAAQABwAHc
|
AwABcAMAARwDAAEBAQABCAUAAUABDBgAAYACAAGAAwACgAEAAYADAAGAAQABgAEAAoACAAPAAQABwAHc
|
||||||
AcABAAHwAcoBpgEAATMFAAEzAQABMwEAATMBAAIzAgADFgEAAxwBAAMiAQADKQEAA1UBAANNAQADQgEA
|
AcABAAHwAcoBpgEAATMFAAEzAQABMwEAATMBAAIzAgADFgEAAxwBAAMiAQADKQEAA1UBAANNAQADQgEA
|
||||||
AzkBAAGAAXwB/wEAAlAB/wEAAZMBAAHWAQAB/wHsAcwBAAHGAdYB7wEAAdYC5wEAAZABqQGtAgAB/wEz
|
AzkBAAGAAXwB/wEAAlAB/wEAAZMBAAHWAQAB/wHsAcwBAAHGAdYB7wEAAdYC5wEAAZABqQGtAgAB/wEz
|
||||||
@ -417,7 +417,7 @@
|
|||||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAC4
|
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAC4
|
||||||
CQAAAk1TRnQBSQFMAgEBAgEAAZgBBAGYAQQBGQEAARkBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
CQAAAk1TRnQBSQFMAgEBAgEAAUgBBAFIAQQBGQEAARkBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||||
AwABZAMAARkDAAEBAQABCAUAAcQBCRgAAYACAAGAAwACgAEAAYADAAGAAQABgAEAAoACAAPAAQABwAHc
|
AwABZAMAARkDAAEBAQABCAUAAcQBCRgAAYACAAGAAwACgAEAAYADAAGAAQABgAEAAoACAAPAAQABwAHc
|
||||||
AcABAAHwAcoBpgEAATMFAAEzAQABMwEAATMBAAIzAgADFgEAAxwBAAMiAQADKQEAA1UBAANNAQADQgEA
|
AcABAAHwAcoBpgEAATMFAAEzAQABMwEAATMBAAIzAgADFgEAAxwBAAMiAQADKQEAA1UBAANNAQADQgEA
|
||||||
AzkBAAGAAXwB/wEAAlAB/wEAAZMBAAHWAQAB/wHsAcwBAAHGAdYB7wEAAdYC5wEAAZABqQGtAgAB/wEz
|
AzkBAAGAAXwB/wEAAlAB/wEAAZMBAAHWAQAB/wHsAcwBAAHGAdYB7wEAAdYC5wEAAZABqQGtAgAB/wEz
|
||||||
@ -472,7 +472,7 @@
|
|||||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAA
|
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAA
|
||||||
CAAAAk1TRnQBSQFMAwEBAAGgAQQBoAEEARABAAEQAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMA
|
CAAAAk1TRnQBSQFMAwEBAAFQAQQBUAEEARABAAEQAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMA
|
||||||
AUADAAEQAwABAQEAAQgGAAEEGAABgAIAAYADAAKAAQABgAMAAYABAAGAAQACgAIAA8ABAAHAAdwBwAEA
|
AUADAAEQAwABAQEAAQgGAAEEGAABgAIAAYADAAKAAQABgAMAAYABAAGAAQACgAIAA8ABAAHAAdwBwAEA
|
||||||
AfABygGmAQABMwUAATMBAAEzAQABMwEAAjMCAAMWAQADHAEAAyIBAAMpAQADVQEAA00BAANCAQADOQEA
|
AfABygGmAQABMwUAATMBAAEzAQABMwEAAjMCAAMWAQADHAEAAyIBAAMpAQADVQEAA00BAANCAQADOQEA
|
||||||
AYABfAH/AQACUAH/AQABkwEAAdYBAAH/AewBzAEAAcYB1gHvAQAB1gLnAQABkAGpAa0CAAH/ATMDAAFm
|
AYABfAH/AQACUAH/AQABkwEAAdYBAAH/AewBzAEAAcYB1gHvAQAB1gLnAQABkAGpAa0CAAH/ATMDAAFm
|
||||||
|
@ -56,14 +56,14 @@ namespace Aml.Editor.Plugin
|
|||||||
/// <param name="newDevice"></param>
|
/// <param name="newDevice"></param>
|
||||||
/// <param name="isEdit"></param>
|
/// <param name="isEdit"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public String CreateDeviceOnClick(MWDevice newDevice, bool isEdit, bool useCaex2_15)
|
public String CreateDeviceOnClick(MWDevice newDevice, bool isEdit)
|
||||||
{
|
{
|
||||||
string result = "";
|
string result = "";
|
||||||
|
|
||||||
if (newDevice.deviceName != null && newDevice.vendorName != null)
|
if (newDevice.deviceName != null && newDevice.vendorName != null)
|
||||||
{
|
{
|
||||||
// create the device
|
// create the device
|
||||||
result = mWData.CreateDevice(newDevice, isEdit, useCaex2_15);
|
result = mWData.CreateDevice(newDevice, isEdit);
|
||||||
}
|
}
|
||||||
|
|
||||||
// update the device list
|
// update the device list
|
||||||
|
@ -55,32 +55,49 @@ namespace Aml.Editor.Plugin
|
|||||||
/// <param name="device">The device which will be created</param>
|
/// <param name="device">The device which will be created</param>
|
||||||
/// <param name="isEdit">true if an amlx file get update, false if a new file will be created</param>
|
/// <param name="isEdit">true if an amlx file get update, false if a new file will be created</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public string CreateDevice(MWDevice device, bool isEdit, bool useCaex2_15)
|
public string CreateDevice(MWDevice device, bool isEdit)
|
||||||
{
|
{
|
||||||
CAEXDocument document;
|
|
||||||
|
CAEXDocument document = null;
|
||||||
AutomationMLContainer amlx = null;
|
AutomationMLContainer amlx = null;
|
||||||
|
|
||||||
// Init final .amlx Filepath
|
// Init final .amlx Filepath
|
||||||
|
//first of all create a folder on "Vendor Name"
|
||||||
|
string vendorCompanyName = device.vendorName;
|
||||||
|
|
||||||
string amlFilePath;
|
string amlFilePath;
|
||||||
|
|
||||||
string fileName = device.fileName;
|
string fileName = device.fileName;
|
||||||
|
|
||||||
amlFilePath = fileName.Contains(".amlx") ? Path.Combine(device.filepath, fileName) : Path.Combine(device.filepath, fileName + ".amlx");
|
if (fileName.Contains(".amlx"))
|
||||||
|
{
|
||||||
|
amlFilePath = System.IO.Path.Combine(device.filepath, fileName);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
amlFilePath = System.IO.Path.Combine(device.filepath, fileName + ".amlx");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FileInfo file = new FileInfo(amlFilePath);
|
FileInfo file = new FileInfo(amlFilePath);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Create directory if it's not existing
|
// Create directory if it's not existing
|
||||||
file.Directory.Create();
|
file.Directory.Create();
|
||||||
|
|
||||||
|
|
||||||
// Init CAEX Document
|
// Init CAEX Document
|
||||||
if (isEdit)
|
if (isEdit)
|
||||||
{
|
{
|
||||||
// Load the amlx file
|
// Load the amlx file
|
||||||
amlx = new AutomationMLContainer(amlFilePath, FileMode.OpenOrCreate);
|
amlx = new AutomationMLContainer(amlFilePath, FileMode.Open);
|
||||||
|
|
||||||
IEnumerable<PackagePart> rootParts = amlx.GetPartsByRelationShipType(AutomationMLContainer.RelationshipType.Root);
|
IEnumerable<PackagePart> rootParts = amlx.GetPartsByRelationShipType(AutomationMLContainer.RelationshipType.Root);
|
||||||
|
|
||||||
// We expect the aml to only have one root part
|
// We expect the aml to only have one root part
|
||||||
if (rootParts.Count() != 0 && rootParts.First() != null)
|
if (rootParts.First() != null)
|
||||||
{
|
{
|
||||||
PackagePart part = rootParts.First();
|
PackagePart part = rootParts.First();
|
||||||
|
|
||||||
@ -90,26 +107,27 @@ namespace Aml.Editor.Plugin
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// the amlx contains no aml file
|
// the amlx contains no aml file
|
||||||
if (useCaex2_15) document = CAEXDocument.New_CAEXDocument(CAEXDocument.CAEXSchema.CAEX2_15);
|
document = CAEXDocument.New_CAEXDocument();
|
||||||
else document = CAEXDocument.New_CAEXDocument(CAEXDocument.CAEXSchema.CAEX3_0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// create a new CAEX document
|
// create a new CAEX document
|
||||||
if (useCaex2_15) document = CAEXDocument.New_CAEXDocument(CAEXDocument.CAEXSchema.CAEX2_15);
|
document = CAEXDocument.New_CAEXDocument();
|
||||||
else document = CAEXDocument.New_CAEXDocument(CAEXDocument.CAEXSchema.CAEX3_0);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
amlx = new AutomationMLContainer(amlFilePath, FileMode.OpenOrCreate);
|
amlx = new AutomationMLContainer(amlFilePath, FileMode.Create);
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
Console.WriteLine("Failed to create AutomationMLContainer object");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Init the default Libs
|
// Init the default Libs
|
||||||
AutomationMLBaseRoleClassLibType.RoleClassLib(document);
|
AutomationMLBaseRoleClassLibType.RoleClassLib(document);
|
||||||
AutomationMLInterfaceClassLibType.InterfaceClassLib(document);
|
AutomationMLInterfaceClassLibType.InterfaceClassLib(document);
|
||||||
@ -134,9 +152,15 @@ namespace Aml.Editor.Plugin
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
Boolean myBool;
|
Boolean myBool;
|
||||||
Boolean.TryParse(eachparameter.AddToFile, out myBool);
|
Boolean.TryParse(eachparameter.AddToFile, out myBool);
|
||||||
|
|
||||||
|
if (myBool == true)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Uri eachUri = null;
|
Uri eachUri = null;
|
||||||
AttachablesDataGridViewParameters par = new AttachablesDataGridViewParameters();
|
AttachablesDataGridViewParameters par = new AttachablesDataGridViewParameters();
|
||||||
eachUri = createPictureRef(eachparameter.FilePath, eachparameter.ElementName.ToString(), "ExternalDataConnector", systemUnitClass);
|
eachUri = createPictureRef(eachparameter.FilePath, eachparameter.ElementName.ToString(), "ExternalDataConnector", systemUnitClass);
|
||||||
@ -144,11 +168,14 @@ namespace Aml.Editor.Plugin
|
|||||||
par.FilePath = eachparameter.FilePath;
|
par.FilePath = eachparameter.FilePath;
|
||||||
|
|
||||||
device.listWithURIConvertedToString.Add(par);
|
device.listWithURIConvertedToString.Add(par);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var pair in device.DictionaryForRoleClassofComponent)
|
foreach (var pair in device.DictionaryForRoleClassofComponent)
|
||||||
{
|
{
|
||||||
|
|
||||||
Match numberfromElectricalConnectorType = Regex.Match(pair.Key.ToString(), @"\((\d+)\)");
|
Match numberfromElectricalConnectorType = Regex.Match(pair.Key.ToString(), @"\((\d+)\)");
|
||||||
string initialnumberbetweenparanthesisofElectricalConnectorType =
|
string initialnumberbetweenparanthesisofElectricalConnectorType =
|
||||||
numberfromElectricalConnectorType.Groups[1].Value;
|
numberfromElectricalConnectorType.Groups[1].Value;
|
||||||
@ -258,6 +285,8 @@ namespace Aml.Editor.Plugin
|
|||||||
|
|
||||||
SRC.RefRoleClassPath = item.SupportesRoleClassType;
|
SRC.RefRoleClassPath = item.SupportesRoleClassType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -298,7 +327,8 @@ namespace Aml.Editor.Plugin
|
|||||||
foundSysClassLib = true;
|
foundSysClassLib = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!foundSysClassLib) systemUnitClass = document.CAEXFile.SystemUnitClassLib.Append("ComponentSystemUnitClassLib").SystemUnitClass.Append(device.deviceName);
|
if (!foundSysClassLib)
|
||||||
|
systemUnitClass = document.CAEXFile.SystemUnitClassLib.Append("ComponentSystemUnitClassLib").SystemUnitClass.Append(device.deviceName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the internalElement Interfaces
|
// Create the internalElement Interfaces
|
||||||
@ -428,6 +458,9 @@ namespace Aml.Editor.Plugin
|
|||||||
|
|
||||||
electricalConnectorType.RefBaseClassPath = item.RefBaseClassPath;
|
electricalConnectorType.RefBaseClassPath = item.RefBaseClassPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -441,6 +474,9 @@ namespace Aml.Editor.Plugin
|
|||||||
electricalConnectorPinName = Regex.Replace(electricalConnectorPinName, @"\{.*?\}", "");
|
electricalConnectorPinName = Regex.Replace(electricalConnectorPinName, @"\{.*?\}", "");
|
||||||
electricalConnectorPinName = electricalConnectorPinName.Replace(electricalConnectorTypeName, "");
|
electricalConnectorPinName = electricalConnectorPinName.Replace(electricalConnectorTypeName, "");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (initialnumberbetweenparanthesisofElectricalConnectorType == initialnumberbetweenparanthesisElectricalConnectorPins)
|
if (initialnumberbetweenparanthesisofElectricalConnectorType == initialnumberbetweenparanthesisElectricalConnectorPins)
|
||||||
{
|
{
|
||||||
electricalConnectorPins = electricalConnectorType.ExternalInterface.Append(electricalConnectorPinName);
|
electricalConnectorPins = electricalConnectorType.ExternalInterface.Append(electricalConnectorPinName);
|
||||||
@ -589,7 +625,14 @@ namespace Aml.Editor.Plugin
|
|||||||
amlx.Save();
|
amlx.Save();
|
||||||
amlx.Close();
|
amlx.Close();
|
||||||
|
|
||||||
return isEdit ? "Sucessfully updated device!\nFilepath " + amlFilePath : "Device description file created!\nFilepath " + amlFilePath;
|
if (isEdit)
|
||||||
|
{
|
||||||
|
return "Sucessfully updated device!\nFilepath " + amlFilePath;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "Device description file created!\nFilepath " + amlFilePath;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -851,7 +894,7 @@ namespace Aml.Editor.Plugin
|
|||||||
|
|
||||||
|
|
||||||
// Load Libary .dll
|
// Load Libary .dll
|
||||||
Assembly assembly = Assembly.Load(File.ReadAllBytes("Dd2Aml.Lib.dll"));
|
Assembly assembly = Assembly.Load("Iodd2AmlConverter.Library");
|
||||||
Type conversionHandler = null;
|
Type conversionHandler = null;
|
||||||
// Iterate over all Types in the Libary and get the ConversionHandler Type
|
// Iterate over all Types in the Libary and get the ConversionHandler Type
|
||||||
foreach (Type type in assembly.ExportedTypes)
|
foreach (Type type in assembly.ExportedTypes)
|
||||||
@ -902,7 +945,7 @@ namespace Aml.Editor.Plugin
|
|||||||
// If it is, then it's calling the Convert Function
|
// If it is, then it's calling the Convert Function
|
||||||
// Gsd2Aml.Lib.Converter.Convert(string inputFilepath, bool strictValidation)
|
// Gsd2Aml.Lib.Converter.Convert(string inputFilepath, bool strictValidation)
|
||||||
|
|
||||||
Assembly assembly = Assembly.Load(File.ReadAllBytes("Gsd2Aml.Lib.dll"));
|
Assembly assembly = Assembly.Load("Gsd2Aml.Lib");
|
||||||
Type conversionHandler = null;
|
Type conversionHandler = null;
|
||||||
// Iterate over all Types in the Libary and get the ConversionHandler Type
|
// Iterate over all Types in the Libary and get the ConversionHandler Type
|
||||||
foreach (Type type in assembly.ExportedTypes)
|
foreach (Type type in assembly.ExportedTypes)
|
||||||
@ -956,7 +999,6 @@ namespace Aml.Editor.Plugin
|
|||||||
byte[] bytearray = System.Text.Encoding.Unicode.GetBytes(caex);
|
byte[] bytearray = System.Text.Encoding.Unicode.GetBytes(caex);
|
||||||
CAEXDocument document = CAEXDocument.LoadFromBinary(bytearray);
|
CAEXDocument document = CAEXDocument.LoadFromBinary(bytearray);
|
||||||
|
|
||||||
|
|
||||||
// create the amlx file
|
// create the amlx file
|
||||||
string name = Path.GetFileNameWithoutExtension(filename);
|
string name = Path.GetFileNameWithoutExtension(filename);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>..\..\TINF20C_ModellingWizard_Devices\SOURCE\bin\Release\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
@ -179,7 +179,6 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="DeviceDescription.resx">
|
<EmbeddedResource Include="DeviceDescription.resx">
|
||||||
<DependentUpon>DeviceDescription.cs</DependentUpon>
|
<DependentUpon>DeviceDescription.cs</DependentUpon>
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Properties\Resources.resx">
|
<EmbeddedResource Include="Properties\Resources.resx">
|
||||||
<Generator>ResXFileCodeGenerator</Generator>
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
|
@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
|
|||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("DHBW-Stuttgart")]
|
[assembly: AssemblyCompany("DHBW-Stuttgart")]
|
||||||
[assembly: AssemblyProduct("ModellingWizard")]
|
[assembly: AssemblyProduct("ModellingWizard")]
|
||||||
[assembly: AssemblyCopyright("Copyright © DHBW-Stuttgart TINF20C")]
|
[assembly: AssemblyCopyright("Copyright © DHBW-Stuttgart TINF19C")]
|
||||||
[assembly: AssemblyTrademark("ModellingWizard")]
|
[assembly: AssemblyTrademark("ModellingWizard")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user