예제 #1
0
 public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
 {
     global::UWPDiplomaOptions.Models.YearTerm data = args.NewValue as global::UWPDiplomaOptions.Models.YearTerm;
     if (args.NewValue != null && data == null)
     {
         throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::UWPDiplomaOptions.Models.YearTerm was expected.");
     }
     this.SetDataRoot(data);
     this.Update();
 }
예제 #2
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::UWPDiplomaOptions.Models.YearTerm obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_YearTermId(obj.YearTermId, phase);
             this.Update_Year(obj.Year, phase);
             this.Update_Term(obj.Term, phase);
             this.Update_IsDefault(obj.IsDefault, phase);
             this.Update_Description(obj.Description, phase);
         }
     }
 }
예제 #3
0
            // ManageYearTermPage_obj14_Bindings

            public void SetDataRoot(global::UWPDiplomaOptions.Models.YearTerm newDataRoot)
            {
                this.dataRoot = newDataRoot;
            }
            // ManageYearTermPage_obj3_Bindings

            public void SetDataRoot(global::UWPDiplomaOptions.Models.YearTerm newDataRoot)
            {
                this.dataRoot = newDataRoot;
            }