private void 系统参数YToolStripMenuItem_Click(object sender, EventArgs e) { if (!OnlyOpen("frmSystemSet", "系统参数")) { frmSystemSet fss = new frmSystemSet(); fss.ShowDialog(); } }
private void listView1_DoubleClick(object sender, EventArgs e) { if (frmlogin.type == "超级用户") { if (listView1.SelectedItems[0].Text == " 用户管理") { frmUsercontrol fuc = new frmUsercontrol(); fuc.Owner = this; fuc.ShowDialog(); } } else { ; } if (listView1.SelectedItems[0].Text == " 切换用户") { 切换用户LToolStripMenuItem_Click(sender, e); } if (listView1.SelectedItems[0].Text == " 修改密码") { 修改密码MToolStripMenuItem_Click(sender, e); } if (listView1.SelectedItems[0].Text == " 备份管理") { 备份管理BToolStripMenuItem_Click(sender, e); } if (listView1.SelectedItems[0].Text == " 读者管理") { 读者资料管理PToolStripMenuItem_Click(sender, e); } if (listView1.SelectedItems[0].Text == " 操作流水") { 操作流水HToolStripMenuItem_Click(sender, e); } if (listView1.SelectedItems[0].Text == " 借阅查询") { 借阅查询BToolStripMenuItem_Click(sender, e); } if (listView1.SelectedItems[0].Text == " 系统初始化") { 系统初始化IToolStripMenuItem_Click(sender, e); } if (listView1.SelectedItems[0].Text == " 借阅管理") { toolStripButton2_Click(sender, e); } if (listView1.SelectedItems[0].Text == " 预借详情") { 预借查询PToolStripMenuItem_Click(sender, e); } if (listView1.SelectedItems[0].Text == " 书籍管理") { if (!OnlyOpen("frmBookManage", " 书籍管理")) { frmBookManage fbm = new frmBookManage(); fbm.MdiParent = this; fbm.Show(); } //读者资料管理PToolStripMenuItem_Click(sender, e); } if (listView1.SelectedItems[0].Text == " 暂时离开") { 暂时离开OToolStripMenuItem_Click(sender, e); } if (listView1.SelectedItems[0].Text == " 备忘管理") { 备忘管理RToolStripMenuItem_Click(sender, e); } if (listView1.SelectedItems[0].Text == " 系统参数") { if (!OnlyOpen("frmSystemSet", " 系统参数")) { frmSystemSet fss = new frmSystemSet(); fss.ShowDialog(); } } }