Example #1
0
        private void change_password_acc_Load(object sender, EventArgs e)
        {
            account acc = this.Owner as account;

            if (acc != null)
            {
                string_user_login = acc.textBox_login.Text.ToString();
            }
            else
            {
                MessageBox.Show("Неизвестная ошибка #2", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #2
0
        private void btnDangNhap_Click(object sender, EventArgs e)
        {
            account ac = new account("CB001", "CB001");

            if (text_taikhoan.Text.Trim().Equals(ac.Username) && text_matkhau.Text.Trim().Equals(ac.Password))
            {
                giaodienchinh frm = new giaodienchinh();
                frm.Show();
                this.Close();
                thr = new Thread(mo_giaodienchinh);
                thr.SetApartmentState(ApartmentState.STA);
                thr.Start();
            }
            else
            {
                MessageBox.Show("Tên đăng nhập hay Mật khẩu đã sai!", "thong bao", MessageBoxButtons.OK);
            }
        }
 private void ButtonMyAccount_Click(object sender, EventArgs e)
 {
     //START SHOW ACCOUNT FORM
     account account = new account();
     account.Show();
     this.Hide();
     //END SHOW ACCOUNT FORM
 }
Example #4
0
 // информация об аккаунте пользователя
 private void OnClick(object sender, EventArgs e)
 {
     account acc = new account();
     acc.Owner = this;
     acc.Show();
 }