private void updateUser() { if (dataGridView.SelectedRows.Count < 1) { return; } string U_Code = dataGridView.SelectedRows[0].Cells["F_Account"].Value.ToString(); frmUserEdit frmUserEdit = new frmUserEdit(this, frmMain.User, U_Code, 2); frmUserEdit.ShowDialog(); }
private void addUser() { frmUserEdit frmUserEdit = new frmUserEdit(this, frmMain.User, "", 1); frmUserEdit.ShowDialog(); }