Example #1
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     oldCopy.DeepCopyInto(ref contractType);
     bindedContractType.DataSource = contractType;
     bindedContractType.ResetBindings(true);
     edit = insert = false;
     setFieldsEnable(false);
 }
Example #2
0
 private void initialise(ContractType contractType, bool insert)
 {
     InitializeComponent();
     CenterToScreen();
     this.contractType = contractType;
     contractType.DeepCopyInto(ref oldCopy);
     bindedContractType            = new BindingSource();
     bindedContractType.DataSource = contractType;
     this.insert = insert;
     setFieldsEnable(insert);
     serviceLevels = ServiceLevel.Select();
     bindFields();
     cmbID.SelectedIndex = -1;
 }