Ejemplo n.º 1
0
            // IComponentConnector

            public void Connect(int connectionId, global::System.Object target)
            {
                switch (connectionId)
                {
                case 2:     // MainWindow.xaml line 54
                    this.obj2 = target.As <Microsoft.UI.Xaml.Controls.Grid>();
                    break;

                case 3:     // MainWindow.xaml line 66
                    this.obj3 = target.As <Microsoft.UI.Xaml.Controls.TextBox>();
                    this.bindingsTracking.RegisterTwoWayListener_3(this.obj3);
                    break;

                case 4:     // MainWindow.xaml line 71
                    this.obj4 = target.As <Microsoft.UI.Xaml.Controls.DatePicker>();
                    this.bindingsTracking.RegisterTwoWayListener_4(this.obj4);
                    break;

                case 5:     // MainWindow.xaml line 77
                    this.obj5 = target.As <Microsoft.UI.Xaml.Controls.ComboBox>();
                    this.bindingsTracking.RegisterTwoWayListener_5(this.obj5);
                    break;

                case 6:     // MainWindow.xaml line 87
                    this.obj6 = target.As <Microsoft.UI.Xaml.Controls.CheckBox>();
                    this.bindingsTracking.RegisterTwoWayListener_6(this.obj6);
                    break;

                case 7:     // MainWindow.xaml line 93
                    this.obj7      = target.As <Microsoft.UI.Xaml.Controls.Button>();
                    this.obj7Click = (global::System.Object p0, global::Microsoft.UI.Xaml.RoutedEventArgs p1) =>
                    {
                        this.dataRoot.viewModel.SelectedEmployee.Save();
                    };
                    (target.As <Microsoft.UI.Xaml.Controls.Button>()).Click += obj7Click;
                    break;

                case 8:     // MainWindow.xaml line 45
                    this.obj8      = target.As <Microsoft.UI.Xaml.Controls.Button>();
                    this.obj8Click = (global::System.Object p0, global::Microsoft.UI.Xaml.RoutedEventArgs p1) =>
                    {
                        this.dataRoot.viewModel.Load();
                    };
                    (target.As <Microsoft.UI.Xaml.Controls.Button>()).Click += obj8Click;
                    break;

                case 9:     // MainWindow.xaml line 47
                    this.obj9 = target.As <Microsoft.UI.Xaml.Controls.ListView>();
                    this.bindingsTracking.RegisterTwoWayListener_9(this.obj9);
                    break;

                default:
                    break;
                }
            }
Ejemplo n.º 2
0
 public void RegisterTwoWayListener_5(global::Microsoft.UI.Xaml.Controls.ComboBox sourceObject)
 {
     sourceObject.RegisterPropertyChangedCallback(global::Microsoft.UI.Xaml.Controls.Primitives.Selector.SelectedValueProperty, (sender, prop) =>
     {
         var bindingObj = this.TryGetBindingObject();
         if (bindingObj != null)
         {
             bindingObj.UpdateTwoWay_5_SelectedValue();
         }
     });
 }