Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((MicrosoftSpeechSDKSamples.WpfSpeechRecognitionSample.MainWindow)(target));
                return;

            case 2:
                this.column2 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 3:
                this.baseModelCurrentText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.baseModelLogText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.customModelCurrentText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.customModelLogText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.optionPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 8:
                this.radioGroup = ((System.Windows.Controls.Expander)(target));
                return;

            case 9:
                this.micRadioButton = ((System.Windows.Controls.RadioButton)(target));

            #line 77 "..\..\..\MainWindow.xaml"
                this.micRadioButton.Click += new System.Windows.RoutedEventHandler(this.RadioButton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.fileInputRadioButton = ((System.Windows.Controls.RadioButton)(target));

            #line 78 "..\..\..\MainWindow.xaml"
                this.fileInputRadioButton.Click += new System.Windows.RoutedEventHandler(this.RadioButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.selectFileButton = ((System.Windows.Controls.Button)(target));

            #line 80 "..\..\..\MainWindow.xaml"
                this.selectFileButton.Click += new System.Windows.RoutedEventHandler(this.SelectFileButton_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.fileNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.selectRecoType = ((System.Windows.Controls.Expander)(target));
                return;

            case 14:
                this.basicRadioButton = ((System.Windows.Controls.RadioButton)(target));

            #line 90 "..\..\..\MainWindow.xaml"
                this.basicRadioButton.Click += new System.Windows.RoutedEventHandler(this.RadioButton_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.customRadioButton = ((System.Windows.Controls.RadioButton)(target));

            #line 91 "..\..\..\MainWindow.xaml"
                this.customRadioButton.Click += new System.Windows.RoutedEventHandler(this.RadioButton_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.bothRadioButton = ((System.Windows.Controls.RadioButton)(target));

            #line 92 "..\..\..\MainWindow.xaml"
                this.bothRadioButton.Click += new System.Windows.RoutedEventHandler(this.RadioButton_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.regionComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 18:
                this.languageComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 19:

            #line 144 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveKey_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.immediateResultsCheckBox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 21:
                this.startButton = ((System.Windows.Controls.Button)(target));

            #line 159 "..\..\..\MainWindow.xaml"
                this.startButton.Click += new System.Windows.RoutedEventHandler(this.StartButton_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.stopButton = ((System.Windows.Controls.Button)(target));

            #line 160 "..\..\..\MainWindow.xaml"
                this.stopButton.Click += new System.Windows.RoutedEventHandler(this.StopButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((MicrosoftSpeechSDKSamples.WpfSpeechRecognitionSample.MainWindow)(target));
                return;

            case 2:
                this.appLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.column2 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 4:
                this.baseModelCurrentText = ((System.Windows.Controls.TextBox)(target));

            #line 30 "..\..\..\MainWindow.xaml"
                this.baseModelCurrentText.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.baseModelCurrentText_TextChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.baseModelLogText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.optionPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            #line 118 "..\..\..\MainWindow.xaml"
                this.languageComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.languageComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 9:

            #line 145 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveKey_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.startButton = ((System.Windows.Controls.Button)(target));

            #line 156 "..\..\..\MainWindow.xaml"
                this.startButton.Click += new System.Windows.RoutedEventHandler(this.StartButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.stopButton = ((System.Windows.Controls.Button)(target));

            #line 157 "..\..\..\MainWindow.xaml"
                this.stopButton.Click += new System.Windows.RoutedEventHandler(this.StopButton_Click);

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