private void ModifyGroup_Closed(object sender, EventArgs e) { NameForm nameForm = (NameForm)sender; if (nameForm.DialogResult != DialogResult.OK) { return; } try { CGroupEntity group = new CGroupEntity(_currentUser.ConnString).Load((int)groupListView.SelectedItems[0].Tag); group.Grp_Name = nameForm.NewName; _currentUser.ModifyGroup(group); LoadGroups(); } catch (Exception ex) { MessageBox.Show("修改用户组失败:" + ex.Message, "文档管理系统", MessageBoxButtons.OK, MessageBoxIcon.Error); } }