예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.main = ((AudioSpectrum.MainWindow)(target));
                return;

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

            case 3:
                this.BtnEnable = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.BtnEnable.Click += new System.Windows.RoutedEventHandler(this.BtnEnable_Click);

            #line default
            #line hidden
                return;

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

            case 5:
                this.PbL = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 6:
                this.PbR = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 7:
                this.Comports = ((System.Windows.Controls.ComboBox)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.Comports.DropDownOpened += new System.EventHandler(this.Comports_DropDownOpened);

            #line default
            #line hidden
                return;

            case 8:
                this.CkbSerial = ((System.Windows.Controls.CheckBox)(target));

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

            #line default
            #line hidden
                return;

            case 9:
                this.CkbDisplay = ((System.Windows.Controls.CheckBox)(target));

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

            #line default
            #line hidden
                return;

            case 10:
                this.Alwaystp = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 11:
                this.comboBox_count = ((System.Windows.Controls.ComboBox)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.comboBox_count.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_selected_SelectionChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.comboBox_selected = ((System.Windows.Controls.ComboBox)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.comboBox_selected.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_selected_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }