private void GuardsReport_FormClosing(object sender, FormClosingEventArgs e) { if (Mode != 5) { Refer.Close(); } }
private void Clients_Edit_FormClosing(object sender, FormClosingEventArgs e) { if (Button.Equals("ADD")) { Refer.Close(); } }
private void Guards_EditEmployees_FormClosing(object sender, FormClosingEventArgs e) { if (Button.Equals("ADD")) { Refer.Close(); } }
private void RViewEmployees_FormClosing(object sender, FormClosingEventArgs e) { if (!Name.Equals("Archived")) { Shadow.Close(); } }
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(); } }
private void About_FormClosing(object sender, FormClosingEventArgs e) { if (CloseBTN.Visible) { Refer.Close(); } else { e.Cancel = true; } }
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(); } }
private void SchedViewAssHistory_FormClosing(object sender, FormClosingEventArgs e) { Refer.Close(); }
private void GuardsArchive_FormClosing(object sender, FormClosingEventArgs e) { Shadow.Close(); }
private void Sched_RequestGuard_FormClosing(object sender, FormClosingEventArgs e) { Refer.Close(); }
private void Sched_DismissGuard_FormClosing(object sender, FormClosingEventArgs e) { Refer.Close(); }
private void Clients_View_FormClosing(object sender, FormClosingEventArgs e) { Refer.Close(); }