Example #1
0
 private void btnChange_Click(object sender, EventArgs e)
 {
     if (option == 0)
     {
         ChangePasscode changePasscodeForm = new ChangePasscode(0);
         changePasscodeForm.parentForm = this.parentForm1;
         changePasscodeForm.ShowDialog();
     }
     else if (option == 2)
     {
         ChangePasscode changePasscodeForm = new ChangePasscode(2);
         changePasscodeForm.parentForm = this.parentForm1;
         changePasscodeForm.ShowDialog();
     }
 }
Example #2
0
 private void btnChangePasscode_Click(object sender, EventArgs e)
 {
     if (parentForm.StoreCode.ToUpper() == parentForm.WarehouseStoreCode1.ToUpper() & parentForm.storeName.ToUpper() == parentForm.WarehouseName1.ToUpper())
     {
         ChangePasscode changePasscodeForm = new ChangePasscode(1);
         changePasscodeForm.parentForm = this.parentForm;
         changePasscodeForm.ShowDialog();
     }
     else
     {
         ChangePasscode changePasscodeForm = new ChangePasscode(0);
         changePasscodeForm.parentForm = this.parentForm;
         changePasscodeForm.ShowDialog();
     }
 }