private void disablePermissionMenuItem_Click(object sender, EventArgs e) { if (lv.SelectedItems.Count > 0) { // if (DialogResult.Yes == MessageBox.Show(this, "Are you sure you want to disable permission(s)?", "Disable Permission(s)?", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { foreach (ListViewItem lvi in lv.SelectedItems) { AdminProxy.DisableFileGroup(Toolkit.ToInt32(lvi.Tag, -1)); } MainFormUpdateStatus(getDisplayMember("disableFileGroup{done}", "Disabled {0} file group(s)", lv.SelectedItems.Count.ToString("###,##0")), true); RefreshData(); // } } }