Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DeviceControlItem = ((Analyzer.DeviceControl)(target));
                return;

            case 2:
                this.grpDevice = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 3:
                this.lblDetails = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.tbtnPower = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 32 "..\..\DeviceControl.xaml"
                this.tbtnPower.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_Checked);

            #line default
            #line hidden

            #line 32 "..\..\DeviceControl.xaml"
                this.tbtnPower.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleButton_Checked);

            #line default
            #line hidden
                return;

            case 5:
                this.sld = ((System.Windows.Controls.Slider)(target));

            #line 42 "..\..\DeviceControl.xaml"
                this.sld.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.DeviceSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.lblText = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lblBrit = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.ckbEnable = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 46 "..\..\DeviceControl.xaml"
                this.ckbEnable.Checked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.CkbEnable_Changed);

            #line default
            #line hidden

            #line 46 "..\..\DeviceControl.xaml"
                this.ckbEnable.Unchecked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.CkbEnable_Changed);

            #line default
            #line hidden
                return;

            case 9:
                this.ddbSettings = ((MahApps.Metro.Controls.DropDownButton)(target));
                return;

            case 10:
                this.ckbSmoothing = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 52 "..\..\DeviceControl.xaml"
                this.ckbSmoothing.Checked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.CkbSmoothing_Changed);

            #line default
            #line hidden

            #line 52 "..\..\DeviceControl.xaml"
                this.ckbSmoothing.Unchecked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.CkbSmoothing_Changed);

            #line default
            #line hidden
                return;

            case 11:
                this.lblSpeed = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.sldSpeed = ((System.Windows.Controls.Slider)(target));

            #line 59 "..\..\DeviceControl.xaml"
                this.sldSpeed.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.sldSpeed_ValueChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.btnReboot = ((System.Windows.Controls.Button)(target));

            #line 61 "..\..\DeviceControl.xaml"
                this.btnReboot.Click += new System.Windows.RoutedEventHandler(this.btnReboot_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.btnAlexa = ((System.Windows.Controls.Button)(target));

            #line 62 "..\..\DeviceControl.xaml"
                this.btnAlexa.Click += new System.Windows.RoutedEventHandler(this.btnAlexa_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.btnOTA = ((System.Windows.Controls.Button)(target));

            #line 63 "..\..\DeviceControl.xaml"
                this.btnOTA.Click += new System.Windows.RoutedEventHandler(this.btnOTA_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.btnWeb = ((System.Windows.Controls.Button)(target));

            #line 67 "..\..\DeviceControl.xaml"
                this.btnWeb.Click += new System.Windows.RoutedEventHandler(this.BtnWeb_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.btnEdit = ((System.Windows.Controls.Button)(target));

            #line 68 "..\..\DeviceControl.xaml"
                this.btnEdit.Click += new System.Windows.RoutedEventHandler(this.BtnEdit_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.ddbVisualizers = ((MahApps.Metro.Controls.DropDownButton)(target));

            #line 76 "..\..\DeviceControl.xaml"
                this.ddbVisualizers.Click += new System.Windows.RoutedEventHandler(this.ddb_ContextMenuOpening);

            #line default
            #line hidden
                return;

            case 20:
                this.ddbPatterns = ((MahApps.Metro.Controls.DropDownButton)(target));

            #line 83 "..\..\DeviceControl.xaml"
                this.ddbPatterns.Click += new System.Windows.RoutedEventHandler(this.ddb_ContextMenuOpening);

            #line default
            #line hidden
                return;

            case 22:
                this.ddbTwinkles = ((MahApps.Metro.Controls.DropDownButton)(target));

            #line 90 "..\..\DeviceControl.xaml"
                this.ddbTwinkles.Click += new System.Windows.RoutedEventHandler(this.ddb_ContextMenuOpening);

            #line default
            #line hidden
                return;

            case 24:
                this.spcDev = ((Analyzer.Spectrum)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private static void OnObjectChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DeviceControl devC = d as DeviceControl;

            devC.RefAll();
        }