コード例 #1
0
 private void SingUpForm_Load(object sender, EventArgs e)
 {
     try
     {
         cmbGender.SelectedIndex         = 0;
         cmbSecretQuestion.DataSource    = _secretQuestionBLL.GetAll();
         cmbSecretQuestion.DisplayMember = "Question";
         cmbSecretQuestion.ValueMember   = "Id";
         dtpDateOfBirth.MaxDate          = DateTime.Now;
     }
     catch (Exception)
     {
         MessageBox.Show("Ters giden birşeyler var..");
     }
 }
コード例 #2
0
        private void UserInformation_Load(object sender, EventArgs e)
        {
            _user                   = _userBLL.Get(Form1._userID);
            txtTC.Text              = _user.TC;
            txtPassword.Text        = _user.Password;
            txtName.Text            = _user.FirstName;
            txtLastName.Text        = _user.LastName;
            cmbGender.SelectedIndex = _user.Gender == true ? 0 : 1;
            dtpDateOfBirth.Value    = _user.DateOfBirth;
            txtPlaceOfBirth.Text    = _user.PlaceOfBirth;
            txtFatherName.Text      = _user.FatherName;
            txtMotherName.Text      = _user.MotherName;
            txtPhone.Text           = _user.Phone;
            txtEposta.Text          = _user.Email;

            cmbSecretQuestion.DataSource    = _secretQuestionBLL.GetAll();
            cmbSecretQuestion.DisplayMember = "Question";
            cmbSecretQuestion.ValueMember   = "Id";
            dtpDateOfBirth.MaxDate          = DateTime.Now;


            txtSecretAnswer.Text = _user.SecretAnswer;
        }