private void tsmiManageUser_Click(object sender, EventArgs e) { Form frm = new frmUpDateUser(frmMain.user); frm.MdiParent = this; frm.Show(); }
private void lvMessage_MouseDoubleClick(object sender, MouseEventArgs e) { string code = lvMessage.SelectedItems[0].Text; int id = int.Parse(lvMessage.SelectedItems[0].Tag.ToString()); frmUpDateUser frm = new frmUpDateUser(UserManage.getUserById(id)); frm.code = code; frm.Show(); }
private void tsmiUpdate_Click(object sender, EventArgs e) { string code = lvMessage.SelectedItems[0].Text; int id = int.Parse(lvMessage.SelectedItems[0].Tag.ToString()); frmUpDateUser frm = new frmUpDateUser(UserManage.getUserById(id)); frm.form = this; frm.code = code; frm.Show(); }