private void PopulateIt(IList list) { IEnumerator en = list.GetEnumerator(); while (en.MoveNext()) { Substance subst = (Substance)en.Current; ListViewItem lvi = new ListViewItem(); ListViewItem.ListViewSubItem lvsi = new ListViewItem.ListViewSubItem(lvi, subst.Name); lvi.SubItems.Insert(0, lvsi); string userDefStr = UI.GetBoolAsYesNo(subst.IsUserDefined); lvsi = new ListViewItem.ListViewSubItem(lvi, userDefStr); lvi.SubItems.Insert(1, lvsi); string typeStr = SubstancesControl.GetSubstanceTypeAsString(subst.SubstanceType); lvsi = new ListViewItem.ListViewSubItem(lvi, typeStr); lvi.SubItems.Insert(2, lvsi); lvsi = new ListViewItem.ListViewSubItem(lvi, subst.FormulaString); lvi.SubItems.Insert(3, lvsi); this.listViewSubstances.Items.Add(lvi); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.panel = new System.Windows.Forms.Panel(); this.buttonCancel = new System.Windows.Forms.Button(); this.buttonOk = new System.Windows.Forms.Button(); this.buttonDuhringLines = new System.Windows.Forms.Button(); this.groupBoxChooseSubstances = new System.Windows.Forms.GroupBox(); this.buttonAddSubstance = new System.Windows.Forms.Button(); this.groupBoxDMComponents = new System.Windows.Forms.GroupBox(); this.buttonNormalize = new System.Windows.Forms.Button(); this.buttonRemoveSubstance = new System.Windows.Forms.Button(); this.groupBoxSubstances = new System.Windows.Forms.GroupBox(); this.buttonSubstanceDetails = new System.Windows.Forms.Button(); this.comboBoxMoistureSubstance = new System.Windows.Forms.ComboBox(); this.comboBoxType = new System.Windows.Forms.ComboBox(); this.textBoxName = new System.Windows.Forms.TextBox(); this.labelType = new System.Windows.Forms.Label(); this.labelMoistureSubstance = new System.Windows.Forms.Label(); this.labelName = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel(); this.dmComponentsControl = new ProsimoUI.MaterialsUI.DMSubstancesControl(); this.substancesControl = new ProsimoUI.SubstancesUI.SubstancesControl(); this.textBoxSpecificHeat = new ProsimoUI.ProcessVarTextBox(); this.labelSpecificHeat = new ProsimoUI.ProcessVarLabel(); this.panel.SuspendLayout(); this.groupBoxChooseSubstances.SuspendLayout(); this.groupBoxDMComponents.SuspendLayout(); this.groupBoxSubstances.SuspendLayout(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); this.SuspendLayout(); // // panel // this.panel.AutoSize = true; this.panel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel.Controls.Add(this.panel3); this.panel.Controls.Add(this.panel2); this.panel.Controls.Add(this.panel1); this.panel.Dock = System.Windows.Forms.DockStyle.Fill; this.panel.Location = new System.Drawing.Point(0, 0); this.panel.Name = "panel"; this.panel.Size = new System.Drawing.Size(754, 442); this.panel.TabIndex = 0; // // buttonCancel // this.buttonCancel.Location = new System.Drawing.Point(410, 17); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(75, 23); this.buttonCancel.TabIndex = 9; this.buttonCancel.Text = "Cancel"; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); // // buttonOk // this.buttonOk.Location = new System.Drawing.Point(308, 17); this.buttonOk.Name = "buttonOk"; this.buttonOk.Size = new System.Drawing.Size(75, 23); this.buttonOk.TabIndex = 8; this.buttonOk.Text = "OK"; this.buttonOk.Click += new System.EventHandler(this.buttonOk_Click); // // buttonDuhringLines // this.buttonDuhringLines.Location = new System.Drawing.Point(625, 35); this.buttonDuhringLines.Name = "buttonDuhringLines"; this.buttonDuhringLines.Size = new System.Drawing.Size(96, 23); this.buttonDuhringLines.TabIndex = 7; this.buttonDuhringLines.Text = "Duhring Lines"; this.buttonDuhringLines.Click += new System.EventHandler(this.buttonDuhringLines_Click); // // groupBoxChooseSubstances // this.groupBoxChooseSubstances.AutoSize = true; this.groupBoxChooseSubstances.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.groupBoxChooseSubstances.Controls.Add(this.buttonAddSubstance); this.groupBoxChooseSubstances.Controls.Add(this.groupBoxDMComponents); this.groupBoxChooseSubstances.Controls.Add(this.groupBoxSubstances); this.groupBoxChooseSubstances.Location = new System.Drawing.Point(6, 7); this.groupBoxChooseSubstances.Name = "groupBoxChooseSubstances"; this.groupBoxChooseSubstances.Size = new System.Drawing.Size(748, 329); this.groupBoxChooseSubstances.TabIndex = 6; this.groupBoxChooseSubstances.TabStop = false; // // buttonAddSubstance // this.buttonAddSubstance.Location = new System.Drawing.Point(368, 120); this.buttonAddSubstance.Name = "buttonAddSubstance"; this.buttonAddSubstance.Size = new System.Drawing.Size(75, 23); this.buttonAddSubstance.TabIndex = 2; this.buttonAddSubstance.Text = "Add >>"; this.buttonAddSubstance.Click += new System.EventHandler(this.buttonAddSubstance_Click); // // groupBoxDMComponents // this.groupBoxDMComponents.AutoSize = true; this.groupBoxDMComponents.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.groupBoxDMComponents.Controls.Add(this.buttonNormalize); this.groupBoxDMComponents.Controls.Add(this.dmComponentsControl); this.groupBoxDMComponents.Controls.Add(this.buttonRemoveSubstance); this.groupBoxDMComponents.Location = new System.Drawing.Point(448, 16); this.groupBoxDMComponents.Name = "groupBoxDMComponents"; this.groupBoxDMComponents.Size = new System.Drawing.Size(294, 294); this.groupBoxDMComponents.TabIndex = 1; this.groupBoxDMComponents.TabStop = false; this.groupBoxDMComponents.Text = "Drying Material Components"; // // buttonNormalize // this.buttonNormalize.Location = new System.Drawing.Point(192, 252); this.buttonNormalize.Name = "buttonNormalize"; this.buttonNormalize.Size = new System.Drawing.Size(75, 23); this.buttonNormalize.TabIndex = 1; this.buttonNormalize.Text = "Normalize"; this.buttonNormalize.Click += new System.EventHandler(this.buttonNormalize_Click); // // buttonRemoveSubstance // this.buttonRemoveSubstance.Location = new System.Drawing.Point(20, 252); this.buttonRemoveSubstance.Name = "buttonRemoveSubstance"; this.buttonRemoveSubstance.Size = new System.Drawing.Size(75, 23); this.buttonRemoveSubstance.TabIndex = 3; this.buttonRemoveSubstance.Text = "Remove"; this.buttonRemoveSubstance.Click += new System.EventHandler(this.buttonRemoveSubstance_Click); // // groupBoxSubstances // this.groupBoxSubstances.AutoSize = true; this.groupBoxSubstances.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.groupBoxSubstances.Controls.Add(this.buttonSubstanceDetails); this.groupBoxSubstances.Controls.Add(this.substancesControl); this.groupBoxSubstances.Dock = System.Windows.Forms.DockStyle.Left; this.groupBoxSubstances.Location = new System.Drawing.Point(3, 16); this.groupBoxSubstances.Name = "groupBoxSubstances"; this.groupBoxSubstances.Size = new System.Drawing.Size(361, 310); this.groupBoxSubstances.TabIndex = 0; this.groupBoxSubstances.TabStop = false; this.groupBoxSubstances.Text = "Substances"; // // buttonSubstanceDetails // this.buttonSubstanceDetails.Location = new System.Drawing.Point(8, 252); this.buttonSubstanceDetails.Name = "buttonSubstanceDetails"; this.buttonSubstanceDetails.Size = new System.Drawing.Size(75, 23); this.buttonSubstanceDetails.TabIndex = 1; this.buttonSubstanceDetails.Text = "Details"; this.buttonSubstanceDetails.Click += new System.EventHandler(this.buttonSubstanceDetails_Click); // // comboBoxMoistureSubstance // this.comboBoxMoistureSubstance.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxMoistureSubstance.FormattingEnabled = true; this.comboBoxMoistureSubstance.Location = new System.Drawing.Point(376, 37); this.comboBoxMoistureSubstance.Name = "comboBoxMoistureSubstance"; this.comboBoxMoistureSubstance.Size = new System.Drawing.Size(121, 21); this.comboBoxMoistureSubstance.TabIndex = 5; this.comboBoxMoistureSubstance.SelectedIndexChanged += new System.EventHandler(this.comboBoxMoistureSubstance_SelectedIndexChanged); // // comboBoxType // this.comboBoxType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxType.FormattingEnabled = true; this.comboBoxType.Location = new System.Drawing.Point(54, 37); this.comboBoxType.Name = "comboBoxType"; this.comboBoxType.Size = new System.Drawing.Size(121, 21); this.comboBoxType.TabIndex = 4; this.comboBoxType.SelectedIndexChanged += new System.EventHandler(this.comboBoxType_SelectedIndexChanged); // // textBoxName // this.textBoxName.Location = new System.Drawing.Point(54, 8); this.textBoxName.Name = "textBoxName"; this.textBoxName.Size = new System.Drawing.Size(210, 20); this.textBoxName.TabIndex = 3; // // labelType // this.labelType.Location = new System.Drawing.Point(8, 38); this.labelType.Name = "labelType"; this.labelType.Size = new System.Drawing.Size(40, 16); this.labelType.TabIndex = 2; this.labelType.Text = "Type:"; this.labelType.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelMoistureSubstance // this.labelMoistureSubstance.Location = new System.Drawing.Point(315, 35); this.labelMoistureSubstance.Name = "labelMoistureSubstance"; this.labelMoistureSubstance.Size = new System.Drawing.Size(55, 16); this.labelMoistureSubstance.TabIndex = 1; this.labelMoistureSubstance.Text = "Solvent:"; this.labelMoistureSubstance.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelName // this.labelName.Location = new System.Drawing.Point(8, 11); this.labelName.Name = "labelName"; this.labelName.Size = new System.Drawing.Size(44, 16); this.labelName.TabIndex = 0; this.labelName.Text = "Name:"; this.labelName.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // panel1 // this.panel1.AutoSize = true; this.panel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.panel1.Controls.Add(this.labelName); this.panel1.Controls.Add(this.textBoxSpecificHeat); this.panel1.Controls.Add(this.labelType); this.panel1.Controls.Add(this.labelSpecificHeat); this.panel1.Controls.Add(this.comboBoxType); this.panel1.Controls.Add(this.buttonDuhringLines); this.panel1.Controls.Add(this.textBoxName); this.panel1.Controls.Add(this.labelMoistureSubstance); this.panel1.Controls.Add(this.comboBoxMoistureSubstance); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(750, 61); this.panel1.TabIndex = 118; // // panel2 // this.panel2.AutoSize = true; this.panel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.panel2.Controls.Add(this.buttonOk); this.panel2.Controls.Add(this.buttonCancel); this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel2.Location = new System.Drawing.Point(0, 395); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(750, 43); this.panel2.TabIndex = 119; // // panel3 // this.panel3.AutoSize = true; this.panel3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.panel3.Controls.Add(this.groupBoxChooseSubstances); this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; this.panel3.Location = new System.Drawing.Point(0, 61); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(750, 334); this.panel3.TabIndex = 120; // // dmComponentsControl // this.dmComponentsControl.Location = new System.Drawing.Point(8, 20); this.dmComponentsControl.Name = "dmComponentsControl"; this.dmComponentsControl.Size = new System.Drawing.Size(280, 216); this.dmComponentsControl.TabIndex = 0; // // substancesControl // this.substancesControl.AutoSize = true; this.substancesControl.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.substancesControl.Location = new System.Drawing.Point(8, 20); this.substancesControl.Name = "substancesControl"; this.substancesControl.Size = new System.Drawing.Size(347, 228); this.substancesControl.SubstancesToShow = ProsimoUI.SubstancesToShow.All; this.substancesControl.TabIndex = 0; // // textBoxSpecificHeat // this.textBoxSpecificHeat.Location = new System.Drawing.Point(641, 8); this.textBoxSpecificHeat.Name = "textBoxSpecificHeat"; this.textBoxSpecificHeat.Size = new System.Drawing.Size(80, 20); this.textBoxSpecificHeat.TabIndex = 117; this.textBoxSpecificHeat.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.textBoxSpecificHeat.KeyUp += new System.Windows.Forms.KeyEventHandler(this.textBoxSpecificHeat_KeyUp); // // labelSpecificHeat // this.labelSpecificHeat.AutoSize = true; this.labelSpecificHeat.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.labelSpecificHeat.Location = new System.Drawing.Point(376, 12); this.labelSpecificHeat.Name = "labelSpecificHeat"; this.labelSpecificHeat.Size = new System.Drawing.Size(70, 15); this.labelSpecificHeat.TabIndex = 116; this.labelSpecificHeat.Text = "SpecificHeat"; this.labelSpecificHeat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // AddOrEditDryingMaterialForm // this.AutoSize = true; this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.ClientSize = new System.Drawing.Size(754, 442); this.Controls.Add(this.panel); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "AddOrEditDryingMaterialForm"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "New Drying Material"; this.panel.ResumeLayout(false); this.panel.PerformLayout(); this.groupBoxChooseSubstances.ResumeLayout(false); this.groupBoxChooseSubstances.PerformLayout(); this.groupBoxDMComponents.ResumeLayout(false); this.groupBoxSubstances.ResumeLayout(false); this.groupBoxSubstances.PerformLayout(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.panel2.ResumeLayout(false); this.panel3.ResumeLayout(false); this.panel3.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void PopulateSubstanceList() { this.listViewSubstances.Items.Clear(); string typeFilterStr = this.comboBoxTypes.SelectedItem.ToString(); string userDefFilterStr = this.comboBoxUserDef.SelectedItem.ToString(); IList list = null; if (typeFilterStr.Equals(UI.STR_ALL) && userDefFilterStr.Equals(UI.STR_ALL)) { if (this.substancesToShow == SubstancesToShow.All) { list = SubstanceCatalog.GetInstance().GetSubstanceList(); } else if (this.substancesToShow == SubstancesToShow.Material) { list = SubstanceCatalog.GetInstance().GetMaterialSubstanceList(); } //else if (this.substancesToShow == SubstancesToShow.Gas) // list = SubstanceCatalog.GetInstance().GetGasSubstanceList(); //else if (this.substancesToShow == SubstancesToShow.Moisture) // list = SubstanceCatalog.GetInstance().GetMoistureSubstanceList(); this.PopulateIt(list); } else if (typeFilterStr.Equals(UI.STR_ALL) && !userDefFilterStr.Equals(UI.STR_ALL)) { bool userDef = UI.GetUserDefinedAsBool(userDefFilterStr); if (this.substancesToShow == SubstancesToShow.All) { list = SubstanceCatalog.GetInstance().GetSubstanceList(userDef); } else if (this.substancesToShow == SubstancesToShow.Material) { list = SubstanceCatalog.GetInstance().GetMaterialSubstanceList(userDef); } //else if (this.substancesToShow == SubstancesToShow.Gas) // list = SubstanceCatalog.GetInstance().GetGasSubstanceList(userDef); //else if (this.substancesToShow == SubstancesToShow.Moisture) // list = SubstanceCatalog.GetInstance().GetMoistureSubstanceList(userDef); this.PopulateIt(list); } else if (!typeFilterStr.Equals(UI.STR_ALL) && userDefFilterStr.Equals(UI.STR_ALL)) { SubstanceType type = SubstancesControl.GetSubstanceTypeAsEnum(typeFilterStr); if (this.substancesToShow == SubstancesToShow.All) { list = SubstanceCatalog.GetInstance().GetSubstanceList(type); } else if (this.substancesToShow == SubstancesToShow.Material) { list = SubstanceCatalog.GetInstance().GetMaterialSubstanceList(type); } //else if (this.substancesToShow == SubstancesToShow.Gas) // list = SubstanceCatalog.GetInstance().GetGasSubstanceList(type); //else if (this.substancesToShow == SubstancesToShow.Moisture) // list = SubstanceCatalog.GetInstance().GetMoistureSubstanceList(type); this.PopulateIt(list); } else { bool userDef = UI.GetUserDefinedAsBool(userDefFilterStr); SubstanceType type = SubstancesControl.GetSubstanceTypeAsEnum(typeFilterStr); if (this.substancesToShow == SubstancesToShow.All) { list = SubstanceCatalog.GetInstance().GetSubstanceList(userDef, type); } else if (this.substancesToShow == SubstancesToShow.Material) { // list = SubstanceCatalog.GetInstance().GetMaterialSubstanceList(userDef, type); //else if (this.substancesToShow == SubstancesToShow.Gas) // list = SubstanceCatalog.GetInstance().GetGasSubstanceList(userDef, type); //else if (this.substancesToShow == SubstancesToShow.Moisture) // list = SubstanceCatalog.GetInstance().GetMoistureSubstanceList(userDef, type); this.PopulateIt(list); } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.panel = new System.Windows.Forms.Panel(); this.buttonCancel = new System.Windows.Forms.Button(); this.buttonOk = new System.Windows.Forms.Button(); this.buttonDuhringLines = new System.Windows.Forms.Button(); this.groupBoxChooseSubstances = new System.Windows.Forms.GroupBox(); this.buttonAddSubstance = new System.Windows.Forms.Button(); this.groupBoxDMComponents = new System.Windows.Forms.GroupBox(); this.buttonNormalize = new System.Windows.Forms.Button(); this.dmComponentsControl = new ProsimoUI.MaterialsUI.MaterialComponentsControl(); this.buttonRemoveSubstance = new System.Windows.Forms.Button(); this.groupBoxSubstances = new System.Windows.Forms.GroupBox(); this.buttonSubstanceDetails = new System.Windows.Forms.Button(); this.substancesControl = new ProsimoUI.SubstancesUI.SubstancesControl(); this.comboBoxMoistureSubstance = new System.Windows.Forms.ComboBox(); this.comboBoxType = new System.Windows.Forms.ComboBox(); this.textBoxName = new System.Windows.Forms.TextBox(); this.labelType = new System.Windows.Forms.Label(); this.labelMoistureSubstance = new System.Windows.Forms.Label(); this.labelName = new System.Windows.Forms.Label(); this.panel.SuspendLayout(); this.groupBoxChooseSubstances.SuspendLayout(); this.groupBoxDMComponents.SuspendLayout(); this.groupBoxSubstances.SuspendLayout(); this.SuspendLayout(); // // panel // this.panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel.Controls.Add(this.buttonCancel); this.panel.Controls.Add(this.buttonOk); this.panel.Controls.Add(this.buttonDuhringLines); this.panel.Controls.Add(this.groupBoxChooseSubstances); this.panel.Controls.Add(this.comboBoxMoistureSubstance); this.panel.Controls.Add(this.comboBoxType); this.panel.Controls.Add(this.textBoxName); this.panel.Controls.Add(this.labelType); this.panel.Controls.Add(this.labelMoistureSubstance); this.panel.Controls.Add(this.labelName); this.panel.Dock = System.Windows.Forms.DockStyle.Fill; this.panel.Location = new System.Drawing.Point(0, 0); this.panel.Name = "panel"; this.panel.Size = new System.Drawing.Size(754, 376); this.panel.TabIndex = 0; // // buttonCancel // this.buttonCancel.Location = new System.Drawing.Point(380, 344); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.TabIndex = 9; this.buttonCancel.Text = "Cancel"; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); // // buttonOk // this.buttonOk.Location = new System.Drawing.Point(300, 344); this.buttonOk.Name = "buttonOk"; this.buttonOk.TabIndex = 8; this.buttonOk.Text = "OK"; this.buttonOk.Click += new System.EventHandler(this.buttonOk_Click); // // buttonDuhringLines // this.buttonDuhringLines.Location = new System.Drawing.Point(636, 8); this.buttonDuhringLines.Name = "buttonDuhringLines"; this.buttonDuhringLines.Size = new System.Drawing.Size(96, 23); this.buttonDuhringLines.TabIndex = 7; this.buttonDuhringLines.Text = "Duhring Lines"; this.buttonDuhringLines.Click += new System.EventHandler(this.buttonDuhringLines_Click); // // groupBoxChooseSubstances // this.groupBoxChooseSubstances.Controls.Add(this.buttonAddSubstance); this.groupBoxChooseSubstances.Controls.Add(this.groupBoxDMComponents); this.groupBoxChooseSubstances.Controls.Add(this.groupBoxSubstances); this.groupBoxChooseSubstances.Location = new System.Drawing.Point(4, 40); this.groupBoxChooseSubstances.Name = "groupBoxChooseSubstances"; this.groupBoxChooseSubstances.Size = new System.Drawing.Size(744, 300); this.groupBoxChooseSubstances.TabIndex = 6; this.groupBoxChooseSubstances.TabStop = false; // // buttonAddSubstance // this.buttonAddSubstance.Location = new System.Drawing.Point(368, 120); this.buttonAddSubstance.Name = "buttonAddSubstance"; this.buttonAddSubstance.TabIndex = 2; this.buttonAddSubstance.Text = "Add >>"; this.buttonAddSubstance.Click += new System.EventHandler(this.buttonAddSubstance_Click); // // groupBoxDMComponents // this.groupBoxDMComponents.Controls.Add(this.buttonNormalize); this.groupBoxDMComponents.Controls.Add(this.dmComponentsControl); this.groupBoxDMComponents.Controls.Add(this.buttonRemoveSubstance); this.groupBoxDMComponents.Location = new System.Drawing.Point(448, 16); this.groupBoxDMComponents.Name = "groupBoxDMComponents"; this.groupBoxDMComponents.Size = new System.Drawing.Size(292, 236); this.groupBoxDMComponents.TabIndex = 1; this.groupBoxDMComponents.TabStop = false; this.groupBoxDMComponents.Text = "Drying Material Components"; // // buttonNormalize // this.buttonNormalize.Location = new System.Drawing.Point(192, 208); this.buttonNormalize.Name = "buttonNormalize"; this.buttonNormalize.TabIndex = 1; this.buttonNormalize.Text = "Normalize"; this.buttonNormalize.Click += new System.EventHandler(this.buttonNormalize_Click); // // dmComponentsControl // this.dmComponentsControl.Location = new System.Drawing.Point(8, 20); this.dmComponentsControl.Name = "dmComponentsControl"; this.dmComponentsControl.Size = new System.Drawing.Size(280, 184); this.dmComponentsControl.TabIndex = 0; // // buttonRemoveSubstance // this.buttonRemoveSubstance.Location = new System.Drawing.Point(20, 208); this.buttonRemoveSubstance.Name = "buttonRemoveSubstance"; this.buttonRemoveSubstance.TabIndex = 3; this.buttonRemoveSubstance.Text = "Remove"; this.buttonRemoveSubstance.Click += new System.EventHandler(this.buttonRemoveSubstance_Click); // // groupBoxSubstances // this.groupBoxSubstances.Controls.Add(this.buttonSubstanceDetails); this.groupBoxSubstances.Controls.Add(this.substancesControl); this.groupBoxSubstances.Location = new System.Drawing.Point(8, 16); this.groupBoxSubstances.Name = "groupBoxSubstances"; this.groupBoxSubstances.Size = new System.Drawing.Size(356, 280); this.groupBoxSubstances.TabIndex = 0; this.groupBoxSubstances.TabStop = false; this.groupBoxSubstances.Text = "Substances"; // // buttonSubstanceDetails // this.buttonSubstanceDetails.Location = new System.Drawing.Point(8, 252); this.buttonSubstanceDetails.Name = "buttonSubstanceDetails"; this.buttonSubstanceDetails.TabIndex = 1; this.buttonSubstanceDetails.Text = "Details"; this.buttonSubstanceDetails.Click += new System.EventHandler(this.buttonSubstanceDetails_Click); // // substancesControl // this.substancesControl.Location = new System.Drawing.Point(8, 20); this.substancesControl.Name = "substancesControl"; this.substancesControl.Size = new System.Drawing.Size(344, 228); this.substancesControl.SubstancesToShow = ProsimoUI.SubstancesToShow.All; this.substancesControl.TabIndex = 0; // // comboBoxMoistureSubstance // this.comboBoxMoistureSubstance.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxMoistureSubstance.Location = new System.Drawing.Point(492, 8); this.comboBoxMoistureSubstance.Name = "comboBoxMoistureSubstance"; this.comboBoxMoistureSubstance.Size = new System.Drawing.Size(121, 21); this.comboBoxMoistureSubstance.TabIndex = 5; this.comboBoxMoistureSubstance.SelectedIndexChanged += new System.EventHandler(this.comboBoxMoistureSubstance_SelectedIndexChanged); // // comboBoxType // this.comboBoxType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxType.Location = new System.Drawing.Point(236, 8); this.comboBoxType.Name = "comboBoxType"; this.comboBoxType.Size = new System.Drawing.Size(121, 21); this.comboBoxType.TabIndex = 4; this.comboBoxType.SelectedIndexChanged += new System.EventHandler(this.comboBoxType_SelectedIndexChanged); // // textBoxName // this.textBoxName.Location = new System.Drawing.Point(56, 8); this.textBoxName.Name = "textBoxName"; this.textBoxName.Size = new System.Drawing.Size(120, 20); this.textBoxName.TabIndex = 3; this.textBoxName.Text = ""; // // labelType // this.labelType.Location = new System.Drawing.Point(192, 12); this.labelType.Name = "labelType"; this.labelType.Size = new System.Drawing.Size(40, 16); this.labelType.TabIndex = 2; this.labelType.Text = "Type:"; this.labelType.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelMoistureSubstance // this.labelMoistureSubstance.Location = new System.Drawing.Point(372, 12); this.labelMoistureSubstance.Name = "labelMoistureSubstance"; this.labelMoistureSubstance.Size = new System.Drawing.Size(116, 16); this.labelMoistureSubstance.TabIndex = 1; this.labelMoistureSubstance.Text = "Moisture Substance:"; this.labelMoistureSubstance.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelName // this.labelName.Location = new System.Drawing.Point(8, 12); this.labelName.Name = "labelName"; this.labelName.Size = new System.Drawing.Size(44, 16); this.labelName.TabIndex = 0; this.labelName.Text = "Name:"; this.labelName.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // AddOrEditDryingMaterialForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(754, 376); this.Controls.Add(this.panel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "AddOrEditDryingMaterialForm"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "New Drying Material"; this.panel.ResumeLayout(false); this.groupBoxChooseSubstances.ResumeLayout(false); this.groupBoxDMComponents.ResumeLayout(false); this.groupBoxSubstances.ResumeLayout(false); this.ResumeLayout(false); }