Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 private void btnComponentCancel_Click(object sender, EventArgs e)
 {
     oldCopy.DeepCopyInto(ref component);
 }