private int CountSoGheDaDat(Phim t, SuatChieu s) { int tt = 0; foreach (HoaDon i in listHoaDon) { if (i.MaPhim == t.MaPhim && s.MaSuatChieu == i.MaSuatChieu) { tt += i.MaGhe.Count; } } return(tt); }
public bool CheckSameSC(Phim t, SuatChieu s) { foreach (Phim i in listPhim) { foreach (SuatChieu j in i.ListSC) { if (s.MaPhong == j.MaPhong && CheckSameSC(s, t.ThoiLuong, j, i.ThoiLuong)) { return(true); } } } return(false); }
public List <Ghe> GetListGheFollowSC(Phim t, SuatChieu s) { List <Ghe> lg = FindPhong(s.MaPhong).ListGhe; List <string> lg_rved = new List <string>(); foreach (HoaDon i in ListHoaDon) { if (i.MaPhim == t.MaPhim && i.MaSuatChieu == s.MaSuatChieu) { foreach (string j in i.MaGhe) { SetTTDaDatForGhe(lg, j); } } } return(lg); }