/// <summary> /// 加载管理员信息管理窗体 /// </summary> /// <param name="selectedIndex"></param> /// <param name="sc"></param> private void CreatAdminChildForm(int selectedIndex, SignSocketClient sc) { if (this.MdiChildren != null) { foreach (Form form in this.MdiChildren) { if (form.Name == "AdminManage") { form.Close(); } } } AdminManage admin = new AdminManage(selectedIndex, sc); admin.MdiParent = this; admin.Dock = DockStyle.Fill; admin.Show(); }
/// <summary> /// 加载管理员信息管理窗体 /// </summary> /// <param name="selectedIndex"></param> /// <param name="sc"></param> private void CreatAdminChildForm(int selectedIndex,SignSocketClient sc) { if (this.MdiChildren != null) { foreach (Form form in this.MdiChildren) { if (form.Name == "AdminManage") { form.Close(); } } } AdminManage admin = new AdminManage(selectedIndex, sc); admin.MdiParent = this; admin.Dock = DockStyle.Fill; admin.Show(); }