Exemplo n.º 1
0
        private void frmUpdateUser_Load(object sender, EventArgs e)
        {
            ComboHelper.FillUserTypes(cmbSelectUserType);
            cmbSelectUserType.Focus();

            if (CurrentUser.UserID > 0)
            {
                cmbSelectUserType.SelectedValue = CurrentUser.UserType_ID;
                txtFullName.Text  = CurrentUser.FullName;
                txtContactNo.Text = CurrentUser.ContactNo;
                txtEmail.Text     = CurrentUser.Email;
                txtUsername.Text  = CurrentUser.UserName;
            }
        }
Exemplo n.º 2
0
 private void button3_Click(object sender, EventArgs e)
 {
     ComboHelper.FillUserTypes(cmbSelectUserType);
 }
Exemplo n.º 3
0
 private void frmAddUsers_Load(object sender, EventArgs e)
 {
     ComboHelper.FillUserTypes(cmbSelectUserType);
     cmbSelectUserType.Focus();
     return;
 }