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

            case 2:
                this.ClockTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\MainWindow.xaml"
                ((CatTimer_WpfProject.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_OnLoaded);

            #line default
            #line hidden

            #line 13 "..\..\MainWindow.xaml"
                ((CatTimer_WpfProject.MainWindow)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.MainWindow_OnPreviewKeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.taskbarItemInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.ClockUserControl = ((CatTimer_WpfProject.ClockControl)(target));
                return;

            case 4:
                this.PausedUiUserControl = ((CatTimer_WpfProject.PausedUiControl)(target));
                return;

            case 5:
                this.BlackCatUserControl = ((CatTimer_WpfProject.BlackCatControl)(target));
                return;

            case 6:
                this.YellowCatUserControl = ((CatTimer_WpfProject.YellowCatControl)(target));
                return;

            case 7:
                this.TimingUserControl = ((CatTimer_WpfProject.TimingControl)(target));
                return;

            case 8:
                this.SettingUiUserControl = ((CatTimer_WpfProject.SettingUiControl)(target));
                return;

            case 9:
                this.WindowTitleBorder = ((System.Windows.Controls.Border)(target));

            #line 82 "..\..\MainWindow.xaml"
                this.WindowTitleBorder.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.WindowTitleBorder_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 10:
                this.SettingToggleControl = ((CatTimer_WpfProject.ToggleControl)(target));
                return;

            case 11:
                this.MinimumWindowButtonControl = ((CatTimer_WpfProject.ButtonControl)(target));
                return;

            case 12:
                this.CloseWindowButtonControl = ((CatTimer_WpfProject.ButtonControl)(target));
                return;
            }
            this._contentLoaded = true;
        }