private void initialise(Comp.Component component, bool insert) { InitializeComponent(); CenterToScreen(); txtPrice.Minimum = decimal.MinValue; txtPrice.Maximum = decimal.MaxValue; this.insert = insert; this.component = component; component.DeepCopyInto(ref oldCopy); bindFieldsComponent(component); setFieldEnable(insert); }
private void btnComponentCancel_Click(object sender, EventArgs e) { oldCopy.DeepCopyInto(ref component); }