예제 #1
0
 private void BtnCancel_Click(object sender, EventArgs e)
 {
     if (ClsGlobal.ConfirmFormClear == 1)
     {
         DialogResult dialog = ClsGlobal.ConfirmFormClearing();
         if (dialog == DialogResult.Yes)
         {
             _Tag = "";
             ControlEnableDisable(true, false);
             ClearFld();
             Text = "Department";
         }
         else
         {
             return;
         }
     }
     else if (ClsGlobal.ConfirmFormClear == 0)
     {
         _Tag = "";
         ControlEnableDisable(true, false);
         ClearFld();
         Text = "Department";
     }
 }
예제 #2
0
 private void BtnCancel_Click(object sender, EventArgs e)
 {
     if (ClsGlobal.ConfirmFormClear == 1)
     {
         DialogResult dialog = ClsGlobal.ConfirmFormClearing();
         if (dialog == DialogResult.Yes)
         {
             _Tag = "";
             ControlEnableDisable(true, false);
             ClearFld();
             TxtDescription.Text = "";
             this.Text           = "User Defined Field Entry";
         }
         else
         {
             return;
         }
     }
     else if (ClsGlobal.ConfirmFormClear == 0)
     {
         _Tag = "";
         ControlEnableDisable(true, false);
         ClearFld();
         TxtDescription.Text = "";
         this.Text           = "User Defined Field Entry";
     }
 }