private void 修改个人信息ToolStripMenuItem_Click(object sender, EventArgs e) { bool myInfo = true; UserEditFrm userEditFrm = new UserEditFrm(constants.currentUser, myInfo); userEditFrm.ShowDialog(); }
private void btnEditUser_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count == 0) { MessageBox.Show("请选择要修改的项!"); } else { Model.user_info editUser = new Model.user_info(); editUser = userList[listView1.SelectedIndices[0]]; bool editMyInfo = false; UserEditFrm userEditFrm = new UserEditFrm(editUser, editMyInfo); userEditFrm.ShowDialog(); getAllUser(); } }