예제 #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;
            }
        }
예제 #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     ComboHelper.FillUserTypes(cmbSelectUserType);
 }
예제 #3
0
 private void frmAddUsers_Load(object sender, EventArgs e)
 {
     ComboHelper.FillUserTypes(cmbSelectUserType);
     cmbSelectUserType.Focus();
     return;
 }