Beispiel #1
0
 private void promptToDelete()
 {
     if (lv.SelectedItems.Count > 0)
     {
         if (DialogResult.Yes == MessageBox.Show(this, getDisplayMember("promptToDelete{prompt_body}", "Are you sure you want to delete the file(s)?\nThe file(s) will be permanently deleted."),
                                                 getDisplayMember("promptToDelete{prompt_title}", "Delete file(s)?"), MessageBoxButtons.YesNo, MessageBoxIcon.Question))
         {
             foreach (ListViewItem lvi in lv.SelectedItems)
             {
                 AdminProxy.DeleteFile(Toolkit.ToInt32(lvi.Tag, -1));
             }
             MainFormUpdateStatus(getDisplayMember("promptToDelete{done}", "Deleted {0} file(s)", lv.SelectedItems.Count.ToString("###,##0")), true);
             RefreshData();
         }
     }
 }