Ejemplo n.º 1
0
 public ChangeBookingWindow(HandleBookingWindow _parent)
 {
     InitializeComponent();
     Title        = "New Booking - " + Authenticator.GetUserInfo();
     parentWindow = _parent;
     newbooking   = true;
 }
Ejemplo n.º 2
0
        public ChangeBookingWindow(HandleBookingWindow _parent, BookingObject _oldObject)
        {
            InitializeComponent();
            Title              = "Edit Booking - " + Authenticator.GetUserInfo();
            oldObject          = _oldObject;
            tb_busride_id.Text = oldObject.busride_id.ToString();
            tb_traveller.Text  = oldObject.traveller;
            tb_seats.Text      = oldObject.seats.ToString();


            parentWindow = _parent;
            newbooking   = false;
        }