///<summary>Creates tables that should only be loaded at design-time.</summary> ///<remarks>At runtime, these tables are loaded when needed. However, I still want them in the designer.</remarks> static void AddDesignTimeTables(DataContext context) { context.Tables.AddTable(SeatingReservation.CreateTable()); context.Tables.AddTable(MelaveMalkaInfo.CreateTable()); context.Tables.AddTable(MelaveMalkaInvitation.CreateTable()); context.Tables.AddTable(MelaveMalkaSeat.CreateTable()); context.Tables.AddTable(Caller.CreateTable()); context.Tables.AddTable(AdReminderEmail.CreateTable()); context.Tables.AddTable(RaffleTicket.CreateTable()); }
public SeatingReservationPopup(SeatingReservation row) { InitializeComponent(); Text = "Seating Reservation Editor - " + row.Person.FullName; this.row = row; editor.EditRow(row); ClientSize = editor.Size; Program.Table <SeatingReservation>().RowRemoved += SeatingReservations_RowRemoved; }
public SeatingReservationDeleter(SeatingReservation row) { InitializeComponent(); seat = row; message.Text = String.Format(CultureInfo.CurrentCulture, "Are you sure you want to delete this {0:c} reservation for {1} for {2}?", seat.Pledge.Amount, seat.TotalSeats == 1 ? "one seat" : seat.TotalSeats + " seats", seat.Person.VeryFullName); }
public EventViewModelItem() { Seating = new SeatingReservation(); }
public EventItem() { Seating = new SeatingReservation(); }
static string SeatCount(SeatingReservation row) { var count = row.MensSeats + row.BoysSeats; return(count + " Seat" + (count == 1 ? "" : "s")); }
public void EditRow(SeatingReservation row) { pledgesBindingSource.Position = pledgesBindingSource.IndexOf(row.Pledge); seatingReservationsBindingSource.Position = seatingReservationsBindingSource.IndexOf(row); oldCalculatedPrice = CalculatePrice(); }