private void button1_Click(object sender, EventArgs e) { MHTimSP mhtimSP = new MHTimSP(); this.Hide(); mhtimSP.ShowDialog(); }
private void btnThemSP_Click(object sender, EventArgs e) { this.Hide(); MHTimSP mhtimsp = new MHTimSP(); mhtimsp.ShowDialog(); }
private void btn_TiepTucMua_Click_1(object sender, EventArgs e) { MHTimSP mhtsp = new MHTimSP(); this.Hide(); mhtsp.Show(); }
// coding private void btnDangNhap_Click(object sender, EventArgs e) { if ((txbTaiKhoan.Text != String.Empty) && (txbMatKhau.Text != String.Empty)) { KhachHang kh = new KhachHang(int.Parse(txbTaiKhoan.Text), null, null, txbMatKhau.Text, null); if (KhachHangBUS.Instance.KiemTraTonTai(int.Parse(txbTaiKhoan.Text), txbMatKhau.Text) == false) { pTaiKhoan = txbTaiKhoan.Text; MHTimSP mhtimSP = new MHTimSP(); this.Hide(); mhtimSP.ShowDialog(); } else { MessageBox.Show("Tài khoản hoặc mật khẩu không đúng!"); } } else { MessageBox.Show("Chưa nhập đầy đủ!"); } }