Exemplo n.º 1
0
                public void PropertyChanged_ViewModel(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    MyOrdersPage_obj1_Bindings bindings = TryGetBindingObject();

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

                            default:
                                break;
                            }
                        }
                        bindings.CompleteUpdate(DATA_CHANGED);
                    }
                }
Exemplo n.º 2
0
                public void DependencyPropertyChanged_OrdersOverViewListView_SelectedItem(global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop)
                {
                    MyOrdersPage_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        global::Windows.UI.Xaml.Controls.ListView obj = sender as global::Windows.UI.Xaml.Controls.ListView;
                        if (obj != null)
                        {
                            bindings.Update_OrdersOverViewListView_SelectedItem(obj.SelectedItem, DATA_CHANGED);
                        }
                        bindings.CompleteUpdate(DATA_CHANGED);
                    }
                }