Ejemplo n.º 1
0
 ///<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());
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 public EventViewModelItem()
 {
     Seating = new SeatingReservation();
 }
Ejemplo n.º 5
0
 public EventItem()
 {
     Seating = new SeatingReservation();
 }
Ejemplo n.º 6
0
        static string SeatCount(SeatingReservation row)
        {
            var count = row.MensSeats + row.BoysSeats;

            return(count + " Seat" + (count == 1 ? "" : "s"));
        }
Ejemplo n.º 7
0
 public void EditRow(SeatingReservation row)
 {
     pledgesBindingSource.Position             = pledgesBindingSource.IndexOf(row.Pledge);
     seatingReservationsBindingSource.Position = seatingReservationsBindingSource.IndexOf(row);
     oldCalculatedPrice = CalculatePrice();
 }