示例#1
0
 public HandleMyBookingsWindow(TravellerWindow _parent)
 {
     InitializeComponent();
     parentWindow  = _parent;
     bookingObject = new List <MyBookingObject>();
     this.Title    = "Handle Bookings - Welcome " + Authenticator.GetUserInfo() + ".";
     UpdateBookings();
 }
示例#2
0
        public ChangeTravellerBookingWindow(TravellerWindow _parent, BusrideObject _oldObject)
        {
            InitializeComponent();
            Title               = "New Booking - " + Authenticator.GetUserInfo();
            oldObject           = _oldObject;
            l_departure.Content = "Departure: " + Environment.NewLine + oldObject.departure_date.ToString("dd-MMM-yyyy HH:mm:ss") + Environment.NewLine + oldObject.departure_address + Environment.NewLine + oldObject.departure_city + Environment.NewLine + oldObject.departure_country;
            l_arrival.Content   = "Arrival: " + Environment.NewLine + oldObject.arrival_date.ToString("dd-MMM-yyyy HH:mm:ss") + Environment.NewLine + oldObject.arrival_address + Environment.NewLine + oldObject.arrival_city + Environment.NewLine + oldObject.arrival_country;
            tb_seats.Text       = "";


            parentWindow = _parent;
        }
示例#3
0
 public ChangeMyInformationWindow(TravellerWindow _parent, TravellerObject _oldObject)
 {
     InitializeComponent();
     Title                        = "Change My Information - " + Authenticator.GetUserInfo();
     oldObject                    = _oldObject;
     tb_email.Text                = oldObject.email;
     pb_password.Password         = "";
     pb_confirm_password.Password = "";
     tb_name.Text                 = oldObject.name;
     tb_address.Text              = oldObject.address;
     tb_phone.Text                = oldObject.phone;
     parentWindow                 = _parent;
 }