Exemple #1
0
 private void promptToDelete()
 {
     if (lv.SelectedItems.Count > 0)
     {
         if (DialogResult.Yes == MessageBox.Show(this, getDisplayMember("promptToDelete{body}", "Are you sure you want to delete data trigger(s)?\nThe corresponding file will not be deleted."),
                                                 getDisplayMember("promptToDelete{title}", "Delete Data Trigger(s)?"), MessageBoxButtons.YesNo, MessageBoxIcon.Question))
         {
             foreach (ListViewItem lvi in lv.SelectedItems)
             {
                 AdminProxy.DeleteTrigger(Toolkit.ToInt32(lvi.Tag, -1));
             }
             MainFormUpdateStatus(getDisplayMember("promptToDelete{deleted}", "Deleted {0} Data Triggers.", lv.SelectedItems.Count.ToString("###,##0")), true);
             RefreshData();
         }
     }
 }