示例#1
0
        private void ImportWordButton_Click(object sender, RoutedEventArgs e)
        {
            var imw = new ImportWordWindow();

            Close();
            imw.Show();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((EnglishTrain.ImportWordWindow)(target));
                return;

            case 2:
                this.BackButton = ((System.Windows.Controls.Button)(target));

            #line 20 "..\..\ImportWordWindow.xaml"
                this.BackButton.Click += new System.Windows.RoutedEventHandler(this.BackButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.inputTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.importButton = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\ImportWordWindow.xaml"
                this.importButton.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.pbStatus = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }