Example #1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (!FillPassword())
            {
                return;
            }
            FrmTambahUser frmTambahUser = new FrmTambahUser(this);

            frmTambahUser.ShowDialog();
        }
Example #2
0
        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);
        }
Example #3
0
 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);
 }
Example #4
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     if (!FillPassword()) return;
     FrmTambahUser frmTambahUser = new FrmTambahUser(this);
     frmTambahUser.ShowDialog();
 }