Пример #1
0
                public void PropertyChanged_ViewModel_SelectedConversation(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    ConversationDetailView_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::FlightAppEliasGryp.ViewModels.ConversationViewModel obj = sender as global::FlightAppEliasGryp.ViewModels.ConversationViewModel;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_ViewModel_SelectedConversation_Conversation(obj.Conversation, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "Conversation":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_ViewModel_SelectedConversation_Conversation(obj.Conversation, DATA_CHANGED);
                                }
                                break;
                            }

                            default:
                                break;
                            }
                        }
                        bindings.CompleteUpdate(DATA_CHANGED);
                    }
                }
Пример #2
0
 public bool SetDataRoot(global::System.Object newDataRoot)
 {
     if (newDataRoot != null)
     {
         this.dataRoot = (global::FlightAppEliasGryp.ViewModels.ConversationViewModel)newDataRoot;
         return(true);
     }
     return(false);
 }
Пример #3
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::FlightAppEliasGryp.ViewModels.ConversationViewModel obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_Conversation(obj.Conversation, phase);
         }
     }
     this.CompleteUpdate(phase);
 }
Пример #4
0
 private void Update_ViewModel_SelectedConversation(global::FlightAppEliasGryp.ViewModels.ConversationViewModel obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_ViewModel_SelectedConversation(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_ViewModel_SelectedConversation_Conversation(obj.Conversation, phase);
         }
     }
 }
Пример #5
0
 public void UpdateChildListeners_ViewModel_SelectedConversation(global::FlightAppEliasGryp.ViewModels.ConversationViewModel obj)
 {
     if (obj != cache_ViewModel_SelectedConversation)
     {
         if (cache_ViewModel_SelectedConversation != null)
         {
             ((global::System.ComponentModel.INotifyPropertyChanged)cache_ViewModel_SelectedConversation).PropertyChanged -= PropertyChanged_ViewModel_SelectedConversation;
             cache_ViewModel_SelectedConversation = null;
         }
         if (obj != null)
         {
             cache_ViewModel_SelectedConversation = obj;
             ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_ViewModel_SelectedConversation;
         }
     }
 }