private void LoadbtnClicked(object sender, EventArgs e) { SeatRepository SeatRepo = new SeatRepository(); List <Seat> sList = SeatRepo.GetAllSeats(); this.SeatDeleteGridView.DataSource = sList; }
public TicketPrice(string i, string n) { InitializeComponent(); id = i; name = n; SeatRepository SeatRepo = new SeatRepository(); List <Seat> sList = SeatRepo.GetAllSeats(); this.PricedataGridView.DataSource = sList; }
private void LoadbtnClicked(object sender, EventArgs e) { TrainRepository TrainRepo = new TrainRepository(); List <Train> tList = TrainRepo.GetAllTrains(); this.TrainGridView.DataSource = tList; PassengerRepository PassRepo = new PassengerRepository(); List <RPassenger> pList = PassRepo.GetAllPassengers(); this.PassengerGridView2.DataSource = pList; SeatRepository SeatRepo = new SeatRepository(); List <Seat> sList = SeatRepo.GetAllSeats(); this.SeatGridView3.DataSource = sList; }
public Ticket_Sell(string i, string n) { InitializeComponent(); id = i; name = n; TrainRepository TrainRepo = new TrainRepository(); List <Train> tList = TrainRepo.GetAllTrains(); this.TrainGridView.DataSource = tList; PassengerRepository PassRepo = new PassengerRepository(); List <RPassenger> pList = PassRepo.GetAllPassengers(); this.PassengerGridView2.DataSource = pList; SeatRepository SeatRepo = new SeatRepository(); List <Seat> sList = SeatRepo.GetAllSeats(); this.SeatGridView3.DataSource = sList; }
public async Task <List <Seats> > GetAllSeats() { return(await _repository.GetAllSeats()); }