Esempio n. 1
0
 private void GuardsReport_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (Mode != 5)
     {
         Refer.Close();
     }
 }
Esempio n. 2
0
 private void Clients_Edit_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (Button.Equals("ADD"))
     {
         Refer.Close();
     }
 }
Esempio n. 3
0
 private void Guards_EditEmployees_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (Button.Equals("ADD"))
     {
         Refer.Close();
     }
 }
Esempio n. 4
0
 private void RViewEmployees_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!Name.Equals("Archived"))
     {
         Shadow.Close();
     }
 }
Esempio n. 5
0
 private void Payroll_ConfHolidays_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!CloseBTN.Visible)
     {
         if (RylMessageBox.ShowDialog("Are you sure you want to stop editing? Unsaved changes will be lost.", "Stop Editing?",
                                      MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
         {
             Refer.Close();
         }
         else
         {
             e.Cancel = true;
         }
     }
     else
     {
         Refer.Close();
     }
 }
Esempio n. 6
0
 private void About_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (CloseBTN.Visible)
     {
         Refer.Close();
     }
     else
     {
         e.Cancel = true;
     }
 }
Esempio n. 7
0
 private void Payroll_ConfigSSS_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!CloseBTN.Visible &&
         RylMessageBox.ShowDialog(
             "You are still editing. Any unsaved changes will be lost.\nAre you sure you want to close this page?",
             "Cancel Changes?", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes ||
         CloseBTN.Visible)
     {
         Refer.Close();
     }
 }
Esempio n. 8
0
 private void SchedViewAssHistory_FormClosing(object sender, FormClosingEventArgs e)
 {
     Refer.Close();
 }
Esempio n. 9
0
 private void GuardsArchive_FormClosing(object sender, FormClosingEventArgs e)
 {
     Shadow.Close();
 }
Esempio n. 10
0
 private void Sched_RequestGuard_FormClosing(object sender, FormClosingEventArgs e)
 {
     Refer.Close();
 }
Esempio n. 11
0
 private void Sched_DismissGuard_FormClosing(object sender, FormClosingEventArgs e)
 {
     Refer.Close();
 }
Esempio n. 12
0
 private void Clients_View_FormClosing(object sender, FormClosingEventArgs e)
 {
     Refer.Close();
 }