Exemple #1
0
 public static void setRemoveListviewItem(ListView sListView, string sSQL, string sTable, string sSelectedForm)
 {
     try
     {
         if (MessageBox.Show("Are you sure you want to delete the selected record?\n\n" + "WARNING: You cannot undo this operation.", "Delete Record", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
         {
             setCommand(sDataSet, sAdapter, sSQL, sTable);
             setFocusListviewItems(sListView);
             UpdateDelay sForm = new UpdateDelay();
             sForm.ShowDialog();
             if (sSelectedForm == "frmCustomers")
             {
                 MainForm.publicCustomers.setReload();
             }
         }
     }
     catch (Exception ex) { MessageBox.Show(ex.Message, "CRYSTAL V.S. RDLC REPORT", MessageBoxButtons.OK, MessageBoxIcon.Error); }
 }
Exemple #2
0
        public static void setUpdateDelay()
        {
            UpdateDelay sForm = new UpdateDelay();

            sForm.ShowDialog();
        }