Esempio n. 1
0
 private void promptToDelete()
 {
     if (lvGroups.SelectedItems.Count > 0)
     {
         if (DialogResult.Yes == MessageBox.Show(this, getDisplayMember("promptToDelete{start_body}", "Are you sure you want to delete group(s)?\n\nThis will not delete any permissions or users or alter any user-specific permissions in any way."),
                                                 getDisplayMember("promptToDelete{start_title}", "Delete Group(s)?"), MessageBoxButtons.YesNo, MessageBoxIcon.Question))
         {
             foreach (ListViewItem lvi in lvGroups.SelectedItems)
             {
                 AdminProxy.DeleteGroup(Toolkit.ToInt32(lvi.Tag, -1));
             }
             MainFormUpdateStatus(getDisplayMember("promptToDelete{done}", "Deleted {0} group(s)", lvGroups.SelectedItems.Count.ToString("###,##0")), true);
             RefreshData();
         }
     }
 }