void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CreateProjectUiUserControl = ((EasyBugManager.CreateProjectUiControl)(target));
                return;

            case 2:
                this.BackgroundBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 3:
                this.TipTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.ProjectNameTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 75 "..\..\..\..\..\Xaml\Control\Ui\CreateProjectUiControl.xaml"
                this.ProjectNameTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.ProjectNameTextBox_TextChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.AdvancedOptionsButtonGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.EnAdvancedOptionsButton = ((EasyBugManager.ImageButtonControl)(target));
                return;

            case 7:
                this.CnAdvancedOptionsButton = ((EasyBugManager.ImageButtonControl)(target));
                return;

            case 8:
                this.AdvancedOptionsCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

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

            case 10:
                this.IsCollaborationModeCheckControl = ((EasyBugManager.ImageCheckControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        /// <summary>
        /// 依赖项属性发生改变时,触发的事件:
        /// 当IsShowAdvancedOptionProperty依赖项属性,的属性值发生改变的时候,调用这个方法
        /// </summary>
        /// <param name="sender">依赖项对象</param>
        /// <param name="e">依赖项属性改变事件 的参数(里面有这个属性的新的值,和旧的值)</param>
        private static void OnIsShowAdvancedOptionChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            //获取到控件
            CreateProjectUiControl _createProjectUiControl = sender as CreateProjectUiControl;

            //比较值
            switch ((bool)e.NewValue)
            {
            //如果要显示[高级选项]
            case true:
                _createProjectUiControl.BackgroundBorder.Height = 520;
                _createProjectUiControl.AdvancedOptionsButtonGrid.Visibility = Visibility.Collapsed;
                _createProjectUiControl.AdvancedOptionsCanvas.Visibility     = Visibility.Visible;
                break;

            //如果不显示[高级选项]
            case false:
                _createProjectUiControl.BackgroundBorder.Height = 292;
                _createProjectUiControl.AdvancedOptionsButtonGrid.Visibility = Visibility.Visible;
                _createProjectUiControl.AdvancedOptionsCanvas.Visibility     = Visibility.Collapsed;
                break;
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:
                this.BackgroudBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 3:
                this.DragBackgroudGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:

            #line 78 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Border)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.WindowTitleBorder_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 5:
                this.LatelyProjectUiControl = ((EasyBugManager.LatelyProjectUiControl)(target));
                return;

            case 6:
                this.MainUiControl = ((EasyBugManager.MainUiControl)(target));
                return;

            case 7:
                this.ListUiControl = ((EasyBugManager.ListUiControl)(target));
                return;

            case 8:
                this.BugUiControl = ((EasyBugManager.BugUiControl)(target));
                return;

            case 9:
                this.SyncUiControl = ((EasyBugManager.SyncUiControl)(target));
                return;

            case 10:
                this.ImageUiControl = ((EasyBugManager.ImageUiControl)(target));
                return;

            case 11:
                this.DragForegroundGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 12:

            #line 259 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Border)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.WindowTitleBorder_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 13:
                this.SettingsUiControl = ((EasyBugManager.SettingsUiControl)(target));
                return;

            case 14:
                this.CreateProjectUiControl = ((EasyBugManager.CreateProjectUiControl)(target));
                return;

            case 15:
                this.ExportUiControl = ((EasyBugManager.ExportUiControl)(target));
                return;

            case 16:
                this.CreateBugUiControl = ((EasyBugManager.CreateBugUiControl)(target));
                return;

            case 17:
                this.ChangeBugUiControl = ((EasyBugManager.ChangeBugUiControl)(target));
                return;

            case 18:
                this.DeleteBugTipUiControl = ((EasyBugManager.DeleteTipUiControl)(target));
                return;

            case 19:
                this.DeleteRecordTipUiControl = ((EasyBugManager.DeleteTipUiControl)(target));
                return;

            case 20:
                this.BaseTipUiControl = ((EasyBugManager.TipUiControl)(target));
                return;

            case 21:
                this.LatelyProjectTipUiControl = ((EasyBugManager.TipUiControl)(target));
                return;

            case 22:
                this.ErrorUiControl = ((EasyBugManager.ErrorUiControl)(target));
                return;
            }
            this._contentLoaded = true;
        }