public EditDataPage(TicketDetails ticketDetails, TicketDetailList detailList) { InitializeComponent(); Details = ticketDetails; DataContext = Details; DetailList = new TicketDetailList(); DetailList = detailList; }
// constructor with TicketDetailList to handle the drid item source, // writing & reading XML files and ObservableCollection public DisplayDataGrid(TicketDetailList detailList) { InitializeComponent(); TicketData = new TicketDetails(); DetailList = new TicketDetailList(); DetailList = detailList; TicketDetailCollection = PopulateCollection(DetailList); dgShowDetails.ItemsSource = TicketDetailCollection.OrderBy(t => t.ShowDate); GenerateXMLData(DetailList); }
public ShowEntry() { InitializeComponent(); DetailList = new TicketDetailList(); TicketDetailCollection = new ObservableCollection <TicketDetails>(); TicketData = new TicketDetails(); comboBoxShowDay.ItemsSource = GetDays(); Group group = GenreMovieSelction(); comboBoxGenre.DataContext = group; comboBoxMovie.DataContext = group; txtBoxNumberOfSeat.DataContext = this; txtBoxName.DataContext = this; }
public Ticket(string bookinId, string genre, string movie, string showTime, string showDate, int numberOfSeat, string seatClass, string name, string city, int price) { TDetails = new TicketDetails { BookingID = bookinId, Genre = genre, Movie = movie, ShowTime = showTime, ShowDate = showDate, NumberOfSeat = numberOfSeat, SeatClass = seatClass, Name = name, City = city, Servcie = ProvidedService(), Price = price }; }
public ShowEntry(TicketDetailList detailList) { InitializeComponent(); DetailList = new TicketDetailList(); TicketDetailCollection = new ObservableCollection <TicketDetails>(); DetailList = detailList; for (int i = 0; i < DetailList.Count(); ++i) { var tDetails = DetailList[i]; TicketDetailCollection.Add(tDetails); } TicketData = new TicketDetails(); comboBoxShowDay.ItemsSource = GetDays(); Group group = GenreMovieSelction(); comboBoxGenre.DataContext = group; comboBoxMovie.DataContext = group; txtBoxNumberOfSeat.DataContext = this; txtBoxName.DataContext = this; }
public Ticket() { TDetails = new TicketDetails(); }
public void CreateTicket(TicketDetails ticketDetails) { TicketList.Add(ticketDetails); }