public void InitControl(Class_WeldingStandardGroup myClass_WeldingStandardGroup, bool bool_Add) { this.myClass_WeldingStandardGroup = myClass_WeldingStandardGroup; if (bool_Add == false) { this.textBox_WeldingStandardGroup.ReadOnly = true; this.textBox_WeldingStandardGroup.Text = myClass_WeldingStandardGroup.WeldingStandardGroup; this.textBox_WeldingStandardGroupRemark.Text = myClass_WeldingStandardGroup.WeldingStandardGroupRemark; this.numericUpDown_WeldingStandardGroupIndex.Value = myClass_WeldingStandardGroup.WeldingStandardGroupIndex; } else { } }
public void InitControl(Class_WeldingStandardAndGroup myClass_WeldingStandardAndGroup, bool bool_Add) { this.myClass_WeldingStandardAndGroup = myClass_WeldingStandardAndGroup; this.bool_Add = bool_Add; if (bool_Add == false) { this.button_WeldingStandardQuery.Visible = false; this.button_WeldingStandardGroupQuery.Visible = false; Class_WeldingStandardGroup myClass_WeldingStandardGroup = new Class_WeldingStandardGroup(this.myClass_WeldingStandardAndGroup.WeldingStandardGroup); this.textBox_WeldingStandardGroup.Text = string.Format("{0}", myClass_WeldingStandardGroup.WeldingStandardGroup); this.textBox_WeldingStandardGroupRemark.Text = string.Format("{0}", myClass_WeldingStandardGroup.WeldingStandardGroupRemark); Class_WeldingStandard myClass_WeldingStandard = new Class_WeldingStandard(this.myClass_WeldingStandardAndGroup.WeldingStandard); this.textBox_WeldingStandard.Text = string.Format("{0}", myClass_WeldingStandard.WeldingStandard); this.textBox_WeldingStandardRemark.Text = string.Format("{0}", myClass_WeldingStandard.WeldingStandardRemark); this.textBox_WeldingStandardTitle.Text = string.Format("{0}", myClass_WeldingStandard.WeldingStandardTitle); } else { } }