private void bunifuFlatButton5_Click(object sender, EventArgs e) { this.Hide(); BaoCao bc = new BaoCao(username); bc.Show(); }
private void bunifuThinButton21_Click_1(object sender, EventArgs e) { var user = bunifuMetroTextbox1.Text; var pas = bunifuMetroTextbox2.Text; QuanTriBUS tmp = new QuanTriBUS(); int check = tmp.CheckSignIn(user, pas); if (check == 1) { this.Hide(); Home Menu = new Home(); Menu.Show(); } else if (check == 2) { this.Hide(); Dashboard Menu = new Dashboard(user); QuanLyNhanVien qlnv = new QuanLyNhanVien(user); QuanLyPhong qlp = new QuanLyPhong(user); BaoCao bc = new BaoCao(user); Menu.Show(); } }