private void EditEvent_Load(object sender, EventArgs e) { lblEventID.Text += ev.ID.ToString(); txtTittle.Text = ev.Title; numericSales.Value = (decimal)ev.Sales; txtImagePath.Text = ev.ImagePath; txtDescription.Text = ev.Description; dtStartDate.Value = ev.StartDate; dtEndDate.Value = ev.EndDate; var eventtypes = new EventTypeBLL().RetrieveALL(); foreach (EventType et in eventtypes) { cbType.Items.Add(et); } cbType.Text = ev.EventType.Type; cbType.SelectedItem = ev.EventType; var movies = new MovieBLL().RetrieveALL(); foreach (Movie m in movies) { cbMovies.Items.Add(m); } cbMovies.Text = ev.Movie.Title; cbMovies.SelectedItem = ev.Movie; }
private void AddNewEvent_Load(object sender, EventArgs e) { var EventTypes = new EventTypeBLL().RetrieveALL(); foreach (var et in EventTypes) { cbType.Items.Add(et); } var Movies = new MovieBLL().RetrieveALL(); foreach (var item in Movies) { cbMovies.Items.Add(item); } }
private void Info_Load(object sender, EventArgs e) { if (RecordType == Record.Booking) { var obj = new BookingBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.CashPaymentDetails) { var obj = new CashPaymentDetailsBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Category) { var obj = new CategoryBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Chair) { var obj = new ChairBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.ChairClass) { var obj = new ChairClassBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Cinema) { var obj = new CinemaBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Client) { var obj = new ClientBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.ClientPremiumDetails) { var obj = new ClientPremiumDetailsBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Event) { var obj = new EventBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.EventDetails) { var obj = new EventDetailsBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.EventType) { var obj = new EventTypeBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Genre) { var obj = new GenderBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Hall) { var obj = new HallBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Movie) { var obj = new MovieBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Payment) { var obj = new PaymentBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Role) { var obj = new RoleBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Schedule) { var obj = new ScheduleBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Technology) { var obj = new TechnologyBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.Ticket) { var obj = new TicketBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.User) { var obj = new UserBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } else if (RecordType == Record.User_Roles) { var obj = new UserBLL().Retrieve(RecordID); InitData(obj.BaseAuditObject); } }