private void toolStripButton1_Click(object sender, EventArgs e) { if (!FillPassword()) { return; } FrmTambahUser frmTambahUser = new FrmTambahUser(this); frmTambahUser.ShowDialog(); }
public void InsertSingleData(FrmTambahUser _frmTambahUser) { GridViewDataRowInfo dataRowInfo = new GridViewDataRowInfo(this.gvUser.MasterView); dataRowInfo.Cells[0].Value = _frmTambahUser.txtUsername.Text; dataRowInfo.Cells[1].Value = T8GlobalFunc.MD5Encrypt(_frmTambahUser.txtPassword.Text); dataRowInfo.Cells[2].Value = _frmTambahUser.hakAksesUser; dataRowInfo.Cells[3].Value = null; dataRowInfo.Cells[4].Value = null; dataRowInfo.Cells[5].Value = _frmTambahUser.status; dataRowInfo.Cells[6].Value = string.Format("{0:dd MMM yyyy}", DateTime.Now); dataRowInfo.Cells[7].Value = string.Format("{0:HH:mm:ss}", DateTime.Now); dataRowInfo.Cells[8].Value = T8UserLoginInfo.Username; gvUser.Rows.Insert(0, dataRowInfo); }
private void toolStripButton1_Click(object sender, EventArgs e) { if (!FillPassword()) return; FrmTambahUser frmTambahUser = new FrmTambahUser(this); frmTambahUser.ShowDialog(); }