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

            case 2:
                this.e1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 3:
                this.e2 = ((System.Windows.Shapes.Rectangle)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.a = ((lab4_5.MainWindow)(target));
                return;

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

            case 3:
                this.h1 = ((System.Windows.Controls.MenuItem)(target));

            #line 40 "..\..\MainWindow.xaml"
                this.h1.Click += new System.Windows.RoutedEventHandler(this.H1_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.hnew = ((System.Windows.Controls.MenuItem)(target));

            #line 41 "..\..\MainWindow.xaml"
                this.hnew.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.save = ((System.Windows.Controls.MenuItem)(target));

            #line 42 "..\..\MainWindow.xaml"
                this.save.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_4);

            #line default
            #line hidden
                return;

            case 6:
                this.open = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 7:
                this.h2 = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 8:
                this.copy = ((System.Windows.Controls.MenuItem)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.copy.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_1);

            #line default
            #line hidden
                return;

            case 9:
                this.paste = ((System.Windows.Controls.MenuItem)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.paste.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_2);

            #line default
            #line hidden
                return;

            case 10:
                this.fc = ((System.Windows.Controls.MenuItem)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.fc.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_3);

            #line default
            #line hidden
                return;

            case 11:
                this.undo = ((System.Windows.Controls.MenuItem)(target));

            #line 49 "..\..\MainWindow.xaml"
                this.undo.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_6);

            #line default
            #line hidden
                return;

            case 12:
                this.redo = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 13:
                this.fonts = ((System.Windows.Controls.ComboBox)(target));

            #line 52 "..\..\MainWindow.xaml"
                this.fonts.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Fonts_SelectionChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.fsize = ((System.Windows.Controls.Slider)(target));

            #line 53 "..\..\MainWindow.xaml"
                this.fsize.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Fsize_ValueChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.tsize = ((System.Windows.Controls.TextBox)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.tsize.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textchanged_boxtextsize);

            #line default
            #line hidden
                return;

            case 16:

            #line 55 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Primitives.ToggleButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_Checked);

            #line default
            #line hidden

            #line 55 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Primitives.ToggleButton)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.unchecked_bold);

            #line default
            #line hidden
                return;

            case 17:

            #line 56 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Primitives.ToggleButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_Checked_1);

            #line default
            #line hidden

            #line 56 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Primitives.ToggleButton)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.unchecked_Italic);

            #line default
            #line hidden
                return;

            case 18:
                this.pod = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 57 "..\..\MainWindow.xaml"
                this.pod.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_Checked_2);

            #line default
            #line hidden

            #line 57 "..\..\MainWindow.xaml"
                this.pod.Unchecked += new System.Windows.RoutedEventHandler(this.unchecked_underline);

            #line default
            #line hidden
                return;

            case 19:
                this.lod = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.files = ((System.Windows.Controls.ComboBox)(target));

            #line 61 "..\..\MainWindow.xaml"
                this.files.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Files_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 62 "..\..\MainWindow.xaml"
                this.theme.Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 22:
                this.statusbar = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 23:

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

            #line default
            #line hidden
                return;

            case 24:
                this.myel = ((lab4_5.UserControl1)(target));
                return;

            case 25:

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

            #line default
            #line hidden
                return;

            case 26:
                this.winbar = ((System.Windows.Controls.ToolBar)(target));
                return;

            case 27:
                this.textContainer = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }