/* remove column */ private void cbox_columnNames_SelectedIndexChanged(object sender, EventArgs e) { if (EssentialMethods.ConfirmSave("Are you sure you want to delete that table!", "CRITICAL")) { dgv_leads.Columns.Remove(cbox_columnNames.SelectedItem.ToString()); SetReminderCriteria(); } cbox_columnNames.Text = ""; rbtn_addColumn.Checked = true; }
private void MainWindow_FormClosing(object sender, FormClosingEventArgs e) { if (lbl_reminderCirteria.Text == REMINDER_NOTSET) { if (EssentialMethods.ConfirmSave("The [ Reminder Criteria ] hasn't been set yet, Your Settings may be lost.\r\nAre You Sure You Want To Exit ?", "Confirm Exit")) { Export_DGV(PATH_SCHEMA, PATH_LEADS, dgv_leads); e.Cancel = false; } else { e.Cancel = true; } } }