private void 用户信息查询ToolStripMenuItem_Click(object sender, EventArgs e) { if (level1 == "管理员") { Edit_User edit = new Edit_User(); edit.ShowDialog(); } if (level1 == "用户") { Add_User add = new Add_User(); add.type = "4"; add.ShowDialog(); } }
private void Edit_Info_Click(object sender, EventArgs e) { if (level1 == "管理员") { Edit_User edit = new Edit_User(); edit.ShowDialog(); } if (level1 == "用户") { Add_User edit = new Add_User(); edit.type = "3"; edit.ShowDialog(); } }
private void 用户信息修改ToolStripMenuItem_Click(object sender, EventArgs e) { if (PublicPassBy.level == "管理员") { Edit_User edit = new Edit_User(); edit.ShowDialog(); } if (level1 == "用户") { Add_User edit = new Add_User(); edit.type = "3"; edit.ShowDialog(); } }