public ComponentRepWindow() { InitializeComponent(); this.format = new System.Globalization.NumberFormatInfo(); this.mode = ComponentRepWindowMode.CREATE; SetControls(); }
public ComponentRepWindow(ComponentRepWindowMode _mode, CompRepDescirbes _comp) { InitializeComponent(); this.format = new System.Globalization.NumberFormatInfo(); this.mode = _mode; this.comp_current = _comp; this.tb_NamePreview.Text = (_comp == null) ? string.Empty : _comp.Comp_Description; SetControls(); }