private void tsmiUserPower_Click(object sender, EventArgs e) { if (Searcher.FindFormByName("usergroup")) { return; } //验证用户密码 if (!IsValidate()) { return; } usergroup use = new usergroup(); use.Show(dockPanel1, DockState.Document); }
private void 用户权限分配ToolStripMenuItem_Click_1(object sender, EventArgs e) { //验证用户密码 if (!IsValidate()) { return; } usergroup use = new usergroup(); use.ShowDialog(); }