Exemple #1
0
 /* 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;
 }
Exemple #2
0
 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;
         }
     }
 }