void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.latexWindow = ((Matrix_Elementary.LaTeX_ExportWindow)(target));

            #line 8 "..\..\LaTeX_ExportWindow.xaml"
                this.latexWindow.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 8 "..\..\LaTeX_ExportWindow.xaml"
                this.latexWindow.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.latexWindow_PreviewKeyUp);

            #line default
            #line hidden
                return;

            case 2:
                this.textBox1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.popup1 = ((Matrix_Elementary.FadingPopupControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((Matrix_Elementary.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.mainWindow.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.mainWindow.Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.mainWindow.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.mainWindow_PreviewKeyUp);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.mainWindow.MouseMove += new System.Windows.Input.MouseEventHandler(this.Window_MouseMove);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.mainWindow.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.mainWindow_MouseDown);

            #line default
            #line hidden
                return;

            case 2:

            #line 14 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.modeButton_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 15 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.dimButton_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 16 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.latex_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 17 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Action_Executed);

            #line default
            #line hidden
                return;

            case 6:

            #line 18 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Transpose);

            #line default
            #line hidden
                return;

            case 7:

            #line 19 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Inverse);

            #line default
            #line hidden
                return;

            case 8:

            #line 20 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Gauss);

            #line default
            #line hidden
                return;

            case 9:

            #line 21 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ImBasis);

            #line default
            #line hidden
                return;

            case 10:

            #line 22 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.KerBasis);

            #line default
            #line hidden
                return;

            case 11:

            #line 23 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.NewBasis);

            #line default
            #line hidden
                return;

            case 12:

            #line 24 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Multiply);

            #line default
            #line hidden
                return;

            case 13:

            #line 25 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Sum);

            #line default
            #line hidden
                return;

            case 14:

            #line 26 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Fill);

            #line default
            #line hidden
                return;

            case 15:

            #line 27 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Random);

            #line default
            #line hidden
                return;

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

            case 17:

            #line 31 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Undo_Executed);

            #line default
            #line hidden
                return;

            case 18:

            #line 32 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Redo_Executed);

            #line default
            #line hidden
                return;

            case 19:
                this.imageBack = ((System.Windows.Controls.Image)(target));
                return;

            case 20:
                this.modeButton = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

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

            #line 43 "..\..\MainWindow.xaml"
                this.dimButton.Click += new System.Windows.RoutedEventHandler(this.dimButton_Click);

            #line default
            #line hidden
                return;

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

            #line 50 "..\..\MainWindow.xaml"
                this.latexButton.Click += new System.Windows.RoutedEventHandler(this.latex_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.settingsButton = ((System.Windows.Controls.Button)(target));

            #line 57 "..\..\MainWindow.xaml"
                this.settingsButton.Click += new System.Windows.RoutedEventHandler(this.settingsButton_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.actionButton = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\MainWindow.xaml"
                this.actionButton.Click += new System.Windows.RoutedEventHandler(this.actionButton_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.popup1 = ((Matrix_Elementary.FadingPopupControl)(target));
                return;
            }
            this._contentLoaded = true;
        }