private void FCuaHang_FormClosing(object sender, FormClosingEventArgs e) { FMain f = new FMain(); f.Show(); e.Cancel = false; }
private void btDangNhap_Click(object sender, EventArgs e) { DAO_DangNhap dao = new DAO_DangNhap(); DTO_NhanVien dto = new DTO_NhanVien(); dto.Tentaikhoan = tbTenDangNhap.Text; dto.Matkhau = tbMatKhau.Text; var res = dao.DangNhap(dto); if (res == 1) { FMain f = new FMain(); f.Show(); this.Hide(); } else if (res == -1) { MessageBox.Show("Sai Mat Khau"); } else if (res == 0) { MessageBox.Show("Khong tim thay ten tai khoan"); } }
private void FSanPham_FormClosing(object sender, FormClosingEventArgs e) { FMain f = new FMain(); f.Show(); }
private void FNhaCungCap_FormClosing(object sender, FormClosingEventArgs e) { FMain f = new FMain(); f.Show(); }