示例#1
0
 public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
 {
     global::WordsTeacher.UwpClient.Models.WordCard data = args.NewValue as global::WordsTeacher.UwpClient.Models.WordCard;
     if (args.NewValue != null && data == null)
     {
         throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::WordsTeacher.UwpClient.Models.WordCard was expected.");
     }
     this.SetDataRoot(data);
     this.Update();
 }
示例#2
0
 private void Update_VM_CurrentWord(global::WordsTeacher.UwpClient.Models.WordCard obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_VM_CurrentWord_Word(obj.Word, phase);
         }
     }
 }
示例#3
0
 private void Update_VM(global::WordsTeacher.UwpClient.Models.WordCard obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_VM_Word(obj.Word, phase);
             this.Update_VM_Translation(obj.Translation, phase);
             this.Update_VM_Score(obj.Score, phase);
         }
     }
 }
示例#4
0
            // WordCardItems_obj2_Bindings

            public void SetDataRoot(global::WordsTeacher.UwpClient.Models.WordCard newDataRoot)
            {
                this.dataRoot = newDataRoot;
            }