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

            #line 20 "..\..\..\MainWindow.xaml"
                this.ToogleDarkMode.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.OpenElementsWindow = ((System.Windows.Controls.MenuItem)(target));

            #line 21 "..\..\..\MainWindow.xaml"
                this.OpenElementsWindow.Click += new System.Windows.RoutedEventHandler(this.OpenElementsWindow_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.menu = ((EasyStyle.HeaderControl)(target));
                return;

            case 4:
                this.ContentGrid = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.menu = ((EasyStyle.HeaderControl)(target));
                return;

            case 2:
                this.ContentGrid = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }