Beispiel #1
0
 public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
 {
     global::FlightTicketDemo.FlightDetails data = args.NewValue as global::FlightTicketDemo.FlightDetails;
     if (args.NewValue != null && data == null)
     {
         throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::FlightTicketDemo.FlightDetails was expected.");
     }
     this.SetDataRoot(data);
     this.Update();
 }
Beispiel #2
0
 private void Update_flightDetails(global::FlightTicketDemo.FlightDetails obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_flightDetails_flight(obj.flight, phase);
             this.Update_flightDetails_price(obj.price, phase);
             this.Update_flightDetails_flight_depature_time(obj.flight_depature_time, phase);
         }
     }
 }
Beispiel #3
0
            // MainPage_obj18_Bindings

            public void SetDataRoot(global::FlightTicketDemo.FlightDetails newDataRoot)
            {
                this.dataRoot = newDataRoot;
            }