Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SpectrumVisualizer = ((Analyzer.Spectrum)(target));
                return;

            case 2:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.icProgressBars = ((System.Windows.Controls.ItemsControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindow_Window = ((Analyzer.MainWindow)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.MainWindow_Window.Closed += new System.EventHandler(this.MetroWindow_Closed);

            #line default
            #line hidden

            #line 12 "..\..\MainWindow.xaml"
                this.MainWindow_Window.SizeChanged += new System.Windows.SizeChangedEventHandler(this.MainWindow_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.sldSourceScale = ((System.Windows.Controls.Slider)(target));

            #line 30 "..\..\MainWindow.xaml"
                this.sldSourceScale.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.sldSourceScale_ValueChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.cboDevices = ((System.Windows.Controls.ComboBox)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.cboDevices.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboDevices_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.spcSource = ((Analyzer.Spectrum)(target));
                return;

            case 6:
                this.btnNewDevice = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.btnNewDevice.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnRefresh = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.btnRefresh.Click += new System.Windows.RoutedEventHandler(this.BtnRefresh_Click_1);

            #line default
            #line hidden
                return;

            case 8:
                this.btnSettings = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.btnSettings.Click += new System.Windows.RoutedEventHandler(this.BtnSettings_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btnNetworkscanner = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.btnNetworkscanner.Click += new System.Windows.RoutedEventHandler(this.BtnNetworkscanner_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.grpMaster = ((System.Windows.Controls.GroupBox)(target));
                return;

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

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

            #line 47 "..\..\MainWindow.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 49 "..\..\MainWindow.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 50 "..\..\MainWindow.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 51 "..\..\MainWindow.xaml"
                this.btnOTA.Click += new System.Windows.RoutedEventHandler(this.btnOTA_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.grpDevices = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 17:
                this.icDevices = ((System.Windows.Controls.ItemsControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #3
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;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindow_Window = ((Analyzer.MainWindow)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.MainWindow_Window.Closed += new System.EventHandler(this.MetroWindow_Closed);

            #line default
            #line hidden

            #line 12 "..\..\MainWindow.xaml"
                this.MainWindow_Window.SizeChanged += new System.Windows.SizeChangedEventHandler(this.MainWindow_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.cboDevices = ((System.Windows.Controls.ComboBox)(target));

            #line 28 "..\..\MainWindow.xaml"
                this.cboDevices.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboDevices_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 4:
                this.spcSource = ((Analyzer.Spectrum)(target));
                return;

            case 5:
                this.btnNewDevice = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.btnNewDevice.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btnRefresh = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.btnRefresh.Click += new System.Windows.RoutedEventHandler(this.BtnRefresh_Click_1);

            #line default
            #line hidden
                return;

            case 7:
                this.btnSettings = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\MainWindow.xaml"
                this.btnSettings.Click += new System.Windows.RoutedEventHandler(this.BtnSettings_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnNetworkscanner = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.btnNetworkscanner.Click += new System.Windows.RoutedEventHandler(this.BtnNetworkscanner_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.grpDevices = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 10:
                this.icDevices = ((System.Windows.Controls.ItemsControl)(target));
                return;
            }
            this._contentLoaded = true;
        }