public void CollectionChanged_HomeViewModel_Journals(object sender, global::System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { HomeView_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { global::System.Collections.ObjectModel.ObservableCollection <global::Common.Models.JournalModel> obj = sender as global::System.Collections.ObjectModel.ObservableCollection <global::Common.Models.JournalModel>; } }
public HomeView_obj1_Bindings TryGetBindingObject() { HomeView_obj1_Bindings bindingObject = null; if (weakRefToBindingObj != null) { weakRefToBindingObj.TryGetTarget(out bindingObject); if (bindingObject == null) { weakRefToBindingObj = null; ReleaseAllListeners(); } } return(bindingObject); }
public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target) { global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null; switch (connectionId) { case 1: // Views\HomeView.xaml line 1 { global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target; HomeView_obj1_Bindings bindings = new HomeView_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element1, bindings); } break; } return(returnValue); }
public void PropertyChanged_HomeViewModel_Journals(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { HomeView_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::System.Collections.ObjectModel.ObservableCollection <global::Common.Models.JournalModel> obj = sender as global::System.Collections.ObjectModel.ObservableCollection <global::Common.Models.JournalModel>; if (global::System.String.IsNullOrEmpty(propName)) { } else { switch (propName) { default: break; } } } }
public void PropertyChanged_HomeViewModel(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { HomeView_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::Client.ViewModels.HomeViewModel obj = sender as global::Client.ViewModels.HomeViewModel; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_HomeViewModel_IsRemoveEnabled(obj.IsRemoveEnabled, DATA_CHANGED); bindings.Update_HomeViewModel_IsBuyable(obj.IsBuyable, DATA_CHANGED); bindings.Update_HomeViewModel_TotalePrice(obj.TotalePrice, DATA_CHANGED); bindings.Update_HomeViewModel_BookName(obj.BookName, DATA_CHANGED); bindings.Update_HomeViewModel_BuyierName(obj.BuyierName, DATA_CHANGED); bindings.Update_HomeViewModel_Message(obj.Message, DATA_CHANGED); bindings.Update_HomeViewModel_UserEmail(obj.UserEmail, DATA_CHANGED); bindings.Update_HomeViewModel_Journals(obj.Journals, DATA_CHANGED); bindings.Update_HomeViewModel_Journal(obj.Journal, DATA_CHANGED); bindings.Update_HomeViewModel_Book(obj.Book, DATA_CHANGED); } } else { switch (propName) { case "IsRemoveEnabled": { if (obj != null) { bindings.Update_HomeViewModel_IsRemoveEnabled(obj.IsRemoveEnabled, DATA_CHANGED); } break; } case "IsBuyable": { if (obj != null) { bindings.Update_HomeViewModel_IsBuyable(obj.IsBuyable, DATA_CHANGED); } break; } case "TotalePrice": { if (obj != null) { bindings.Update_HomeViewModel_TotalePrice(obj.TotalePrice, DATA_CHANGED); } break; } case "BookName": { if (obj != null) { bindings.Update_HomeViewModel_BookName(obj.BookName, DATA_CHANGED); } break; } case "BuyierName": { if (obj != null) { bindings.Update_HomeViewModel_BuyierName(obj.BuyierName, DATA_CHANGED); } break; } case "Message": { if (obj != null) { bindings.Update_HomeViewModel_Message(obj.Message, DATA_CHANGED); } break; } case "UserEmail": { if (obj != null) { bindings.Update_HomeViewModel_UserEmail(obj.UserEmail, DATA_CHANGED); } break; } case "Journals": { if (obj != null) { bindings.Update_HomeViewModel_Journals(obj.Journals, DATA_CHANGED); } break; } case "Journal": { if (obj != null) { bindings.Update_HomeViewModel_Journal(obj.Journal, DATA_CHANGED); } break; } case "Book": { if (obj != null) { bindings.Update_HomeViewModel_Book(obj.Book, DATA_CHANGED); } break; } default: break; } } } }
public HomeView_obj1_BindingsTracking(HomeView_obj1_Bindings obj) { weakRefToBindingObj = new global::System.WeakReference <HomeView_obj1_Bindings>(obj); }