コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.usrCntrl = ((LR_4_5.UserControl1)(target));
                return;

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

            case 3:
                this.sldr = ((System.Windows.Controls.Slider)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
ファイル: MainWindow.g.cs プロジェクト: mx-lia/csharp-labs-2
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:

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

            #line default
            #line hidden
                return;

            case 7:

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

            #line default
            #line hidden
                return;

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

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

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

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

            case 12:

            #line 72 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Color_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.Light = ((System.Windows.Controls.MenuItem)(target));

            #line 74 "..\..\MainWindow.xaml"
                this.Light.Click += new System.Windows.RoutedEventHandler(this.ThemeChange_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.Dark = ((System.Windows.Controls.MenuItem)(target));

            #line 75 "..\..\MainWindow.xaml"
                this.Dark.Click += new System.Windows.RoutedEventHandler(this.ThemeChange_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.en = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 16:
                this.ru = ((System.Windows.Controls.MenuItem)(target));

            #line 79 "..\..\MainWindow.xaml"
                this.ru.Click += new System.Windows.RoutedEventHandler(this.Language_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.wrPanel = ((System.Windows.Controls.WrapPanel)(target));
                return;

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

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

            #line default
            #line hidden
                return;

            case 19:
                this.fontSize = ((System.Windows.Controls.TextBox)(target));

            #line 114 "..\..\MainWindow.xaml"
                this.fontSize.SelectionChanged += new System.Windows.RoutedEventHandler(this.SelectionChanged);

            #line default
            #line hidden
                return;

            case 20:
                this.fontSldr = ((System.Windows.Controls.Slider)(target));
                return;

            case 21:
                this.textArea = ((System.Windows.Controls.RichTextBox)(target));

            #line 154 "..\..\MainWindow.xaml"
                this.textArea.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextArea_TextChanged);

            #line default
            #line hidden
                return;

            case 22:
                this.symbols = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.lines = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.zoom = ((LR_4_5.UserControl1)(target));
                return;
            }
            this._contentLoaded = true;
        }