Example #1
0
 public VS2015ThemeBase(byte[] resources)
 {
     ColorPalette      = new DockPanelColorPalette(new VS2012PaletteFactory(resources));
     Skin              = new DockPanelSkin();
     PaintingService   = new PaintingService();
     ImageService      = new ImageService(this);
     ToolStripRenderer = new VisualStudioToolStripRenderer(ColorPalette)
     {
         UseGlassOnMenuStrip = false,
     };
     Measures.SplitterSize                   = 2;
     Measures.AutoHideSplitterSize           = 1;
     Measures.DockPadding                    = 0;
     ShowAutoHideContentOnHover              = false;
     Extender.AutoHideStripFactory           = new VS2012AutoHideStripFactory();
     Extender.AutoHideWindowFactory          = new VS2012AutoHideWindowFactory();
     Extender.DockPaneFactory                = new VS2013DockPaneFactory();
     Extender.DockPaneCaptionFactory         = new VS2013DockPaneCaptionFactory();
     Extender.DockPaneStripFactory           = new VS2013DockPaneStripFactory();
     Extender.DockPaneSplitterControlFactory = new VS2013DockPaneSplitterControlFactory();
     Extender.WindowSplitterControlFactory   = new VS2013WindowSplitterControlFactory();
     Extender.DockWindowFactory              = new VS2012DockWindowFactory();
     Extender.PaneIndicatorFactory           = new VS2012PaneIndicatorFactory();
     Extender.PanelIndicatorFactory          = new VS2012PanelIndicatorFactory();
     Extender.DockOutlineFactory             = new VS2012DockOutlineFactory();
     Extender.DockIndicatorFactory           = new VS2012DockIndicatorFactory();
 }
 public VS2015ThemeBase(byte[] resources)
 {
     ColorPalette = new DockPanelColorPalette(new VS2012PaletteFactory(resources));
     Skin = new DockPanelSkin();
     PaintingService = new PaintingService();
     ImageService = new ImageService(this);
     ToolStripRenderer = new VisualStudioToolStripRenderer(ColorPalette)
     {
         UseGlassOnMenuStrip = false,
     };
     Measures.SplitterSize = 6;
     Measures.AutoHideSplitterSize = 3;
     Measures.DockPadding = 6;
     ShowAutoHideContentOnHover = false;
     Extender.AutoHideStripFactory = new VS2012AutoHideStripFactory();
     Extender.AutoHideWindowFactory = new VS2012AutoHideWindowFactory();
     Extender.DockPaneFactory = new VS2013DockPaneFactory();
     Extender.DockPaneCaptionFactory = new VS2013DockPaneCaptionFactory();
     Extender.DockPaneStripFactory = new VS2013DockPaneStripFactory();
     Extender.DockPaneSplitterControlFactory = new VS2013DockPaneSplitterControlFactory();
     Extender.WindowSplitterControlFactory = new VS2013WindowSplitterControlFactory();
     Extender.DockWindowFactory = new VS2012DockWindowFactory();
     Extender.PaneIndicatorFactory = new VS2012PaneIndicatorFactory();
     Extender.PanelIndicatorFactory = new VS2012PanelIndicatorFactory();
     Extender.DockOutlineFactory = new VS2012DockOutlineFactory();
     Extender.DockIndicatorFactory = new VS2012DockIndicatorFactory();
 }
Example #3
0
        public static DockPanelSkin CreateVisualStudio2012Light()
        {
            var skin = new DockPanelSkin();

            skin.ColorPalette.MainWindowActive.Background = ColorTranslator.FromHtml("#FFEFEFF2");

            skin.ColorPalette.AutoHideStripDefault.Background = ColorTranslator.FromHtml("#FFEFEFF2");
            skin.ColorPalette.AutoHideStripDefault.Border     = ColorTranslator.FromHtml("#FFCCCEDB");
            skin.ColorPalette.AutoHideStripDefault.Text       = ColorTranslator.FromHtml("#FF444444");

            skin.ColorPalette.AutoHideStripHovered.Background = ColorTranslator.FromHtml("#FFEFEFF2");
            skin.ColorPalette.AutoHideStripHovered.Border     = ColorTranslator.FromHtml("#FF007ACC");
            skin.ColorPalette.AutoHideStripHovered.Text       = ColorTranslator.FromHtml("#FF0E70C0");

            skin.ColorPalette.TabSelectedActive.Background = ColorTranslator.FromHtml("#FF007ACC");
            skin.ColorPalette.TabSelectedActive.Button     = ColorTranslator.FromHtml("#FFD0E6F5");
            skin.ColorPalette.TabSelectedActive.Text       = ColorTranslator.FromHtml("#FFFFFFFF");

            skin.ColorPalette.TabSelectedInactive.Background = ColorTranslator.FromHtml("#FFCCCEDB");
            skin.ColorPalette.TabSelectedInactive.Button     = ColorTranslator.FromHtml("#FF6D6D70");
            skin.ColorPalette.TabSelectedInactive.Text       = ColorTranslator.FromHtml("#FF717171");

            skin.ColorPalette.TabUnselected.Text = ColorTranslator.FromHtml("#FF1E1E1E");

            skin.ColorPalette.TabUnselectedHovered.Background = ColorTranslator.FromHtml("#FF1C97EA");
            skin.ColorPalette.TabUnselectedHovered.Button     = ColorTranslator.FromHtml("#FFD0E6F5");
            skin.ColorPalette.TabUnselectedHovered.Text       = ColorTranslator.FromHtml("#FFFFFFFF");

            skin.ColorPalette.ToolWindowCaptionActive.Background = ColorTranslator.FromHtml("#FF007ACC");
            skin.ColorPalette.ToolWindowCaptionActive.Button     = ColorTranslator.FromHtml("#FFFFFFFF");
            skin.ColorPalette.ToolWindowCaptionActive.Grip       = ColorTranslator.FromHtml("#FF59A8DE");
            skin.ColorPalette.ToolWindowCaptionActive.Text       = ColorTranslator.FromHtml("#FFFFFFFF");

            skin.ColorPalette.ToolWindowCaptionInactive.Background = ColorTranslator.FromHtml("#FFEFEFF2");
            skin.ColorPalette.ToolWindowCaptionInactive.Button     = ColorTranslator.FromHtml("#FF1E1E1E");
            skin.ColorPalette.ToolWindowCaptionInactive.Grip       = ColorTranslator.FromHtml("#FF999999");
            skin.ColorPalette.ToolWindowCaptionInactive.Text       = ColorTranslator.FromHtml("#FF444444");

            skin.ColorPalette.ToolWindowTabSelectedActive.Background = ColorTranslator.FromHtml("#FFF5F5F5");
            skin.ColorPalette.ToolWindowTabSelectedActive.Separator  = ColorTranslator.FromHtml("#FFCCCEDB");
            skin.ColorPalette.ToolWindowTabSelectedActive.Text       = ColorTranslator.FromHtml("#FF0E70C0");

            skin.ColorPalette.ToolWindowTabSelectedInactive.Background = ColorTranslator.FromHtml("#FFF6F6F6");
            skin.ColorPalette.ToolWindowTabSelectedInactive.Separator  = ColorTranslator.FromHtml("#FFCCCEDB");
            skin.ColorPalette.ToolWindowTabSelectedInactive.Text       = ColorTranslator.FromHtml("#FF0E70C0");

            skin.ColorPalette.ToolWindowTabUnselected.Separator = ColorTranslator.FromHtml("#FFCCCEDB");
            skin.ColorPalette.ToolWindowTabUnselected.Text      = ColorTranslator.FromHtml("#FF444444");

            skin.ColorPalette.ToolWindowTabUnselectedHovered.Background = ColorTranslator.FromHtml("#FFFEFEFE");
            skin.ColorPalette.ToolWindowTabUnselectedHovered.Separator  = ColorTranslator.FromHtml("#FFCCCEDB");
            skin.ColorPalette.ToolWindowTabUnselectedHovered.Text       = ColorTranslator.FromHtml("#FF007ACC");

            return(skin);
        }
Example #4
0
        public static DockPanelSkin CreateVisualStudio2012Dark()
        {
            var skin = new DockPanelSkin();

            skin.ColorPalette.MainWindowActive.Background = ColorTranslator.FromHtml("#FF2D2D30");

            skin.ColorPalette.AutoHideStripDefault.Background = ColorTranslator.FromHtml("#FF2D2D30");
            skin.ColorPalette.AutoHideStripDefault.Border     = ColorTranslator.FromHtml("#FF3F3F46");
            skin.ColorPalette.AutoHideStripDefault.Text       = ColorTranslator.FromHtml("#FFD0D0D0");

            skin.ColorPalette.AutoHideStripHovered.Background = ColorTranslator.FromHtml("#FF2D2D30");
            skin.ColorPalette.AutoHideStripHovered.Border     = ColorTranslator.FromHtml("#FF007ACC");
            skin.ColorPalette.AutoHideStripHovered.Text       = ColorTranslator.FromHtml("#FF0097FB");

            skin.ColorPalette.TabSelectedActive.Background = ColorTranslator.FromHtml("#FF007ACC");
            skin.ColorPalette.TabSelectedActive.Button     = ColorTranslator.FromHtml("#FFD0E6F5");
            skin.ColorPalette.TabSelectedActive.Text       = ColorTranslator.FromHtml("#FFFFFFFF");

            skin.ColorPalette.TabSelectedInactive.Background = ColorTranslator.FromHtml("#FF3F3F46");
            skin.ColorPalette.TabSelectedInactive.Button     = ColorTranslator.FromHtml("#FF6D6D70");
            skin.ColorPalette.TabSelectedInactive.Text       = ColorTranslator.FromHtml("#FFF1F1F1");

            skin.ColorPalette.TabUnselected.Text = ColorTranslator.FromHtml("#FFF1F1F1");

            skin.ColorPalette.TabUnselectedHovered.Background = ColorTranslator.FromHtml("#FF1C97EA");
            skin.ColorPalette.TabUnselectedHovered.Button     = ColorTranslator.FromHtml("#FFD0E6F5");
            skin.ColorPalette.TabUnselectedHovered.Text       = ColorTranslator.FromHtml("#FFFFFFFF");

            skin.ColorPalette.ToolWindowCaptionActive.Background = ColorTranslator.FromHtml("#FF007ACC");
            skin.ColorPalette.ToolWindowCaptionActive.Button     = ColorTranslator.FromHtml("#FFFFFFFF");
            skin.ColorPalette.ToolWindowCaptionActive.Grip       = ColorTranslator.FromHtml("#FF59A8DE");
            skin.ColorPalette.ToolWindowCaptionActive.Text       = ColorTranslator.FromHtml("#FFFFFFFF");

            skin.ColorPalette.ToolWindowCaptionInactive.Background = ColorTranslator.FromHtml("#FF2D2D30");
            skin.ColorPalette.ToolWindowCaptionInactive.Button     = ColorTranslator.FromHtml("#FFF1F1F1");
            skin.ColorPalette.ToolWindowCaptionInactive.Grip       = ColorTranslator.FromHtml("#FF46464A");
            skin.ColorPalette.ToolWindowCaptionInactive.Text       = ColorTranslator.FromHtml("#FFD0D0D0");

            skin.ColorPalette.ToolWindowTabSelectedActive.Background = ColorTranslator.FromHtml("#FF252526");
            skin.ColorPalette.ToolWindowTabSelectedActive.Separator  = ColorTranslator.FromHtml("#FF3F3F46");
            skin.ColorPalette.ToolWindowTabSelectedActive.Text       = ColorTranslator.FromHtml("#FF0097FB");

            skin.ColorPalette.ToolWindowTabSelectedInactive.Background = ColorTranslator.FromHtml("#FF252526");
            skin.ColorPalette.ToolWindowTabSelectedInactive.Separator  = ColorTranslator.FromHtml("#FF3F3F46");
            skin.ColorPalette.ToolWindowTabSelectedInactive.Text       = ColorTranslator.FromHtml("#FF0097FB");

            skin.ColorPalette.ToolWindowTabUnselected.Separator = ColorTranslator.FromHtml("#FF3F3F46");
            skin.ColorPalette.ToolWindowTabUnselected.Text      = ColorTranslator.FromHtml("#FFD0D0D0");

            skin.ColorPalette.ToolWindowTabUnselectedHovered.Background = ColorTranslator.FromHtml("#FF3E3E40");
            skin.ColorPalette.ToolWindowTabUnselectedHovered.Separator  = ColorTranslator.FromHtml("#FF3F3F46");
            skin.ColorPalette.ToolWindowTabUnselectedHovered.Text       = ColorTranslator.FromHtml("#FF55AAFF");

            return(skin);
        }
Example #5
0
        public static DockPanelSkin CreateVisualStudio2010()
        {
            var skin = new DockPanelSkin();

            skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.TextColor         = Color.Black;
            skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.TextColor       = Color.White;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.TextColor       = Color.Black;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.TextColor     = Color.White;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.TextColor   = Color.Black;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.TextColor = Color.White;
            skin.AutoHideStripSkin.TabGradient.TextColor = Color.White;
            return(skin);
        }
        private void SetSkin()
        {
            DockPanelSkin         dockPanelSkin         = new DockPanelSkin();
            DockPaneStripSkin     dockPaneStripSkin     = new DockPaneStripSkin();
            DockPaneStripGradient dockPaneStripGradient = new DockPaneStripGradient();
            DockPanelGradient     dockPanelGradient     = new DockPanelGradient();

            dockPanelGradient.LinearGradientMode               = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            dockPanelGradient.EndColor                         = Color.FromArgb(235, 241, 250);
            dockPanelGradient.StartColor                       = Color.FromArgb(245, 248, 252);
            dockPaneStripGradient.DockStripGradient            = dockPanelGradient;
            dockPaneStripGradient.ActiveTabGradient.StartColor = Color.White;
            dockPaneStripGradient.ActiveTabGradient.EndColor   = Color.White;
            dockPaneStripSkin.DocumentGradient                 = dockPaneStripGradient;
            dockPanelSkin.DockPaneStripSkin                    = dockPaneStripSkin;
            this._dockPanel.Skin = dockPanelSkin;
        }
Example #7
0
        public static DockPanelSkin CreateVisualStudio2012Light()
        {
            var specialBlue   = Color.FromArgb(0xFF, 0x00, 0x7A, 0xCC);
            var dot           = Color.FromArgb(80, 170, 220);
            var activeTab     = specialBlue;
            var mouseHoverTab = Color.FromArgb(0xFF, 28, 151, 234);
            var inactiveTab   = SystemColors.Control;
            var lostFocusTab  = Color.FromArgb(0xFF, 204, 206, 219);
            var skin          = new DockPanelSkin();

            skin.AutoHideStripSkin.DockStripGradient.StartColor = specialBlue;
            skin.AutoHideStripSkin.DockStripGradient.EndColor   = SystemColors.ControlLight;
            skin.AutoHideStripSkin.TabGradient.TextColor        = SystemColors.ControlDarkDark;

            skin.DockPaneStripSkin.DocumentGradient.DockStripGradient.StartColor   = SystemColors.Control;
            skin.DockPaneStripSkin.DocumentGradient.DockStripGradient.EndColor     = SystemColors.Control;
            skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.StartColor   = activeTab;
            skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.EndColor     = lostFocusTab;
            skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.TextColor    = Color.White;
            skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.StartColor = inactiveTab;
            skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.EndColor   = mouseHoverTab;
            skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.TextColor  = Color.Black;

            skin.DockPaneStripSkin.ToolWindowGradient.DockStripGradient.StartColor = SystemColors.Control;
            skin.DockPaneStripSkin.ToolWindowGradient.DockStripGradient.EndColor   = SystemColors.Control;

            skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.StartColor = SystemColors.ControlLightLight;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.EndColor   = SystemColors.ControlLightLight;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.TextColor  = specialBlue;

            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.StartColor = SystemColors.Control;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.EndColor   = SystemColors.Control;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.TextColor  = SystemColors.GrayText;

            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.StartColor         = specialBlue;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.EndColor           = dot;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.LinearGradientMode = LinearGradientMode.Vertical;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.TextColor          = Color.White;

            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.StartColor         = SystemColors.Control;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.EndColor           = SystemColors.ControlDark;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.LinearGradientMode = LinearGradientMode.Vertical;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.TextColor          = SystemColors.GrayText;

            return(skin);
        }
Example #8
0
        internal static DockPanelSkin CreateVisualStudio2005()
        {
            var skin = new DockPanelSkin();

            skin.AutoHideStripSkin.DockStripGradient.StartColor = SystemColors.ControlLight;
            skin.AutoHideStripSkin.DockStripGradient.EndColor   = SystemColors.ControlLight;
            skin.AutoHideStripSkin.TabGradient.TextColor        = SystemColors.ControlDarkDark;

            skin.DockPaneStripSkin.DocumentGradient.DockStripGradient.StartColor   = SystemColors.Control;
            skin.DockPaneStripSkin.DocumentGradient.DockStripGradient.EndColor     = SystemColors.Control;
            skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.StartColor   = SystemColors.ControlLightLight;
            skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.EndColor     = SystemColors.ControlLightLight;
            skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.StartColor = SystemColors.ControlLight;
            skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.EndColor   = SystemColors.ControlLight;

            skin.DockPaneStripSkin.ToolWindowGradient.DockStripGradient.StartColor = SystemColors.ControlLight;
            skin.DockPaneStripSkin.ToolWindowGradient.DockStripGradient.EndColor   = SystemColors.ControlLight;

            skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.StartColor = SystemColors.Control;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.EndColor   = SystemColors.Control;

            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.StartColor = Color.Transparent;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.EndColor   = Color.Transparent;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.TextColor  = SystemColors.ControlDarkDark;

            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.StartColor =
                SystemColors.GradientActiveCaption;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.EndColor           = SystemColors.ActiveCaption;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.LinearGradientMode =
                LinearGradientMode.Vertical;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.TextColor = SystemColors.ActiveCaptionText;

            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.StartColor =
                SystemColors.GradientInactiveCaption;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.EndColor           = SystemColors.InactiveCaption;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.LinearGradientMode =
                LinearGradientMode.Vertical;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.TextColor =
                SystemColors.InactiveCaptionText;

            return(skin);
        }
Example #9
0
        static public DockPanelSkin MakeHighContrastDockPanelSkin()
        {
            DockPanelSkin ret = new DockPanelSkin();

            ret.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.StartColor = SystemColors.ActiveCaption;
            ret.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.EndColor   = SystemColors.ActiveCaption;
            ret.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.TextColor  = SystemColors.ActiveCaptionText;

            ret.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.StartColor = SystemColors.InactiveCaption;
            ret.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.EndColor   = SystemColors.InactiveCaption;
            ret.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.TextColor  = SystemColors.InactiveCaptionText;

            ret.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient   = ret.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient;
            ret.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient = ret.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient;

            ret.DockPaneStripSkin.DocumentGradient.ActiveTabGradient   = ret.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient;
            ret.DockPaneStripSkin.DocumentGradient.InactiveTabGradient = ret.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient;

            return(ret);
        }
        private static DockPanelSkin CreateVisualStudio2012Light()
        {
            var specialBlue = Color.FromArgb(0xFF, 0x00, 0x7A, 0xCC);
            var skin = new DockPanelSkin();
            
            skin.AutoHideStripSkin.DockStripGradient.StartColor = specialBlue;
            skin.AutoHideStripSkin.DockStripGradient.EndColor = SystemColors.ControlLight;
            skin.AutoHideStripSkin.TabGradient.TextColor = SystemColors.ControlDarkDark;

            skin.DockPaneStripSkin.DocumentGradient.DockStripGradient.StartColor = SystemColors.Control;
            skin.DockPaneStripSkin.DocumentGradient.DockStripGradient.EndColor = SystemColors.Control;
            skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.StartColor = specialBlue;
            skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.EndColor = specialBlue;
            skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.TextColor = Color.White;
            skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.StartColor = SystemColors.Control;
            skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.EndColor = SystemColors.InactiveCaption;
            skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.TextColor = SystemColors.GrayText;

            skin.DockPaneStripSkin.ToolWindowGradient.DockStripGradient.StartColor = SystemColors.Control;
            skin.DockPaneStripSkin.ToolWindowGradient.DockStripGradient.EndColor = SystemColors.Control;

            skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.StartColor = SystemColors.ControlLightLight;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.EndColor = SystemColors.ControlLightLight;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.TextColor = specialBlue;

            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.StartColor = SystemColors.Control;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.EndColor = SystemColors.Control;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.TextColor = SystemColors.GrayText;

            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.StartColor = specialBlue;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.EndColor = Color.FromArgb(80, 170, 220); // dots in caption
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.LinearGradientMode = LinearGradientMode.Vertical;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.TextColor = Color.White;

            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.StartColor = SystemColors.Control;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.EndColor = SystemColors.ControlDark;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.LinearGradientMode = LinearGradientMode.Vertical;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.TextColor = SystemColors.GrayText;

            return skin;
        }
Example #11
0
 public VS2010ThemeBase(byte[] resources)
 {
     ColorPalette                            = new DockPanelColorPalette(new VS2010PaletteFactory(resources));
     Skin                                    = new DockPanelSkin();
     PaintingService                         = new PaintingService();
     ImageService                            = new ImageService(this);
     Measures.SplitterSize                   = 6;
     Measures.AutoHideSplitterSize           = 3;
     Measures.DockPadding                    = 6;
     ShowAutoHideContentOnHover              = true;
     Extender.DockPaneCaptionFactory         = new VS2010DockPaneCaptionFactory();
     Extender.AutoHideStripFactory           = new VS2010AutoHideStripFactory();
     Extender.AutoHideWindowFactory          = new VS2010AutoHideWindowFactory();
     Extender.DockPaneStripFactory           = new VS2010DockPaneStripFactory();
     Extender.DockPaneSplitterControlFactory = new VS2013DockPaneSplitterControlFactory();
     Extender.WindowSplitterControlFactory   = new VS2013WindowSplitterControlFactory();
     Extender.DockWindowFactory              = new VS2012DockWindowFactory();
     Extender.PaneIndicatorFactory           = new VS2012PaneIndicatorFactory();
     Extender.PanelIndicatorFactory          = new VS2012PanelIndicatorFactory();
     Extender.DockOutlineFactory             = new VS2012DockOutlineFactory();
     Extender.DockIndicatorFactory           = new VS2012DockIndicatorFactory();
 }
 public VS2010ThemeBase(byte[] resources)
 {
     ColorPalette = new DockPanelColorPalette(new VS2010PaletteFactory(resources));
     Skin = new DockPanelSkin();
     PaintingService = new PaintingService();
     ImageService = new ImageService(this);
     Measures.SplitterSize = 6;
     Measures.AutoHideSplitterSize = 3;
     Measures.DockPadding = 6;
     ShowAutoHideContentOnHover = true;
     Extender.DockPaneCaptionFactory = new VS2010DockPaneCaptionFactory();
     Extender.AutoHideStripFactory = new VS2010AutoHideStripFactory();
     Extender.AutoHideWindowFactory = new VS2010AutoHideWindowFactory();
     Extender.DockPaneStripFactory = new VS2010DockPaneStripFactory();
     Extender.DockPaneSplitterControlFactory = new VS2013DockPaneSplitterControlFactory();
     Extender.WindowSplitterControlFactory = new VS2013WindowSplitterControlFactory();
     Extender.DockWindowFactory = new VS2012DockWindowFactory();
     Extender.PaneIndicatorFactory = new VS2012PaneIndicatorFactory();
     Extender.PanelIndicatorFactory = new VS2012PanelIndicatorFactory();
     Extender.DockOutlineFactory = new VS2012DockOutlineFactory();
     Extender.DockIndicatorFactory = new VS2012DockIndicatorFactory();
 }
 public VS2012ThemeBase(byte[] resources, IDockPaneSplitterControlFactory splitterFactory, IWindowSplitterControlFactory windowsSplitterFactory)
 {
     ColorPalette                            = new DockPanelColorPalette(new VS2012PaletteFactory(resources));
     Skin                                    = new DockPanelSkin();
     PaintingService                         = new PaintingService();
     ImageService                            = new ImageService(this);
     ToolStripRenderer                       = new VisualStudioToolStripRenderer(ColorPalette);
     Measures.SplitterSize                   = 6;
     Measures.AutoHideSplitterSize           = 3;
     Measures.DockPadding                    = 6;
     ShowAutoHideContentOnHover              = false;
     Extender.DockPaneCaptionFactory         = new VS2012DockPaneCaptionFactory();
     Extender.AutoHideStripFactory           = new VS2012AutoHideStripFactory();
     Extender.AutoHideWindowFactory          = new VS2012AutoHideWindowFactory();
     Extender.DockPaneStripFactory           = new VS2012DockPaneStripFactory();
     Extender.DockPaneSplitterControlFactory = splitterFactory ?? new VS2012DockPaneSplitterControlFactory();
     Extender.WindowSplitterControlFactory   = windowsSplitterFactory ?? new VS2012WindowSplitterControlFactory();
     Extender.DockWindowFactory              = new VS2012DockWindowFactory();
     Extender.PaneIndicatorFactory           = new VS2012PaneIndicatorFactory();
     Extender.PanelIndicatorFactory          = new VS2012PanelIndicatorFactory();
     Extender.DockOutlineFactory             = new VS2012DockOutlineFactory();
     Extender.DockIndicatorFactory           = new VS2012DockIndicatorFactory();
 }
        private static DockPanelSkin CreateVisualStudio2005()
        {
            DockPanelSkin skin = new DockPanelSkin();

            skin.AutoHideStripSkin.DockStripGradient.StartColor = SystemColors.ControlLight;
            skin.AutoHideStripSkin.DockStripGradient.EndColor = SystemColors.ControlLight;
            skin.AutoHideStripSkin.TabGradient.TextColor = SystemColors.ControlDarkDark;

            skin.DockPaneStripSkin.DocumentGradient.DockStripGradient.StartColor = SystemColors.Control;
            skin.DockPaneStripSkin.DocumentGradient.DockStripGradient.EndColor = SystemColors.Control;
            skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.StartColor = SystemColors.ControlLightLight;
            skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.EndColor = SystemColors.ControlLightLight;
            skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.StartColor = SystemColors.ControlLight;
            skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.EndColor = SystemColors.ControlLight;

            skin.DockPaneStripSkin.ToolWindowGradient.DockStripGradient.StartColor = SystemColors.ControlLight;
            skin.DockPaneStripSkin.ToolWindowGradient.DockStripGradient.EndColor = SystemColors.ControlLight;

            skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.StartColor = SystemColors.Control;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.EndColor = SystemColors.Control;

            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.StartColor = Color.Transparent;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.EndColor = Color.Transparent;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.TextColor = SystemColors.ControlDarkDark;

            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.StartColor = SystemColors.GradientActiveCaption;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.EndColor = SystemColors.ActiveCaption;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.LinearGradientMode = LinearGradientMode.Vertical;
            skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.TextColor = SystemColors.ActiveCaptionText;

            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.StartColor = SystemColors.GradientInactiveCaption;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.EndColor = SystemColors.InactiveCaption;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.LinearGradientMode = LinearGradientMode.Vertical;
            skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.TextColor = SystemColors.InactiveCaptionText;

            return skin;
        }
Example #15
0
        private PPDEditorSkin()
        {
            OverLayColor                = Color.FromArgb(220, 255, 255, 255);
            FillColor                   = Color.FromArgb(255, 255, 255);
            BorderColor                 = Color.FromArgb(90, 90, 90);
            TransparentTextColor        = Color.Black;
            TimeLineCurrentTimeColor    = Color.Red;
            TimeLineHorizontalLineColor = Color.Gray;
            TimeLineSeekAreaColor       = Color.LightGray;
            TimeLineSeekAreaBorderColor = Color.Gray;
            TimeLineVerticalLineColor1  = Color.DarkSlateGray;
            TimeLineVerticalLineColor2  = Color.Silver;
            TimeLineVerticalLineColor3  = Color.FromArgb(204, 204, 204);
            TimeLineVerticalLineColor4  = Color.Green;
            TimeLineVerticalLineColor5  = Color.LightGreen;
            TimeLineBackGroundColors    = new Dictionary <int, Brush>();
            TimeLineHoldExtentColor     = Color.Orange;
            TimeLineRowHeight           = 26;
            TimeLineHeight              = 22;
            var sb = new SolidBrush(Color.FromArgb(128, Color.Yellow));

            for (int i = 0; i < 10; i++)
            {
                TimeLineBackGroundColors.Add(i, sb);
            }
            DisplayMode = BackGroundDisplayMode.right;
            var dockPanelSkin = new DockPanelSkin();

            dockPanelSkin.AutoHideStripSkin.DockStripGradient = CreateDockPanelGradient(81, 85, 94, 37, 42, 45, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
            dockPanelSkin.AutoHideStripSkin.TabGradient       = CreateTabGradient(147, 207, 208, 7, 117, 118, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
            dockPanelSkin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient         = CreateTabGradient(231, 245, 248, 0, 157, 188, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
            dockPanelSkin.DockPaneStripSkin.DocumentGradient.DockStripGradient         = CreateTabGradient(37, 42, 45, 81, 85, 94, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
            dockPanelSkin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient       = CreateTabGradient(147, 207, 208, 7, 117, 118, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
            dockPanelSkin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient   = CreateTabGradient(231, 245, 248, 0, 157, 188, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
            dockPanelSkin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient       = CreateTabGradient(231, 245, 248, 0, 157, 188, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
            dockPanelSkin.DockPaneStripSkin.ToolWindowGradient.DockStripGradient       = CreateTabGradient(81, 85, 94, 37, 42, 45, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
            dockPanelSkin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient = CreateTabGradient(147, 207, 208, 7, 117, 118, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
            dockPanelSkin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient     = CreateTabGradient(147, 207, 208, 7, 117, 118, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
            DockPanelSkin = dockPanelSkin;

            if (File.Exists("defaultskin.ini"))
            {
                var sr      = new StreamReader("defaultskin.ini");
                var setting = new SettingReader(sr.ReadToEnd());
                sr.Close();
                for (ButtonType type = ButtonType.Square; type < ButtonType.Start; type++)
                {
                    colorimagepaths[(int)type] = Utility.Path.Combine(setting.ReadString("Color" + type));
                    imagepaths[(int)type]      = Utility.Path.Combine(setting.ReadString(type.ToString()));
                    traceimagepaths[(int)type] = Utility.Path.Combine(setting.ReadString("Trace" + type));
                }
                colorimagepaths[(int)ButtonType.Start]                 = Utility.Path.Combine(setting["ColorSliderRight"]);
                colorimagepaths[(int)ButtonType.Start + 1]             = Utility.Path.Combine(setting["ColorSliderLeft"]);
                colorimagepaths[(int)ButtonType.Start + 2]             = Utility.Path.Combine(setting["ColorSliderRightExtra"]);
                colorimagepaths[(int)ButtonType.Start + 3]             = Utility.Path.Combine(setting["ColorSliderLeftExtra"]);
                imagepaths[(int)ButtonType.Start]                      = Utility.Path.Combine(setting["SliderRight"]);
                imagepaths[(int)ButtonType.Start + 1]                  = Utility.Path.Combine(setting["SliderLeft"]);
                imagepaths[(int)ButtonType.Start + 2]                  = Utility.Path.Combine(setting["SliderRightExtra"]);
                imagepaths[(int)ButtonType.Start + 3]                  = Utility.Path.Combine(setting["SliderLeftExtra"]);
                traceimagepaths[(int)ButtonType.Start]                 =
                    traceimagepaths[(int)ButtonType.Start + 1]         =
                        traceimagepaths[(int)ButtonType.Start + 2]     =
                            traceimagepaths[(int)ButtonType.Start + 3] = Utility.Path.Combine(setting["TraceSlider"]);
                longnotecirclepath = Utility.Path.Combine(setting.ReadString("LongNoteCirle"));
                _innerradius       = float.Parse(setting.ReadString("InnerRadius"));
                _outerradius       = float.Parse(setting.ReadString("OuterRadius"));
                axisimagepath      = Utility.Path.Combine(setting.ReadString("CircleAxis"));
                clockaxisimagepath = Utility.Path.Combine(setting.ReadString("ClockAxis"));
                for (MarkEvaluateType type = MarkEvaluateType.Cool; type <= MarkEvaluateType.Worst; type++)
                {
                    effectpaths[(int)type] = Utility.Path.Combine(setting.ReadString("Effect" + type));
                }
                appeareffectpath = Utility.Path.Combine(setting.ReadString("EffectAppear"));
                holdpath         = Utility.Path.Combine(setting.ReadString("Hold"));
                holdx            = float.Parse(setting.ReadString("HoldX"));
                holdy            = float.Parse(setting.ReadString("HoldY"));
            }
        }
		private static DockPanelSkin CreateCustom()
		{
			var skin = new DockPanelSkin();

			skin.AutoHideStripSkin.DockStripGradient.StartColor = Color.FromArgb(128, 128, 128);
			skin.AutoHideStripSkin.DockStripGradient.EndColor = Color.FromArgb(128, 128, 128);
			skin.AutoHideStripSkin.TabGradient.TextColor = Color.White;

			skin.DockPaneStripSkin.DocumentGradient.DockStripGradient.StartColor = Color.FromArgb(64, 64, 64);
			skin.DockPaneStripSkin.DocumentGradient.DockStripGradient.EndColor = Color.FromArgb(64, 64, 64);
			skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.StartColor = Color.White;
			skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.EndColor = Color.White;
			skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.TextColor = Color.Black;
			skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.StartColor = Color.FromArgb(100, 100, 100);
			skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.EndColor = Color.FromArgb(100, 100, 100);
			skin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient.TextColor = Color.White;

			skin.DockPaneStripSkin.ToolWindowGradient.DockStripGradient.StartColor = SystemColors.Control;
			skin.DockPaneStripSkin.ToolWindowGradient.DockStripGradient.EndColor = SystemColors.Control;

			skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.StartColor = SystemColors.ControlLightLight;
			skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.EndColor = SystemColors.ControlLightLight;
			skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.TextColor = Color.White;

			skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.StartColor = SystemColors.Control;
			skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.EndColor = SystemColors.Control;
			skin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient.TextColor = SystemColors.GrayText;

			skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.StartColor = Color.FromArgb(148, 168, 172);
			skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.EndColor = Color.FromArgb(148, 168, 172);
			skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.LinearGradientMode = LinearGradientMode.Vertical;
			skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.TextColor = Color.White;

			skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.StartColor = SystemColors.Control;
			skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.EndColor = SystemColors.ControlDark;
			skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.LinearGradientMode = LinearGradientMode.Vertical;
			skin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient.TextColor = Color.Black;

			return skin;
		}
Example #17
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            DockPanelSkin                   dockPanelSkin1                   = new DockPanelSkin();
            AutoHideStripSkin               autoHideStripSkin1               = new AutoHideStripSkin();
            DockPanelGradient               dockPanelGradient1               = new DockPanelGradient();
            TabGradient                     tabGradient1                     = new TabGradient();
            DockPaneStripSkin               dockPaneStripSkin1               = new DockPaneStripSkin();
            DockPaneStripGradient           dockPaneStripGradient1           = new DockPaneStripGradient();
            TabGradient                     tabGradient2                     = new TabGradient();
            DockPanelGradient               dockPanelGradient2               = new DockPanelGradient();
            TabGradient                     tabGradient3                     = new TabGradient();
            DockPaneStripToolWindowGradient dockPaneStripToolWindowGradient1 = new DockPaneStripToolWindowGradient();
            TabGradient                     tabGradient4                     = new TabGradient();
            TabGradient                     tabGradient5                     = new TabGradient();
            DockPanelGradient               dockPanelGradient3               = new DockPanelGradient();
            TabGradient                     tabGradient6                     = new TabGradient();
            TabGradient                     tabGradient7                     = new TabGradient();

            this.mainMenu                   = new System.Windows.Forms.MenuStrip();
            this.menuItemFile               = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemClose              = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemCloseAll           = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemCloseAllButThisOne = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItem4                  = new System.Windows.Forms.ToolStripSeparator();
            this.menuItemExit               = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemTools              = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemSchemaVS2012Light  = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemSchemaVS2005       = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemSchemaVS2003       = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemHelp               = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemAbout              = new System.Windows.Forms.ToolStripMenuItem();
            this.statusBar                  = new System.Windows.Forms.StatusStrip();
            this.dockPanel                  = new DockPanel();
            this.mainMenu.SuspendLayout();
            this.SuspendLayout();
            //
            // mainMenu
            //
            this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.menuItemFile,
                this.menuItemTools,
                this.menuItemHelp
            });
            this.mainMenu.Location = new System.Drawing.Point(0, 0);
            this.mainMenu.Name     = "mainMenu";
            this.mainMenu.Size     = new System.Drawing.Size(784, 25);
            this.mainMenu.TabIndex = 7;
            //
            // menuItemFile
            //
            this.menuItemFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.menuItemClose,
                this.menuItemCloseAll,
                this.menuItemCloseAllButThisOne,
                this.menuItem4,
                this.menuItemExit
            });
            this.menuItemFile.Name = "menuItemFile";
            this.menuItemFile.Size = new System.Drawing.Size(44, 21);
            this.menuItemFile.Text = "系统";
            //
            // menuItemClose
            //
            this.menuItemClose.Name   = "menuItemClose";
            this.menuItemClose.Size   = new System.Drawing.Size(172, 22);
            this.menuItemClose.Text   = "关闭";
            this.menuItemClose.Click += new System.EventHandler(this.menuItemClose_Click);
            //
            // menuItemCloseAll
            //
            this.menuItemCloseAll.Name   = "menuItemCloseAll";
            this.menuItemCloseAll.Size   = new System.Drawing.Size(172, 22);
            this.menuItemCloseAll.Text   = "关闭所有";
            this.menuItemCloseAll.Click += new System.EventHandler(this.menuItemCloseAll_Click);
            //
            // menuItemCloseAllButThisOne
            //
            this.menuItemCloseAllButThisOne.Name   = "menuItemCloseAllButThisOne";
            this.menuItemCloseAllButThisOne.Size   = new System.Drawing.Size(172, 22);
            this.menuItemCloseAllButThisOne.Text   = "除此之外全部关闭";
            this.menuItemCloseAllButThisOne.Click += new System.EventHandler(this.menuItemCloseAllButThisOne_Click);
            //
            // menuItem4
            //
            this.menuItem4.Name = "menuItem4";
            this.menuItem4.Size = new System.Drawing.Size(169, 6);
            //
            // menuItemExit
            //
            this.menuItemExit.Name   = "menuItemExit";
            this.menuItemExit.Size   = new System.Drawing.Size(172, 22);
            this.menuItemExit.Text   = "退出";
            this.menuItemExit.Click += new System.EventHandler(this.menuItemExit_Click);
            //
            // menuItemTools
            //
            this.menuItemTools.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.menuItemSchemaVS2012Light,
                this.menuItemSchemaVS2005,
                this.menuItemSchemaVS2003
            });
            this.menuItemTools.MergeIndex = 2;
            this.menuItemTools.Name       = "menuItemTools";
            this.menuItemTools.Size       = new System.Drawing.Size(44, 21);
            this.menuItemTools.Text       = "样式";
            //
            // menuItemSchemaVS2012Light
            //
            this.menuItemSchemaVS2012Light.Name   = "menuItemSchemaVS2012Light";
            this.menuItemSchemaVS2012Light.Size   = new System.Drawing.Size(203, 22);
            this.menuItemSchemaVS2012Light.Text   = "Schema: VS2012 Light";
            this.menuItemSchemaVS2012Light.Click += new System.EventHandler(this.SetSchema);
            //
            // menuItemSchemaVS2005
            //
            this.menuItemSchemaVS2005.Checked    = true;
            this.menuItemSchemaVS2005.CheckState = System.Windows.Forms.CheckState.Checked;
            this.menuItemSchemaVS2005.Name       = "menuItemSchemaVS2005";
            this.menuItemSchemaVS2005.Size       = new System.Drawing.Size(203, 22);
            this.menuItemSchemaVS2005.Text       = "Schema: VS200&5";
            this.menuItemSchemaVS2005.Click     += new System.EventHandler(this.SetSchema);
            //
            // menuItemSchemaVS2003
            //
            this.menuItemSchemaVS2003.Name   = "menuItemSchemaVS2003";
            this.menuItemSchemaVS2003.Size   = new System.Drawing.Size(203, 22);
            this.menuItemSchemaVS2003.Text   = "Schema: VS200&3";
            this.menuItemSchemaVS2003.Click += new System.EventHandler(this.SetSchema);
            //
            // menuItemHelp
            //
            this.menuItemHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.menuItemAbout
            });
            this.menuItemHelp.MergeIndex = 3;
            this.menuItemHelp.Name       = "menuItemHelp";
            this.menuItemHelp.Size       = new System.Drawing.Size(44, 21);
            this.menuItemHelp.Text       = "帮助";
            //
            // menuItemAbout
            //
            this.menuItemAbout.Name   = "menuItemAbout";
            this.menuItemAbout.Size   = new System.Drawing.Size(152, 22);
            this.menuItemAbout.Text   = "关于";
            this.menuItemAbout.Click += new System.EventHandler(this.menuItemAbout_Click);
            //
            // statusBar
            //
            this.statusBar.Location = new System.Drawing.Point(0, 539);
            this.statusBar.Name     = "statusBar";
            this.statusBar.Size     = new System.Drawing.Size(784, 22);
            this.statusBar.TabIndex = 4;
            //
            // dockPanel
            //
            this.dockPanel.Dock                                      = System.Windows.Forms.DockStyle.Fill;
            this.dockPanel.DockBackColor                             = System.Drawing.SystemColors.AppWorkspace;
            this.dockPanel.DockBottomPortion                         = 150D;
            this.dockPanel.DockLeftPortion                           = 200D;
            this.dockPanel.DockRightPortion                          = 200D;
            this.dockPanel.DockTopPortion                            = 150D;
            this.dockPanel.Font                                      = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(0)));
            this.dockPanel.Location                                  = new System.Drawing.Point(0, 25);
            this.dockPanel.Name                                      = "dockPanel";
            this.dockPanel.RightToLeftLayout                         = true;
            this.dockPanel.Size                                      = new System.Drawing.Size(784, 514);
            dockPanelGradient1.EndColor                              = System.Drawing.SystemColors.ControlLight;
            dockPanelGradient1.StartColor                            = System.Drawing.SystemColors.ControlLight;
            autoHideStripSkin1.DockStripGradient                     = dockPanelGradient1;
            tabGradient1.EndColor                                    = System.Drawing.SystemColors.Control;
            tabGradient1.StartColor                                  = System.Drawing.SystemColors.Control;
            tabGradient1.TextColor                                   = System.Drawing.SystemColors.ControlDarkDark;
            autoHideStripSkin1.TabGradient                           = tabGradient1;
            autoHideStripSkin1.TextFont                              = new System.Drawing.Font("Segoe UI", 9F);
            dockPanelSkin1.AutoHideStripSkin                         = autoHideStripSkin1;
            tabGradient2.EndColor                                    = System.Drawing.SystemColors.ControlLightLight;
            tabGradient2.StartColor                                  = System.Drawing.SystemColors.ControlLightLight;
            tabGradient2.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripGradient1.ActiveTabGradient                 = tabGradient2;
            dockPanelGradient2.EndColor                              = System.Drawing.SystemColors.Control;
            dockPanelGradient2.StartColor                            = System.Drawing.SystemColors.Control;
            dockPaneStripGradient1.DockStripGradient                 = dockPanelGradient2;
            tabGradient3.EndColor                                    = System.Drawing.SystemColors.ControlLight;
            tabGradient3.StartColor                                  = System.Drawing.SystemColors.ControlLight;
            tabGradient3.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripGradient1.InactiveTabGradient               = tabGradient3;
            dockPaneStripSkin1.DocumentGradient                      = dockPaneStripGradient1;
            dockPaneStripSkin1.TextFont                              = new System.Drawing.Font("Segoe UI", 9F);
            tabGradient4.EndColor                                    = System.Drawing.SystemColors.ActiveCaption;
            tabGradient4.LinearGradientMode                          = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            tabGradient4.StartColor                                  = System.Drawing.SystemColors.GradientActiveCaption;
            tabGradient4.TextColor                                   = System.Drawing.SystemColors.ActiveCaptionText;
            dockPaneStripToolWindowGradient1.ActiveCaptionGradient   = tabGradient4;
            tabGradient5.EndColor                                    = System.Drawing.SystemColors.Control;
            tabGradient5.StartColor                                  = System.Drawing.SystemColors.Control;
            tabGradient5.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripToolWindowGradient1.ActiveTabGradient       = tabGradient5;
            dockPanelGradient3.EndColor                              = System.Drawing.SystemColors.ControlLight;
            dockPanelGradient3.StartColor                            = System.Drawing.SystemColors.ControlLight;
            dockPaneStripToolWindowGradient1.DockStripGradient       = dockPanelGradient3;
            tabGradient6.EndColor                                    = System.Drawing.SystemColors.InactiveCaption;
            tabGradient6.LinearGradientMode                          = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            tabGradient6.StartColor                                  = System.Drawing.SystemColors.GradientInactiveCaption;
            tabGradient6.TextColor                                   = System.Drawing.SystemColors.InactiveCaptionText;
            dockPaneStripToolWindowGradient1.InactiveCaptionGradient = tabGradient6;
            tabGradient7.EndColor                                    = System.Drawing.Color.Transparent;
            tabGradient7.StartColor                                  = System.Drawing.Color.Transparent;
            tabGradient7.TextColor                                   = System.Drawing.SystemColors.ControlDarkDark;
            dockPaneStripToolWindowGradient1.InactiveTabGradient     = tabGradient7;
            dockPaneStripSkin1.ToolWindowGradient                    = dockPaneStripToolWindowGradient1;
            dockPanelSkin1.DockPaneStripSkin                         = dockPaneStripSkin1;
            this.dockPanel.TabIndex                                  = 0;
            //
            // FrmTreeMainForm
            //
            this.ClientSize = new System.Drawing.Size(784, 561);
            this.Controls.Add(this.dockPanel);
            this.Controls.Add(this.mainMenu);
            this.Controls.Add(this.statusBar);
            this.Font            = new System.Drawing.Font("微软雅黑", 9F);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.IsMdiContainer  = true;
            this.MainMenuStrip   = this.mainMenu;
            this.Name            = "FrmTreeMainForm";
            this.ShowIcon        = false;
            this.Text            = "主界面";
            this.WindowState     = System.Windows.Forms.FormWindowState.Maximized;
            this.mainMenu.ResumeLayout(false);
            this.mainMenu.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Example #18
0
        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            DockPanelSkin                   dockPanelSkin1                   = new DockPanelSkin();
            AutoHideStripSkin               autoHideStripSkin1               = new AutoHideStripSkin();
            DockPanelGradient               dockPanelGradient1               = new DockPanelGradient();
            TabGradient                     tabGradient1                     = new TabGradient();
            DockPaneStripSkin               dockPaneStripSkin1               = new DockPaneStripSkin();
            DockPaneStripGradient           dockPaneStripGradient1           = new DockPaneStripGradient();
            TabGradient                     tabGradient2                     = new TabGradient();
            DockPanelGradient               dockPanelGradient2               = new DockPanelGradient();
            TabGradient                     tabGradient3                     = new TabGradient();
            DockPaneStripToolWindowGradient dockPaneStripToolWindowGradient1 = new DockPaneStripToolWindowGradient();
            TabGradient                     tabGradient4                     = new TabGradient();
            TabGradient                     tabGradient5                     = new TabGradient();
            DockPanelGradient               dockPanelGradient3               = new DockPanelGradient();
            TabGradient                     tabGradient6                     = new TabGradient();
            TabGradient                     tabGradient7                     = new TabGradient();

            this.menuStrip  = new System.Windows.Forms.MenuStrip();
            this.dockPanel1 = new DockPanel();
            this.SuspendLayout();
            //
            // menuStrip
            //
            this.menuStrip.Location = new System.Drawing.Point(0, 0);
            this.menuStrip.Name     = "menuStrip";
            this.menuStrip.Size     = new System.Drawing.Size(884, 24);
            this.menuStrip.TabIndex = 7;
            this.menuStrip.Text     = "menuStrip1";
            //
            // dockPanel1
            //
            this.dockPanel1.Dock                                     = System.Windows.Forms.DockStyle.Fill;
            this.dockPanel1.Location                                 = new System.Drawing.Point(0, 24);
            this.dockPanel1.Name                                     = "dockPanel1";
            this.dockPanel1.RightToLeftLayout                        = true;
            this.dockPanel1.Size                                     = new System.Drawing.Size(884, 537);
            dockPanelGradient1.EndColor                              = System.Drawing.SystemColors.ControlLight;
            dockPanelGradient1.StartColor                            = System.Drawing.SystemColors.ControlLight;
            autoHideStripSkin1.DockStripGradient                     = dockPanelGradient1;
            tabGradient1.EndColor                                    = System.Drawing.SystemColors.Control;
            tabGradient1.StartColor                                  = System.Drawing.SystemColors.Control;
            tabGradient1.TextColor                                   = System.Drawing.SystemColors.ControlDarkDark;
            autoHideStripSkin1.TabGradient                           = tabGradient1;
            autoHideStripSkin1.TextFont                              = new System.Drawing.Font("Microsoft YaHei UI", 9F);
            dockPanelSkin1.AutoHideStripSkin                         = autoHideStripSkin1;
            tabGradient2.EndColor                                    = System.Drawing.SystemColors.ControlLightLight;
            tabGradient2.StartColor                                  = System.Drawing.SystemColors.ControlLightLight;
            tabGradient2.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripGradient1.ActiveTabGradient                 = tabGradient2;
            dockPanelGradient2.EndColor                              = System.Drawing.SystemColors.Control;
            dockPanelGradient2.StartColor                            = System.Drawing.SystemColors.Control;
            dockPaneStripGradient1.DockStripGradient                 = dockPanelGradient2;
            tabGradient3.EndColor                                    = System.Drawing.SystemColors.ControlLight;
            tabGradient3.StartColor                                  = System.Drawing.SystemColors.ControlLight;
            tabGradient3.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripGradient1.InactiveTabGradient               = tabGradient3;
            dockPaneStripSkin1.DocumentGradient                      = dockPaneStripGradient1;
            dockPaneStripSkin1.TextFont                              = new System.Drawing.Font("Microsoft YaHei UI", 9F);
            tabGradient4.EndColor                                    = System.Drawing.SystemColors.ActiveCaption;
            tabGradient4.LinearGradientMode                          = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            tabGradient4.StartColor                                  = System.Drawing.SystemColors.GradientActiveCaption;
            tabGradient4.TextColor                                   = System.Drawing.SystemColors.ActiveCaptionText;
            dockPaneStripToolWindowGradient1.ActiveCaptionGradient   = tabGradient4;
            tabGradient5.EndColor                                    = System.Drawing.SystemColors.Control;
            tabGradient5.StartColor                                  = System.Drawing.SystemColors.Control;
            tabGradient5.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripToolWindowGradient1.ActiveTabGradient       = tabGradient5;
            dockPanelGradient3.EndColor                              = System.Drawing.SystemColors.ControlLight;
            dockPanelGradient3.StartColor                            = System.Drawing.SystemColors.ControlLight;
            dockPaneStripToolWindowGradient1.DockStripGradient       = dockPanelGradient3;
            tabGradient6.EndColor                                    = System.Drawing.SystemColors.InactiveCaption;
            tabGradient6.LinearGradientMode                          = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            tabGradient6.StartColor                                  = System.Drawing.SystemColors.GradientInactiveCaption;
            tabGradient6.TextColor                                   = System.Drawing.SystemColors.InactiveCaptionText;
            dockPaneStripToolWindowGradient1.InactiveCaptionGradient = tabGradient6;
            tabGradient7.EndColor                                    = System.Drawing.Color.Transparent;
            tabGradient7.StartColor                                  = System.Drawing.Color.Transparent;
            tabGradient7.TextColor                                   = System.Drawing.SystemColors.ControlDarkDark;
            dockPaneStripToolWindowGradient1.InactiveTabGradient     = tabGradient7;
            dockPaneStripSkin1.ToolWindowGradient                    = dockPaneStripToolWindowGradient1;
            dockPanelSkin1.DockPaneStripSkin                         = dockPaneStripSkin1;
            this.dockPanel1.TabIndex                                 = 13;
            //
            // FrmMainDemo
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(884, 561);
            this.Controls.Add(this.dockPanel1);
            this.Controls.Add(this.menuStrip);
            this.Font              = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.IsMdiContainer    = true;
            this.MainMenuStrip     = this.menuStrip;
            this.Name              = "FrmMainDemo";
            this.RightToLeftLayout = true;
            this.StartPosition     = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text              = "代码测试主窗体";
            this.Load             += new System.EventHandler(this.FrmMainDemo_Load);
            this.Shown            += new System.EventHandler(this.FrmMainDemo_Shown);
            this.ResumeLayout(false);
            this.PerformLayout();
        }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            DockPanelSkin                   dockPanelSkin1                   = new DockPanelSkin();
            AutoHideStripSkin               autoHideStripSkin1               = new AutoHideStripSkin();
            DockPanelGradient               dockPanelGradient1               = new DockPanelGradient();
            TabGradient                     tabGradient1                     = new TabGradient();
            DockPaneStripSkin               dockPaneStripSkin1               = new DockPaneStripSkin();
            DockPaneStripGradient           dockPaneStripGradient1           = new DockPaneStripGradient();
            TabGradient                     tabGradient2                     = new TabGradient();
            DockPanelGradient               dockPanelGradient2               = new DockPanelGradient();
            TabGradient                     tabGradient3                     = new TabGradient();
            DockPaneStripToolWindowGradient dockPaneStripToolWindowGradient1 = new DockPaneStripToolWindowGradient();
            TabGradient                     tabGradient4                     = new TabGradient();
            TabGradient                     tabGradient5                     = new TabGradient();
            DockPanelGradient               dockPanelGradient3               = new DockPanelGradient();
            TabGradient                     tabGradient6                     = new TabGradient();
            TabGradient                     tabGradient7                     = new TabGradient();

            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmCodeMakerMain));
            this.menuStrip1              = new System.Windows.Forms.MenuStrip();
            this.系统ToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
            this.退出ToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
            this.工具ToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
            this.命名设置ToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.实体批量生成ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.帮助ToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
            this.关于ToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
            this.dockPanel    = new DockPanel();
            this.imgList      = new System.Windows.Forms.ImageList(this.components);
            this.contextMenu  = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.toolBar      = new System.Windows.Forms.ToolStrip();
            this.cmdSetting   = new System.Windows.Forms.ToolStripButton();
            this.cmdCodeMaker = new System.Windows.Forms.ToolStripButton();
            this.menuStrip1.SuspendLayout();
            this.toolBar.SuspendLayout();
            this.SuspendLayout();
            //
            // menuStrip1
            //
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.系统ToolStripMenuItem,
                this.工具ToolStripMenuItem,
                this.帮助ToolStripMenuItem
            });
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name     = "menuStrip1";
            this.menuStrip1.Size     = new System.Drawing.Size(884, 25);
            this.menuStrip1.TabIndex = 0;
            this.menuStrip1.Text     = "menuStrip1";
            //
            // 系统ToolStripMenuItem
            //
            this.系统ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.退出ToolStripMenuItem
            });
            this.系统ToolStripMenuItem.Name = "系统ToolStripMenuItem";
            this.系统ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
            this.系统ToolStripMenuItem.Text = "系统";
            //
            // 退出ToolStripMenuItem
            //
            this.退出ToolStripMenuItem.Name   = "退出ToolStripMenuItem";
            this.退出ToolStripMenuItem.Size   = new System.Drawing.Size(100, 22);
            this.退出ToolStripMenuItem.Text   = "退出";
            this.退出ToolStripMenuItem.Click += new System.EventHandler(this.退出ToolStripMenuItem_Click);
            //
            // 工具ToolStripMenuItem
            //
            this.工具ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.命名设置ToolStripMenuItem,
                this.实体批量生成ToolStripMenuItem
            });
            this.工具ToolStripMenuItem.Name = "工具ToolStripMenuItem";
            this.工具ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
            this.工具ToolStripMenuItem.Text = "工具";
            //
            // 命名设置ToolStripMenuItem
            //
            this.命名设置ToolStripMenuItem.Name   = "命名设置ToolStripMenuItem";
            this.命名设置ToolStripMenuItem.Size   = new System.Drawing.Size(152, 22);
            this.命名设置ToolStripMenuItem.Text   = "命名设置";
            this.命名设置ToolStripMenuItem.Click += new System.EventHandler(this.命名设置ToolStripMenuItem_Click);
            //
            // 实体批量生成ToolStripMenuItem
            //
            this.实体批量生成ToolStripMenuItem.Name   = "实体批量生成ToolStripMenuItem";
            this.实体批量生成ToolStripMenuItem.Size   = new System.Drawing.Size(152, 22);
            this.实体批量生成ToolStripMenuItem.Text   = "实体批量生成";
            this.实体批量生成ToolStripMenuItem.Click += new System.EventHandler(this.实体批量生成ToolStripMenuItem_Click);
            //
            // 帮助ToolStripMenuItem
            //
            this.帮助ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.关于ToolStripMenuItem
            });
            this.帮助ToolStripMenuItem.Name = "帮助ToolStripMenuItem";
            this.帮助ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
            this.帮助ToolStripMenuItem.Text = "帮助";
            //
            // 关于ToolStripMenuItem
            //
            this.关于ToolStripMenuItem.Name   = "关于ToolStripMenuItem";
            this.关于ToolStripMenuItem.Size   = new System.Drawing.Size(100, 22);
            this.关于ToolStripMenuItem.Text   = "关于";
            this.关于ToolStripMenuItem.Click += new System.EventHandler(this.关于ToolStripMenuItem_Click);
            //
            // dockPanel
            //
            this.dockPanel.Dock                                      = System.Windows.Forms.DockStyle.Fill;
            this.dockPanel.Location                                  = new System.Drawing.Point(0, 105);
            this.dockPanel.Name                                      = "dockPanel";
            this.dockPanel.Size                                      = new System.Drawing.Size(884, 456);
            dockPanelGradient1.EndColor                              = System.Drawing.SystemColors.ControlLight;
            dockPanelGradient1.StartColor                            = System.Drawing.SystemColors.ControlLight;
            autoHideStripSkin1.DockStripGradient                     = dockPanelGradient1;
            tabGradient1.EndColor                                    = System.Drawing.SystemColors.Control;
            tabGradient1.StartColor                                  = System.Drawing.SystemColors.Control;
            tabGradient1.TextColor                                   = System.Drawing.SystemColors.ControlDarkDark;
            autoHideStripSkin1.TabGradient                           = tabGradient1;
            autoHideStripSkin1.TextFont                              = new System.Drawing.Font("微软雅黑", 9F);
            dockPanelSkin1.AutoHideStripSkin                         = autoHideStripSkin1;
            tabGradient2.EndColor                                    = System.Drawing.SystemColors.ControlLightLight;
            tabGradient2.StartColor                                  = System.Drawing.SystemColors.ControlLightLight;
            tabGradient2.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripGradient1.ActiveTabGradient                 = tabGradient2;
            dockPanelGradient2.EndColor                              = System.Drawing.SystemColors.Control;
            dockPanelGradient2.StartColor                            = System.Drawing.SystemColors.Control;
            dockPaneStripGradient1.DockStripGradient                 = dockPanelGradient2;
            tabGradient3.EndColor                                    = System.Drawing.SystemColors.ControlLight;
            tabGradient3.StartColor                                  = System.Drawing.SystemColors.ControlLight;
            tabGradient3.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripGradient1.InactiveTabGradient               = tabGradient3;
            dockPaneStripSkin1.DocumentGradient                      = dockPaneStripGradient1;
            dockPaneStripSkin1.TextFont                              = new System.Drawing.Font("微软雅黑", 9F);
            tabGradient4.EndColor                                    = System.Drawing.SystemColors.ActiveCaption;
            tabGradient4.LinearGradientMode                          = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            tabGradient4.StartColor                                  = System.Drawing.SystemColors.GradientActiveCaption;
            tabGradient4.TextColor                                   = System.Drawing.SystemColors.ActiveCaptionText;
            dockPaneStripToolWindowGradient1.ActiveCaptionGradient   = tabGradient4;
            tabGradient5.EndColor                                    = System.Drawing.SystemColors.Control;
            tabGradient5.StartColor                                  = System.Drawing.SystemColors.Control;
            tabGradient5.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripToolWindowGradient1.ActiveTabGradient       = tabGradient5;
            dockPanelGradient3.EndColor                              = System.Drawing.SystemColors.ControlLight;
            dockPanelGradient3.StartColor                            = System.Drawing.SystemColors.ControlLight;
            dockPaneStripToolWindowGradient1.DockStripGradient       = dockPanelGradient3;
            tabGradient6.EndColor                                    = System.Drawing.SystemColors.InactiveCaption;
            tabGradient6.LinearGradientMode                          = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            tabGradient6.StartColor                                  = System.Drawing.SystemColors.GradientInactiveCaption;
            tabGradient6.TextColor                                   = System.Drawing.SystemColors.InactiveCaptionText;
            dockPaneStripToolWindowGradient1.InactiveCaptionGradient = tabGradient6;
            tabGradient7.EndColor                                    = System.Drawing.Color.Transparent;
            tabGradient7.StartColor                                  = System.Drawing.Color.Transparent;
            tabGradient7.TextColor                                   = System.Drawing.SystemColors.ControlDarkDark;
            dockPaneStripToolWindowGradient1.InactiveTabGradient     = tabGradient7;
            dockPaneStripSkin1.ToolWindowGradient                    = dockPaneStripToolWindowGradient1;
            dockPanelSkin1.DockPaneStripSkin                         = dockPaneStripSkin1;
            this.dockPanel.TabIndex                                  = 2;
            //
            // imgList
            //
            this.imgList.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
            this.imgList.ImageSize        = new System.Drawing.Size(16, 16);
            this.imgList.TransparentColor = System.Drawing.Color.Transparent;
            //
            // contextMenu
            //
            this.contextMenu.Name = "contextMenu";
            this.contextMenu.Size = new System.Drawing.Size(61, 4);
            //
            // toolBar
            //
            this.toolBar.AutoSize  = false;
            this.toolBar.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.cmdSetting,
                this.cmdCodeMaker
            });
            this.toolBar.Location   = new System.Drawing.Point(0, 25);
            this.toolBar.Name       = "toolBar";
            this.toolBar.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolBar.Size       = new System.Drawing.Size(884, 80);
            this.toolBar.TabIndex   = 17;
            //
            // cmdSetting
            //
            this.cmdSetting.AutoSize          = false;
            this.cmdSetting.Image             = ((System.Drawing.Image)(resources.GetObject("cmdSetting.Image")));
            this.cmdSetting.ImageAlign        = System.Drawing.ContentAlignment.TopCenter;
            this.cmdSetting.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cmdSetting.Name              = "cmdSetting";
            this.cmdSetting.Size              = new System.Drawing.Size(80, 55);
            this.cmdSetting.Text              = "基础设置";
            this.cmdSetting.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
            this.cmdSetting.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.cmdSetting.Click            += new System.EventHandler(this.cmdSetting_Click);
            //
            // cmdCodeMaker
            //
            this.cmdCodeMaker.AutoSize          = false;
            this.cmdCodeMaker.Image             = ((System.Drawing.Image)(resources.GetObject("cmdCodeMaker.Image")));
            this.cmdCodeMaker.ImageAlign        = System.Drawing.ContentAlignment.TopCenter;
            this.cmdCodeMaker.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cmdCodeMaker.Name              = "cmdCodeMaker";
            this.cmdCodeMaker.Size              = new System.Drawing.Size(80, 55);
            this.cmdCodeMaker.Text              = "代码生成";
            this.cmdCodeMaker.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
            this.cmdCodeMaker.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.cmdCodeMaker.Click            += new System.EventHandler(this.cmdCodeMaker_Click);
            //
            // FrmCodeMakerMain
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(884, 561);
            this.Controls.Add(this.dockPanel);
            this.Controls.Add(this.toolBar);
            this.Controls.Add(this.menuStrip1);
            this.Font           = new System.Drawing.Font("微软雅黑", 9F);
            this.IsMdiContainer = true;
            this.MainMenuStrip  = this.menuStrip1;
            this.Margin         = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.Name           = "FrmCodeMakerMain";
            this.ShowIcon       = false;
            this.StartPosition  = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text           = "代码生成";
            this.WindowState    = System.Windows.Forms.FormWindowState.Maximized;
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.toolBar.ResumeLayout(false);
            this.toolBar.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Example #20
0
        private void InitializeComponent()
        {
            DockPanelSkin                   dockPanelSkin            = new DockPanelSkin();
            AutoHideStripSkin               autoHideStripSkin        = new AutoHideStripSkin();
            DockPaneStripSkin               dockPaneStripSkin        = new DockPaneStripSkin();
            DockPaneStripGradient           paneStripGradient        = new DockPaneStripGradient();
            DockPaneStripToolWindowGradient toolWindowGradient       = new DockPaneStripToolWindowGradient();
            ComponentResourceManager        componentResourceManager = new ComponentResourceManager(typeof(GlassesEditor));

            this.panMain = new DockPanel();
            this.SuspendLayout();
            this.panMain.ActiveAutoHideContent = (IDockContent)null;
            this.panMain.Dock            = DockStyle.Fill;
            this.panMain.DockBackColor   = SystemColors.Control;
            this.panMain.DockLeftPortion = 0.15;
            this.panMain.DocumentStyle   = DocumentStyle.DockingWindow;
            this.panMain.Location        = new Point(0, 0);
            this.panMain.Name            = "panMain";
            this.panMain.Size            = new Size(1183, 580);

            DockPanelGradient hideStripGradient = new DockPanelGradient();

            hideStripGradient.EndColor          = SystemColors.ControlLight;
            hideStripGradient.StartColor        = SystemColors.ControlLight;
            autoHideStripSkin.DockStripGradient = hideStripGradient;

            TabGradient tabGradient = new TabGradient();

            tabGradient.EndColor            = SystemColors.Control;
            tabGradient.StartColor          = SystemColors.Control;
            tabGradient.TextColor           = SystemColors.ControlDarkDark;
            autoHideStripSkin.TabGradient   = tabGradient;
            autoHideStripSkin.TextFont      = new Font("Segoe UI", 9f);
            dockPanelSkin.AutoHideStripSkin = autoHideStripSkin;

            TabGradient activeTabGradient = new TabGradient();

            activeTabGradient.EndColor          = SystemColors.ControlLightLight;
            activeTabGradient.StartColor        = SystemColors.ControlLightLight;
            activeTabGradient.TextColor         = SystemColors.ControlText;
            paneStripGradient.ActiveTabGradient = activeTabGradient;

            DockPanelGradient dockStripGradient = new DockPanelGradient();

            dockStripGradient.EndColor          = SystemColors.Control;
            dockStripGradient.StartColor        = SystemColors.Control;
            paneStripGradient.DockStripGradient = dockStripGradient;

            TabGradient inactiveTabGradient = new TabGradient();

            inactiveTabGradient.EndColor          = SystemColors.ControlLightLight;
            inactiveTabGradient.StartColor        = SystemColors.ControlLightLight;
            inactiveTabGradient.TextColor         = SystemColors.ControlText;
            paneStripGradient.InactiveTabGradient = inactiveTabGradient;
            dockPaneStripSkin.DocumentGradient    = paneStripGradient;
            dockPaneStripSkin.TextFont            = new Font("Segoe UI", 9f);

            TabGradient activeCaptionGradient = new TabGradient();

            activeCaptionGradient.EndColor           = SystemColors.ActiveCaption;
            activeCaptionGradient.LinearGradientMode = LinearGradientMode.Vertical;
            activeCaptionGradient.StartColor         = SystemColors.GradientActiveCaption;
            activeCaptionGradient.TextColor          = SystemColors.ActiveCaptionText;
            toolWindowGradient.ActiveCaptionGradient = activeCaptionGradient;

            TabGradient toolActiveGradient = new TabGradient();

            toolActiveGradient.EndColor          = SystemColors.Control;
            toolActiveGradient.StartColor        = SystemColors.Control;
            toolActiveGradient.TextColor         = SystemColors.ControlText;
            toolWindowGradient.ActiveTabGradient = toolActiveGradient;

            DockPanelGradient toolStripGradient = new DockPanelGradient();

            toolStripGradient.EndColor           = SystemColors.ControlLight;
            toolStripGradient.StartColor         = SystemColors.ControlLight;
            toolWindowGradient.DockStripGradient = toolStripGradient;

            TabGradient toolInactiveGradient = new TabGradient();

            toolInactiveGradient.EndColor              = SystemColors.InactiveCaption;
            toolInactiveGradient.LinearGradientMode    = LinearGradientMode.Vertical;
            toolInactiveGradient.StartColor            = SystemColors.GradientInactiveCaption;
            toolInactiveGradient.TextColor             = SystemColors.InactiveCaptionText;
            toolWindowGradient.InactiveCaptionGradient = toolInactiveGradient;

            TabGradient toolInactiveTabGradient = new TabGradient();

            toolInactiveTabGradient.EndColor       = Color.Transparent;
            toolInactiveTabGradient.StartColor     = Color.Transparent;
            toolInactiveTabGradient.TextColor      = SystemColors.ControlDarkDark;
            toolWindowGradient.InactiveTabGradient = toolInactiveTabGradient;

            dockPaneStripSkin.ToolWindowGradient = toolWindowGradient;
            dockPanelSkin.DockPaneStripSkin      = dockPaneStripSkin;
            this.panMain.Skin        = dockPanelSkin;
            this.panMain.TabIndex    = 0;
            this.AutoScaleDimensions = new SizeF(6f, 13f);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.ClientSize          = new Size(1183, 580);
            this.Controls.Add(this.panMain);
            // this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
            this.IsMdiContainer = true;
            this.Name           = "TheDivinityEngine";
            this.Text           = "The Divinity Engine - Pluggable Edition :)";
            this.WindowState    = FormWindowState.Maximized;
            this.Load          += new EventHandler(GlassesEditorLoad);
            this.KeyPress      += new KeyPressEventHandler(GlassesEditor_KeyPress);
            this.KeyUp         += new KeyEventHandler(GlassesEditor_KeyUp);
            this.FormClosing   += new FormClosingEventHandler(GlassesEditor_FormClosing);
            this.KeyDown       += new KeyEventHandler(GlassesEditor_KeyDown);
            this.ResumeLayout(false);
        }
Example #21
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources         = new System.ComponentModel.ComponentResourceManager(typeof(MainForm2));
            DockPanelSkin                   dockPanelSkin1                   = new DockPanelSkin();
            AutoHideStripSkin               autoHideStripSkin1               = new AutoHideStripSkin();
            DockPanelGradient               dockPanelGradient1               = new DockPanelGradient();
            TabGradient                     tabGradient1                     = new TabGradient();
            DockPaneStripSkin               dockPaneStripSkin1               = new DockPaneStripSkin();
            DockPaneStripGradient           dockPaneStripGradient1           = new DockPaneStripGradient();
            TabGradient                     tabGradient2                     = new TabGradient();
            DockPanelGradient               dockPanelGradient2               = new DockPanelGradient();
            TabGradient                     tabGradient3                     = new TabGradient();
            DockPaneStripToolWindowGradient dockPaneStripToolWindowGradient1 = new DockPaneStripToolWindowGradient();
            TabGradient                     tabGradient4                     = new TabGradient();
            TabGradient                     tabGradient5                     = new TabGradient();
            DockPanelGradient               dockPanelGradient3               = new DockPanelGradient();
            TabGradient                     tabGradient6                     = new TabGradient();
            TabGradient                     tabGradient7                     = new TabGradient();

            this.mainMenu                   = new System.Windows.Forms.MenuStrip();
            this.menuItemFile               = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemNew                = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemOpen               = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemClose              = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemCloseAll           = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemCloseAllButThisOne = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItem4                  = new System.Windows.Forms.ToolStripSeparator();
            this.menuItemExit               = new System.Windows.Forms.ToolStripMenuItem();
            this.exitWithoutSavingLayout    = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemView               = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemSolutionExplorer   = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemPropertyWindow     = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemToolbox            = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemOutputWindow       = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemTaskList           = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItem1                  = new System.Windows.Forms.ToolStripSeparator();
            this.menuItemToolBar            = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemStatusBar          = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItem2                  = new System.Windows.Forms.ToolStripSeparator();
            this.menuItemLayoutByCode       = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemLayoutByXml        = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemTools              = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemLockLayout         = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemShowDocumentIcon   = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItem3                  = new System.Windows.Forms.ToolStripSeparator();
            this.menuItemSchemaVS2005       = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemSchemaVS2003       = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItem6                  = new System.Windows.Forms.ToolStripSeparator();
            this.menuItemDockingMdi         = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemDockingSdi         = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemDockingWindow      = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemSystemMdi          = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItem5                  = new System.Windows.Forms.ToolStripSeparator();
            this.showRightToLeft            = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemWindow             = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemNewWindow          = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemHelp               = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemAbout              = new System.Windows.Forms.ToolStripMenuItem();
            this.imageList                  = new System.Windows.Forms.ImageList(this.components);
            this.tableLayoutPanel1          = new System.Windows.Forms.TableLayoutPanel();
            this.toolBar                       = new System.Windows.Forms.ToolStrip();
            this.toolBarButtonNew              = new System.Windows.Forms.ToolStripButton();
            this.toolBarButtonOpen             = new System.Windows.Forms.ToolStripButton();
            this.toolBarButtonSeparator1       = new System.Windows.Forms.ToolStripSeparator();
            this.toolBarButtonSolutionExplorer = new System.Windows.Forms.ToolStripButton();
            this.toolBarButtonPropertyWindow   = new System.Windows.Forms.ToolStripButton();
            this.toolBarButtonToolbox          = new System.Windows.Forms.ToolStripButton();
            this.toolBarButtonOutputWindow     = new System.Windows.Forms.ToolStripButton();
            this.toolBarButtonTaskList         = new System.Windows.Forms.ToolStripButton();
            this.toolBarButtonSeparator2       = new System.Windows.Forms.ToolStripSeparator();
            this.toolBarButtonLayoutByCode     = new System.Windows.Forms.ToolStripButton();
            this.toolBarButtonLayoutByXml      = new System.Windows.Forms.ToolStripButton();
            this.dockPanel                     = new DockPanel();
            this.statusBar                     = new System.Windows.Forms.StatusStrip();
            this.mainMenu.SuspendLayout();
            this.tableLayoutPanel1.SuspendLayout();
            this.toolBar.SuspendLayout();
            this.SuspendLayout();
            //
            // mainMenu
            //
            this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.menuItemFile,
                this.menuItemView,
                this.menuItemTools,
                this.menuItemWindow,
                this.menuItemHelp
            });
            this.mainMenu.Location          = new System.Drawing.Point(0, 0);
            this.mainMenu.MdiWindowListItem = this.menuItemWindow;
            this.mainMenu.Name     = "mainMenu";
            this.mainMenu.Size     = new System.Drawing.Size(579, 25);
            this.mainMenu.TabIndex = 7;
            //
            // menuItemFile
            //
            this.menuItemFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.menuItemNew,
                this.menuItemOpen,
                this.menuItemClose,
                this.menuItemCloseAll,
                this.menuItemCloseAllButThisOne,
                this.menuItem4,
                this.menuItemExit,
                this.exitWithoutSavingLayout
            });
            this.menuItemFile.Name             = "menuItemFile";
            this.menuItemFile.Size             = new System.Drawing.Size(39, 21);
            this.menuItemFile.Text             = "&File";
            this.menuItemFile.DropDownOpening += new System.EventHandler(this.menuItemFile_Popup);
            //
            // menuItemNew
            //
            this.menuItemNew.Name   = "menuItemNew";
            this.menuItemNew.Size   = new System.Drawing.Size(229, 22);
            this.menuItemNew.Text   = "&New";
            this.menuItemNew.Click += new System.EventHandler(this.menuItemNew_Click);
            //
            // menuItemOpen
            //
            this.menuItemOpen.Name   = "menuItemOpen";
            this.menuItemOpen.Size   = new System.Drawing.Size(229, 22);
            this.menuItemOpen.Text   = "&Open...";
            this.menuItemOpen.Click += new System.EventHandler(this.menuItemOpen_Click);
            //
            // menuItemClose
            //
            this.menuItemClose.Name   = "menuItemClose";
            this.menuItemClose.Size   = new System.Drawing.Size(229, 22);
            this.menuItemClose.Text   = "&Close";
            this.menuItemClose.Click += new System.EventHandler(this.menuItemClose_Click);
            //
            // menuItemCloseAll
            //
            this.menuItemCloseAll.Name   = "menuItemCloseAll";
            this.menuItemCloseAll.Size   = new System.Drawing.Size(229, 22);
            this.menuItemCloseAll.Text   = "Close &All";
            this.menuItemCloseAll.Click += new System.EventHandler(this.menuItemCloseAll_Click);
            //
            // menuItemCloseAllButThisOne
            //
            this.menuItemCloseAllButThisOne.Name   = "menuItemCloseAllButThisOne";
            this.menuItemCloseAllButThisOne.Size   = new System.Drawing.Size(229, 22);
            this.menuItemCloseAllButThisOne.Text   = "Close All &But This One";
            this.menuItemCloseAllButThisOne.Click += new System.EventHandler(this.menuItemCloseAllButThisOne_Click);
            //
            // menuItem4
            //
            this.menuItem4.Name = "menuItem4";
            this.menuItem4.Size = new System.Drawing.Size(226, 6);
            //
            // menuItemExit
            //
            this.menuItemExit.Name   = "menuItemExit";
            this.menuItemExit.Size   = new System.Drawing.Size(229, 22);
            this.menuItemExit.Text   = "&Exit";
            this.menuItemExit.Click += new System.EventHandler(this.menuItemExit_Click);
            //
            // exitWithoutSavingLayout
            //
            this.exitWithoutSavingLayout.Name   = "exitWithoutSavingLayout";
            this.exitWithoutSavingLayout.Size   = new System.Drawing.Size(229, 22);
            this.exitWithoutSavingLayout.Text   = "Exit &Without Saving Layout";
            this.exitWithoutSavingLayout.Click += new System.EventHandler(this.exitWithoutSavingLayout_Click);
            //
            // menuItemView
            //
            this.menuItemView.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.menuItemSolutionExplorer,
                this.menuItemPropertyWindow,
                this.menuItemToolbox,
                this.menuItemOutputWindow,
                this.menuItemTaskList,
                this.menuItem1,
                this.menuItemToolBar,
                this.menuItemStatusBar,
                this.menuItem2,
                this.menuItemLayoutByCode,
                this.menuItemLayoutByXml
            });
            this.menuItemView.MergeIndex = 1;
            this.menuItemView.Name       = "menuItemView";
            this.menuItemView.Size       = new System.Drawing.Size(47, 21);
            this.menuItemView.Text       = "&View";
            //
            // menuItemSolutionExplorer
            //
            this.menuItemSolutionExplorer.Name   = "menuItemSolutionExplorer";
            this.menuItemSolutionExplorer.Size   = new System.Drawing.Size(198, 22);
            this.menuItemSolutionExplorer.Text   = "&Solution Explorer";
            this.menuItemSolutionExplorer.Click += new System.EventHandler(this.menuItemSolutionExplorer_Click);
            //
            // menuItemPropertyWindow
            //
            this.menuItemPropertyWindow.Name         = "menuItemPropertyWindow";
            this.menuItemPropertyWindow.ShortcutKeys = System.Windows.Forms.Keys.F4;
            this.menuItemPropertyWindow.Size         = new System.Drawing.Size(198, 22);
            this.menuItemPropertyWindow.Text         = "&Property Window";
            this.menuItemPropertyWindow.Click       += new System.EventHandler(this.menuItemPropertyWindow_Click);
            //
            // menuItemToolbox
            //
            this.menuItemToolbox.Name   = "menuItemToolbox";
            this.menuItemToolbox.Size   = new System.Drawing.Size(198, 22);
            this.menuItemToolbox.Text   = "&Toolbox";
            this.menuItemToolbox.Click += new System.EventHandler(this.menuItemToolbox_Click);
            //
            // menuItemOutputWindow
            //
            this.menuItemOutputWindow.Name   = "menuItemOutputWindow";
            this.menuItemOutputWindow.Size   = new System.Drawing.Size(198, 22);
            this.menuItemOutputWindow.Text   = "&Output Window";
            this.menuItemOutputWindow.Click += new System.EventHandler(this.menuItemOutputWindow_Click);
            //
            // menuItemTaskList
            //
            this.menuItemTaskList.Name   = "menuItemTaskList";
            this.menuItemTaskList.Size   = new System.Drawing.Size(198, 22);
            this.menuItemTaskList.Text   = "Task &List";
            this.menuItemTaskList.Click += new System.EventHandler(this.menuItemTaskList_Click);
            //
            // menuItem1
            //
            this.menuItem1.Name = "menuItem1";
            this.menuItem1.Size = new System.Drawing.Size(195, 6);
            //
            // menuItemToolBar
            //
            this.menuItemToolBar.Checked    = true;
            this.menuItemToolBar.CheckState = System.Windows.Forms.CheckState.Checked;
            this.menuItemToolBar.Name       = "menuItemToolBar";
            this.menuItemToolBar.Size       = new System.Drawing.Size(198, 22);
            this.menuItemToolBar.Text       = "Tool &Bar";
            this.menuItemToolBar.Click     += new System.EventHandler(this.menuItemToolBar_Click);
            //
            // menuItemStatusBar
            //
            this.menuItemStatusBar.Checked    = true;
            this.menuItemStatusBar.CheckState = System.Windows.Forms.CheckState.Checked;
            this.menuItemStatusBar.Name       = "menuItemStatusBar";
            this.menuItemStatusBar.Size       = new System.Drawing.Size(198, 22);
            this.menuItemStatusBar.Text       = "Status B&ar";
            this.menuItemStatusBar.Click     += new System.EventHandler(this.menuItemStatusBar_Click);
            //
            // menuItem2
            //
            this.menuItem2.Name = "menuItem2";
            this.menuItem2.Size = new System.Drawing.Size(195, 6);
            //
            // menuItemLayoutByCode
            //
            this.menuItemLayoutByCode.Name   = "menuItemLayoutByCode";
            this.menuItemLayoutByCode.Size   = new System.Drawing.Size(198, 22);
            this.menuItemLayoutByCode.Text   = "Layout By &Code";
            this.menuItemLayoutByCode.Click += new System.EventHandler(this.menuItemLayoutByCode_Click);
            //
            // menuItemLayoutByXml
            //
            this.menuItemLayoutByXml.Name   = "menuItemLayoutByXml";
            this.menuItemLayoutByXml.Size   = new System.Drawing.Size(198, 22);
            this.menuItemLayoutByXml.Text   = "Layout By &XML";
            this.menuItemLayoutByXml.Click += new System.EventHandler(this.menuItemLayoutByXml_Click);
            //
            // menuItemTools
            //
            this.menuItemTools.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.menuItemLockLayout,
                this.menuItemShowDocumentIcon,
                this.menuItem3,
                this.menuItemSchemaVS2005,
                this.menuItemSchemaVS2003,
                this.menuItem6,
                this.menuItemDockingMdi,
                this.menuItemDockingSdi,
                this.menuItemDockingWindow,
                this.menuItemSystemMdi,
                this.menuItem5,
                this.showRightToLeft
            });
            this.menuItemTools.MergeIndex       = 2;
            this.menuItemTools.Name             = "menuItemTools";
            this.menuItemTools.Size             = new System.Drawing.Size(52, 21);
            this.menuItemTools.Text             = "&Tools";
            this.menuItemTools.DropDownOpening += new System.EventHandler(this.menuItemTools_Popup);
            //
            // menuItemLockLayout
            //
            this.menuItemLockLayout.Name   = "menuItemLockLayout";
            this.menuItemLockLayout.Size   = new System.Drawing.Size(272, 22);
            this.menuItemLockLayout.Text   = "&Lock Layout";
            this.menuItemLockLayout.Click += new System.EventHandler(this.menuItemLockLayout_Click);
            //
            // menuItemShowDocumentIcon
            //
            this.menuItemShowDocumentIcon.Name   = "menuItemShowDocumentIcon";
            this.menuItemShowDocumentIcon.Size   = new System.Drawing.Size(272, 22);
            this.menuItemShowDocumentIcon.Text   = "&Show Document Icon";
            this.menuItemShowDocumentIcon.Click += new System.EventHandler(this.menuItemShowDocumentIcon_Click);
            //
            // menuItem3
            //
            this.menuItem3.Name = "menuItem3";
            this.menuItem3.Size = new System.Drawing.Size(269, 6);
            //
            // menuItemSchemaVS2005
            //
            this.menuItemSchemaVS2005.Checked    = true;
            this.menuItemSchemaVS2005.CheckState = System.Windows.Forms.CheckState.Checked;
            this.menuItemSchemaVS2005.Name       = "menuItemSchemaVS2005";
            this.menuItemSchemaVS2005.Size       = new System.Drawing.Size(272, 22);
            this.menuItemSchemaVS2005.Text       = "Schema: VS200&5";
            this.menuItemSchemaVS2005.Click     += new System.EventHandler(this.SetSchema);
            //
            // menuItemSchemaVS2003
            //
            this.menuItemSchemaVS2003.Name   = "menuItemSchemaVS2003";
            this.menuItemSchemaVS2003.Size   = new System.Drawing.Size(272, 22);
            this.menuItemSchemaVS2003.Text   = "Schema: VS200&3";
            this.menuItemSchemaVS2003.Click += new System.EventHandler(this.SetSchema);
            //
            // menuItem6
            //
            this.menuItem6.Name = "menuItem6";
            this.menuItem6.Size = new System.Drawing.Size(269, 6);
            //
            // menuItemDockingMdi
            //
            this.menuItemDockingMdi.Checked    = true;
            this.menuItemDockingMdi.CheckState = System.Windows.Forms.CheckState.Checked;
            this.menuItemDockingMdi.Name       = "menuItemDockingMdi";
            this.menuItemDockingMdi.Size       = new System.Drawing.Size(272, 22);
            this.menuItemDockingMdi.Text       = "Document Style: Docking &MDI";
            this.menuItemDockingMdi.Click     += new System.EventHandler(this.SetDocumentStyle);
            //
            // menuItemDockingSdi
            //
            this.menuItemDockingSdi.Name   = "menuItemDockingSdi";
            this.menuItemDockingSdi.Size   = new System.Drawing.Size(272, 22);
            this.menuItemDockingSdi.Text   = "Document Style: Docking &SDI";
            this.menuItemDockingSdi.Click += new System.EventHandler(this.SetDocumentStyle);
            //
            // menuItemDockingWindow
            //
            this.menuItemDockingWindow.Name   = "menuItemDockingWindow";
            this.menuItemDockingWindow.Size   = new System.Drawing.Size(272, 22);
            this.menuItemDockingWindow.Text   = "Document Style: Docking &Window";
            this.menuItemDockingWindow.Click += new System.EventHandler(this.SetDocumentStyle);
            //
            // menuItemSystemMdi
            //
            this.menuItemSystemMdi.Name   = "menuItemSystemMdi";
            this.menuItemSystemMdi.Size   = new System.Drawing.Size(272, 22);
            this.menuItemSystemMdi.Text   = "Document Style: S&ystem MDI";
            this.menuItemSystemMdi.Click += new System.EventHandler(this.SetDocumentStyle);
            //
            // menuItem5
            //
            this.menuItem5.Name = "menuItem5";
            this.menuItem5.Size = new System.Drawing.Size(269, 6);
            //
            // showRightToLeft
            //
            this.showRightToLeft.Name   = "showRightToLeft";
            this.showRightToLeft.Size   = new System.Drawing.Size(272, 22);
            this.showRightToLeft.Text   = "Show &Right-To-Left";
            this.showRightToLeft.Click += new System.EventHandler(this.showRightToLeft_Click);
            //
            // menuItemWindow
            //
            this.menuItemWindow.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.menuItemNewWindow
            });
            this.menuItemWindow.MergeIndex = 2;
            this.menuItemWindow.Name       = "menuItemWindow";
            this.menuItemWindow.Size       = new System.Drawing.Size(67, 21);
            this.menuItemWindow.Text       = "&Window";
            //
            // menuItemNewWindow
            //
            this.menuItemNewWindow.Name   = "menuItemNewWindow";
            this.menuItemNewWindow.Size   = new System.Drawing.Size(153, 22);
            this.menuItemNewWindow.Text   = "&New Window";
            this.menuItemNewWindow.Click += new System.EventHandler(this.menuItemNewWindow_Click);
            //
            // menuItemHelp
            //
            this.menuItemHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.menuItemAbout
            });
            this.menuItemHelp.MergeIndex = 3;
            this.menuItemHelp.Name       = "menuItemHelp";
            this.menuItemHelp.Size       = new System.Drawing.Size(47, 21);
            this.menuItemHelp.Text       = "&Help";
            //
            // menuItemAbout
            //
            this.menuItemAbout.Name   = "menuItemAbout";
            this.menuItemAbout.Size   = new System.Drawing.Size(197, 22);
            this.menuItemAbout.Text   = "&About DockSample...";
            this.menuItemAbout.Click += new System.EventHandler(this.menuItemAbout_Click);
            //
            // imageList
            //
            this.imageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
            this.imageList.TransparentColor = System.Drawing.Color.Transparent;
            this.imageList.Images.SetKeyName(0, "");
            this.imageList.Images.SetKeyName(1, "");
            this.imageList.Images.SetKeyName(2, "");
            this.imageList.Images.SetKeyName(3, "");
            this.imageList.Images.SetKeyName(4, "");
            this.imageList.Images.SetKeyName(5, "");
            this.imageList.Images.SetKeyName(6, "");
            this.imageList.Images.SetKeyName(7, "");
            this.imageList.Images.SetKeyName(8, "");
            //
            // tableLayoutPanel1
            //
            this.tableLayoutPanel1.ColumnCount = 1;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.Controls.Add(this.toolBar, 0, 0);
            this.tableLayoutPanel1.Controls.Add(this.dockPanel, 0, 1);
            this.tableLayoutPanel1.Controls.Add(this.statusBar, 0, 2);
            this.tableLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 25);
            this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 2;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel1.Size     = new System.Drawing.Size(579, 384);
            this.tableLayoutPanel1.TabIndex = 9;
            //
            // toolBar
            //
            this.toolBar.ImageList = this.imageList;
            this.toolBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.toolBarButtonNew,
                this.toolBarButtonOpen,
                this.toolBarButtonSeparator1,
                this.toolBarButtonSolutionExplorer,
                this.toolBarButtonPropertyWindow,
                this.toolBarButtonToolbox,
                this.toolBarButtonOutputWindow,
                this.toolBarButtonTaskList,
                this.toolBarButtonSeparator2,
                this.toolBarButtonLayoutByCode,
                this.toolBarButtonLayoutByXml
            });
            this.toolBar.Location = new System.Drawing.Point(0, 0);
            this.toolBar.Name     = "toolBar";
            this.toolBar.Size     = new System.Drawing.Size(579, 25);
            this.toolBar.TabIndex = 7;
            //
            // toolBarButtonNew
            //
            this.toolBarButtonNew.ImageIndex  = 0;
            this.toolBarButtonNew.Name        = "toolBarButtonNew";
            this.toolBarButtonNew.Size        = new System.Drawing.Size(23, 22);
            this.toolBarButtonNew.ToolTipText = "Show Layout From XML";
            //
            // toolBarButtonOpen
            //
            this.toolBarButtonOpen.ImageIndex  = 1;
            this.toolBarButtonOpen.Name        = "toolBarButtonOpen";
            this.toolBarButtonOpen.Size        = new System.Drawing.Size(23, 22);
            this.toolBarButtonOpen.ToolTipText = "Open";
            //
            // toolBarButtonSeparator1
            //
            this.toolBarButtonSeparator1.Name = "toolBarButtonSeparator1";
            this.toolBarButtonSeparator1.Size = new System.Drawing.Size(6, 25);
            //
            // toolBarButtonSolutionExplorer
            //
            this.toolBarButtonSolutionExplorer.ImageIndex  = 2;
            this.toolBarButtonSolutionExplorer.Name        = "toolBarButtonSolutionExplorer";
            this.toolBarButtonSolutionExplorer.Size        = new System.Drawing.Size(23, 22);
            this.toolBarButtonSolutionExplorer.ToolTipText = "Solution Explorer";
            //
            // toolBarButtonPropertyWindow
            //
            this.toolBarButtonPropertyWindow.ImageIndex  = 3;
            this.toolBarButtonPropertyWindow.Name        = "toolBarButtonPropertyWindow";
            this.toolBarButtonPropertyWindow.Size        = new System.Drawing.Size(23, 22);
            this.toolBarButtonPropertyWindow.ToolTipText = "Property Window";
            //
            // toolBarButtonToolbox
            //
            this.toolBarButtonToolbox.ImageIndex  = 4;
            this.toolBarButtonToolbox.Name        = "toolBarButtonToolbox";
            this.toolBarButtonToolbox.Size        = new System.Drawing.Size(23, 22);
            this.toolBarButtonToolbox.ToolTipText = "Tool Box";
            //
            // toolBarButtonOutputWindow
            //
            this.toolBarButtonOutputWindow.ImageIndex  = 5;
            this.toolBarButtonOutputWindow.Name        = "toolBarButtonOutputWindow";
            this.toolBarButtonOutputWindow.Size        = new System.Drawing.Size(23, 22);
            this.toolBarButtonOutputWindow.ToolTipText = "Output Window";
            //
            // toolBarButtonTaskList
            //
            this.toolBarButtonTaskList.ImageIndex  = 6;
            this.toolBarButtonTaskList.Name        = "toolBarButtonTaskList";
            this.toolBarButtonTaskList.Size        = new System.Drawing.Size(23, 22);
            this.toolBarButtonTaskList.ToolTipText = "Task List";
            //
            // toolBarButtonSeparator2
            //
            this.toolBarButtonSeparator2.Name = "toolBarButtonSeparator2";
            this.toolBarButtonSeparator2.Size = new System.Drawing.Size(6, 25);
            //
            // toolBarButtonLayoutByCode
            //
            this.toolBarButtonLayoutByCode.ImageIndex  = 7;
            this.toolBarButtonLayoutByCode.Name        = "toolBarButtonLayoutByCode";
            this.toolBarButtonLayoutByCode.Size        = new System.Drawing.Size(23, 22);
            this.toolBarButtonLayoutByCode.ToolTipText = "Show Layout By Code";
            //
            // toolBarButtonLayoutByXml
            //
            this.toolBarButtonLayoutByXml.ImageIndex  = 8;
            this.toolBarButtonLayoutByXml.Name        = "toolBarButtonLayoutByXml";
            this.toolBarButtonLayoutByXml.Size        = new System.Drawing.Size(23, 22);
            this.toolBarButtonLayoutByXml.ToolTipText = "Show layout by predefined XML file";
            //
            // dockPanel
            //
            this.dockPanel.ActiveAutoHideContent = null;
            this.dockPanel.Dock                                      = System.Windows.Forms.DockStyle.Fill;
            this.dockPanel.DockBackColor                             = System.Drawing.SystemColors.AppWorkspace;
            this.dockPanel.DockBottomPortion                         = 150D;
            this.dockPanel.DockLeftPortion                           = 200D;
            this.dockPanel.DockRightPortion                          = 200D;
            this.dockPanel.DockTopPortion                            = 150D;
            this.dockPanel.DocumentStyle                             = DocumentStyle.DockingWindow;
            this.dockPanel.Font                                      = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(0)));
            this.dockPanel.Location                                  = new System.Drawing.Point(3, 28);
            this.dockPanel.Name                                      = "dockPanel";
            this.dockPanel.RightToLeftLayout                         = true;
            this.dockPanel.Size                                      = new System.Drawing.Size(573, 331);
            dockPanelGradient1.EndColor                              = System.Drawing.SystemColors.ControlLight;
            dockPanelGradient1.StartColor                            = System.Drawing.SystemColors.ControlLight;
            autoHideStripSkin1.DockStripGradient                     = dockPanelGradient1;
            tabGradient1.EndColor                                    = System.Drawing.SystemColors.Control;
            tabGradient1.StartColor                                  = System.Drawing.SystemColors.Control;
            tabGradient1.TextColor                                   = System.Drawing.SystemColors.ControlDarkDark;
            autoHideStripSkin1.TabGradient                           = tabGradient1;
            autoHideStripSkin1.TextFont                              = new System.Drawing.Font("΢ÈíÑźÚ", 9F);
            dockPanelSkin1.AutoHideStripSkin                         = autoHideStripSkin1;
            tabGradient2.EndColor                                    = System.Drawing.SystemColors.ControlLightLight;
            tabGradient2.StartColor                                  = System.Drawing.SystemColors.ControlLightLight;
            tabGradient2.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripGradient1.ActiveTabGradient                 = tabGradient2;
            dockPanelGradient2.EndColor                              = System.Drawing.SystemColors.Control;
            dockPanelGradient2.StartColor                            = System.Drawing.SystemColors.Control;
            dockPaneStripGradient1.DockStripGradient                 = dockPanelGradient2;
            tabGradient3.EndColor                                    = System.Drawing.SystemColors.ControlLight;
            tabGradient3.StartColor                                  = System.Drawing.SystemColors.ControlLight;
            tabGradient3.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripGradient1.InactiveTabGradient               = tabGradient3;
            dockPaneStripSkin1.DocumentGradient                      = dockPaneStripGradient1;
            dockPaneStripSkin1.TextFont                              = new System.Drawing.Font("΢ÈíÑźÚ", 9F);
            tabGradient4.EndColor                                    = System.Drawing.SystemColors.ActiveCaption;
            tabGradient4.LinearGradientMode                          = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            tabGradient4.StartColor                                  = System.Drawing.SystemColors.GradientActiveCaption;
            tabGradient4.TextColor                                   = System.Drawing.SystemColors.ActiveCaptionText;
            dockPaneStripToolWindowGradient1.ActiveCaptionGradient   = tabGradient4;
            tabGradient5.EndColor                                    = System.Drawing.SystemColors.Control;
            tabGradient5.StartColor                                  = System.Drawing.SystemColors.Control;
            tabGradient5.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripToolWindowGradient1.ActiveTabGradient       = tabGradient5;
            dockPanelGradient3.EndColor                              = System.Drawing.SystemColors.ControlLight;
            dockPanelGradient3.StartColor                            = System.Drawing.SystemColors.ControlLight;
            dockPaneStripToolWindowGradient1.DockStripGradient       = dockPanelGradient3;
            tabGradient6.EndColor                                    = System.Drawing.SystemColors.InactiveCaption;
            tabGradient6.LinearGradientMode                          = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            tabGradient6.StartColor                                  = System.Drawing.SystemColors.GradientInactiveCaption;
            tabGradient6.TextColor                                   = System.Drawing.SystemColors.InactiveCaptionText;
            dockPaneStripToolWindowGradient1.InactiveCaptionGradient = tabGradient6;
            tabGradient7.EndColor                                    = System.Drawing.Color.Transparent;
            tabGradient7.StartColor                                  = System.Drawing.Color.Transparent;
            tabGradient7.TextColor                                   = System.Drawing.SystemColors.ControlDarkDark;
            dockPaneStripToolWindowGradient1.InactiveTabGradient     = tabGradient7;
            dockPaneStripSkin1.ToolWindowGradient                    = dockPaneStripToolWindowGradient1;
            dockPanelSkin1.DockPaneStripSkin                         = dockPaneStripSkin1;
            this.dockPanel.Skin                                      = dockPanelSkin1;
            this.dockPanel.TabIndex                                  = 10;
            //
            // statusBar
            //
            this.statusBar.Location = new System.Drawing.Point(0, 362);
            this.statusBar.Name     = "statusBar";
            this.statusBar.Size     = new System.Drawing.Size(579, 22);
            this.statusBar.TabIndex = 8;
            //
            // MainForm2
            //
            this.ClientSize = new System.Drawing.Size(579, 409);
            this.Controls.Add(this.tableLayoutPanel1);
            this.Controls.Add(this.mainMenu);
            this.IsMdiContainer = true;
            this.MainMenuStrip  = this.mainMenu;
            this.Name           = "MainForm2";
            this.Text           = "DockSample";
            this.WindowState    = System.Windows.Forms.FormWindowState.Maximized;
            this.Closing       += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
            this.Load          += new System.EventHandler(this.MainForm_Load);
            this.mainMenu.ResumeLayout(false);
            this.mainMenu.PerformLayout();
            this.tableLayoutPanel1.ResumeLayout(false);
            this.tableLayoutPanel1.PerformLayout();
            this.toolBar.ResumeLayout(false);
            this.toolBar.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Example #22
0
        public void Initialize(string filename)
        {
            try
            {
                if (File.Exists(filename))
                {
                    var rgb  = new Regex("(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)");
                    var argb = new Regex("(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)");
                    var sr   = new StreamReader(filename);
                    var data = sr.ReadToEnd();
                    sr.Close();
                    var setting      = new SettingReader(data);
                    var backfilename = setting.ReadString("BackGround");
                    if (File.Exists(backfilename))
                    {
                        BackGround = new Bitmap(backfilename);
                    }
                    var displaymode = int.Parse(setting.ReadString("DisplayMode"));
                    if (displaymode >= 0 && displaymode < 4)
                    {
                        DisplayMode = (BackGroundDisplayMode)displaymode;
                    }
                    var fillcolor = setting.ReadString("FillColor");
                    FillColor = GetColorFromString(rgb, argb, fillcolor);
                    var overraycolor = setting.ReadString("OverLayColor");
                    OverLayColor = GetColorFromString(rgb, argb, overraycolor);
                    var bordercolor = setting.ReadString("BorderColor");
                    BorderColor = GetColorFromString(rgb, argb, bordercolor);
                    var transparenttextcolor = setting.ReadString("TransparentTextColor");
                    TransparentTextColor = GetColorFromString(rgb, argb, transparenttextcolor);
                    var timelinetextcolor = setting.ReadString("TimeLineTextColor");
                    TimeLineTextColor = GetColorFromString(rgb, argb, timelinetextcolor);
                    var timelineareacolor = setting.ReadString("TimeLineSeekAreaColor");
                    TimeLineSeekAreaColor = GetColorFromString(rgb, argb, timelineareacolor);
                    var timelineseekareabordercolor = setting.ReadString("TimeLineSeekAreaBorderColor");
                    TimeLineSeekAreaBorderColor = GetColorFromString(rgb, argb, timelineseekareabordercolor);
                    var timelinehorizontallinecolor = setting.ReadString("TimeLineHorizontalLineColor");
                    TimeLineHorizontalLineColor = GetColorFromString(rgb, argb, timelinehorizontallinecolor);
                    var timelineverticallinecolor1 = setting.ReadString("TimeLineVerticalLineColor1");
                    TimeLineVerticalLineColor1 = GetColorFromString(rgb, argb, timelineverticallinecolor1);
                    var timelineverticallinecolor2 = setting.ReadString("TimeLineVerticalLineColor2");
                    TimeLineVerticalLineColor2 = GetColorFromString(rgb, argb, timelineverticallinecolor2);
                    var timelineverticallinecolor3 = setting.ReadString("TimeLineVerticalLineColor3");
                    TimeLineVerticalLineColor3 = GetColorFromString(rgb, argb, timelineverticallinecolor3);
                    var timelineverticallinecolor4 = setting.ReadString("TimeLineVerticalLineColor4");
                    TimeLineVerticalLineColor4 = GetColorFromString(rgb, argb, timelineverticallinecolor4);
                    var timelineverticallinecolor5 = setting.ReadString("TimeLineVerticalLineColor5");
                    TimeLineVerticalLineColor5 = GetColorFromString(rgb, argb, timelineverticallinecolor5);
                    var timelinecurrenttimecolor = setting.ReadString("TimeLineCurrentTimeColor");
                    TimeLineCurrentTimeColor = GetColorFromString(rgb, argb, timelinecurrenttimecolor);
                    var timelineselectionareacolor = setting.ReadString("TimeLineSelectAreaColor");
                    TimeLineSelectionAreaColor = GetColorFromString(rgb, argb, timelineselectionareacolor);
                    var timelineselectedmarkcolor = setting.ReadString("TimeLineSelectedMarkColor");
                    TimeLineSelectedMarkColor = GetColorFromString(rgb, argb, timelineselectedmarkcolor);
                    var timelinemarkcolor = setting.ReadString("TimeLineMarkColor");
                    TimeLineMarkColor = GetColorFromString(rgb, argb, timelinemarkcolor);
                    var timelineHoldExtentColor = setting.ReadString("TimeLineHoldExtentColor");
                    TimeLineHoldExtentColor = GetColorFromString(rgb, argb, timelineHoldExtentColor, TimeLineHoldExtentColor);
                    var dockPanelSkin = new DockPanelSkin();
                    var Name          = new string[] {
                        "AutoHideDockStripGradient",
                        "AutoHideTabGradient",
                        "DocumentActiveTabGradient",
                        "DocumentDockStripGradient",
                        "DocumentInactiveTabGradient",
                        "ToolWindowActiveCaptionGradient",
                        "ToolWindowActiveTabGradient",
                        "ToolWindowDockStripGradient",
                        "ToolWindowInactiveCaptionGradient",
                        "ToolWindowInactiveTabGradient"
                    };
                    DockPanelGradient[] dpg = new DockPanelGradient[10];
                    dpg[0] = dockPanelSkin.AutoHideStripSkin.DockStripGradient;
                    dpg[1] = dockPanelSkin.AutoHideStripSkin.TabGradient;
                    dpg[2] = dockPanelSkin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient;
                    dpg[3] = dockPanelSkin.DockPaneStripSkin.DocumentGradient.DockStripGradient;
                    dpg[4] = dockPanelSkin.DockPaneStripSkin.DocumentGradient.InactiveTabGradient;
                    dpg[5] = dockPanelSkin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient;
                    dpg[6] = dockPanelSkin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient;
                    dpg[7] = dockPanelSkin.DockPaneStripSkin.ToolWindowGradient.DockStripGradient;
                    dpg[8] = dockPanelSkin.DockPaneStripSkin.ToolWindowGradient.InactiveCaptionGradient;
                    dpg[9] = dockPanelSkin.DockPaneStripSkin.ToolWindowGradient.InactiveTabGradient;
                    for (int i = 0; i < dpg.Length; i++)
                    {
                        var mode = int.Parse(setting.ReadString(Name[i] + "Mode"));
                        LinearGradientMode Mode = LinearGradientMode.Horizontal;
                        if (mode >= 0 && mode < 4)
                        {
                            Mode = (LinearGradientMode)mode;
                        }
                        var start      = setting.ReadString(Name[i] + "StartColor");
                        var StartColor = GetColorFromString(rgb, argb, start);
                        var end        = setting.ReadString(Name[i] + "EndColor");
                        var EndColor   = GetColorFromString(rgb, argb, end);
                        if (dpg[i] is TabGradient)
                        {
                            var tg        = dpg[i] as TabGradient;
                            var text      = setting.ReadString(Name[i] + "TextColor");
                            var TextColor = GetColorFromString(rgb, argb, text);
                            tg.TextColor          = TextColor;
                            tg.StartColor         = StartColor;
                            tg.EndColor           = EndColor;
                            tg.LinearGradientMode = Mode;
                        }
                        else
                        {
                            dpg[i].StartColor         = StartColor;
                            dpg[i].EndColor           = EndColor;
                            dpg[i].LinearGradientMode = Mode;
                        }
                    }
                    DockPanelSkin = dockPanelSkin;
                    for (int i = 0; i < 10; i++)
                    {
                        TimeLineBackGroundColors[i].Dispose();
                    }
                    TimeLineBackGroundColors[0] = GetBrush(rgb, argb, setting, "TimeLineBackSquare", Color.White);
                    TimeLineBackGroundColors[1] = GetBrush(rgb, argb, setting, "TimeLineBackCross", Color.White);
                    TimeLineBackGroundColors[2] = GetBrush(rgb, argb, setting, "TimeLineBackCircle", Color.White);
                    TimeLineBackGroundColors[3] = GetBrush(rgb, argb, setting, "TimeLineBackTriangle", Color.White);
                    TimeLineBackGroundColors[4] = GetBrush(rgb, argb, setting, "TimeLineBackLeft", Color.White);
                    TimeLineBackGroundColors[5] = GetBrush(rgb, argb, setting, "TimeLineBackDown", Color.White);
                    TimeLineBackGroundColors[6] = GetBrush(rgb, argb, setting, "TimeLineBackRight", Color.White);
                    TimeLineBackGroundColors[7] = GetBrush(rgb, argb, setting, "TimeLineBackUp", Color.White);
                    TimeLineBackGroundColors[8] = GetBrush(rgb, argb, setting, "TimeLineBackR", Color.White);
                    TimeLineBackGroundColors[9] = GetBrush(rgb, argb, setting, "TimeLineBackL", Color.White);

                    smallcolorimagepaths[0] = setting.ReadString("TimeLineSquareImagePath");
                    smallcolorimagepaths[1] = setting.ReadString("TimeLineCrossImagePath");
                    smallcolorimagepaths[2] = setting.ReadString("TimeLineCircleImagePath");
                    smallcolorimagepaths[3] = setting.ReadString("TimeLineTriangleImagePath");
                    smallcolorimagepaths[4] = setting.ReadString("TimeLineLeftImagePath");
                    smallcolorimagepaths[5] = setting.ReadString("TimeLineDownImagePath");
                    smallcolorimagepaths[6] = setting.ReadString("TimeLineRightImagePath");
                    smallcolorimagepaths[7] = setting.ReadString("TimeLineUpImagePath");
                    smallcolorimagepaths[8] = setting.ReadString("TimeLineRImagePath");
                    smallcolorimagepaths[9] = setting.ReadString("TimeLineLImagePath");

                    if (int.TryParse(setting.ReadString("TimeLineHeight"), out int num))
                    {
                        TimeLineHeight = num;
                    }
                    if (int.TryParse(setting.ReadString("TimeLineRowHeight"), out num))
                    {
                        TimeLineRowHeight = num;
                    }
                }
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }
        }
Example #23
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            ComponentResourceManager componentResourceManager               = new ComponentResourceManager(typeof(MdiForm));
            DockPanelSkin            dockPanelSkin                          = new DockPanelSkin();
            AutoHideStripSkin        autoHideStripSkin                      = new AutoHideStripSkin();
            DockPanelGradient        dockPanelGradient                      = new DockPanelGradient();
            TabGradient                     tabGradient                     = new TabGradient();
            DockPaneStripSkin               dockPaneStripSkin               = new DockPaneStripSkin();
            DockPaneStripGradient           dockPaneStripGradient           = new DockPaneStripGradient();
            TabGradient                     controlLightLight               = new TabGradient();
            DockPanelGradient               control                         = new DockPanelGradient();
            TabGradient                     controlLight                    = new TabGradient();
            DockPaneStripToolWindowGradient dockPaneStripToolWindowGradient = new DockPaneStripToolWindowGradient();
            TabGradient                     activeCaption                   = new TabGradient();
            TabGradient                     controlText                     = new TabGradient();
            DockPanelGradient               dockPanelGradient1              = new DockPanelGradient();
            TabGradient                     gradientInactiveCaption         = new TabGradient();
            TabGradient                     transparent                     = new TabGradient();

            this.MainMenu               = new MenuStrip();
            this.MainMenu.Font          = new System.Drawing.Font(Localization.Font, 9f, FontStyle.Bold, GraphicsUnit.Point, 134);
            this.toolStripMenuItem_0    = new ToolStripMenuItem();
            this.toolStripMenuItem_1    = new ToolStripMenuItem();
            this.toolStripMenuItem_2    = new ToolStripMenuItem();
            this.toolStripMenuItem_3    = new ToolStripMenuItem();
            this.toolStripMenuItem_4    = new ToolStripMenuItem();
            this.toolStripMenuItem_23   = new ToolStripMenuItem();
            this.toolStripMenuItem_8    = new ToolStripMenuItem();
            this.toolStripMenuItem1     = new ToolStripMenuItem();
            this.toolStripMenuItem_7    = new ToolStripMenuItem();
            this.toolStripMenuItem_9    = new ToolStripMenuItem();
            this.toolStripMenuItem_25   = new ToolStripMenuItem();
            this.toolStripMenuItem_26   = new ToolStripMenuItem();
            this.toolStripMenuItem_27   = new ToolStripMenuItem();
            this.toolStripMenuItem_5    = new ToolStripMenuItem();
            this.toolStripMenuItem_13   = new ToolStripMenuItem();
            this.toolStripMenuItem_12   = new ToolStripMenuItem();
            this.高级设置ToolStripMenuItem  = new ToolStripMenuItem();
            this.图转文设置ToolStripMenuItem = new ToolStripMenuItem();
            this.toolStripMenuItem_14   = new ToolStripMenuItem();
            this.toolStripMenuItem_15   = new ToolStripMenuItem();
            this.toolStripMenuItem_16   = new ToolStripMenuItem();
            this.toolStripMenuItem_10   = new ToolStripMenuItem();
            this.toolStripMenuItem_11   = new ToolStripMenuItem();
            this.toolStripMenuItem_6    = new ToolStripMenuItem();
            this.toolStripMenuItem_18   = new ToolStripMenuItem();
            this.toolStripMenuItem_19   = new ToolStripMenuItem();
            this.toolStripMenuItem_24   = new ToolStripMenuItem();
            this.toolStripMenuItem_20   = new ToolStripMenuItem();
            this.toolStripMenuItem_21   = new ToolStripMenuItem();
            this.toolStripMenuItem_28   = new ToolStripMenuItem();
            this.dockPanel              = new DockPanel();
            this.timer_0 = new System.Windows.Forms.Timer(this.components);
            this.MainMenu.SuspendLayout();
            base.SuspendLayout();
            ToolStripItemCollection items = this.MainMenu.Items;

            ToolStripItem[] toolStripMenuItem0 = new ToolStripItem[] { this.toolStripMenuItem_0, this.toolStripMenuItem_4, this.toolStripMenuItem_5, this.toolStripMenuItem_10, this.toolStripMenuItem_6, this.toolStripMenuItem_18 };
            items.AddRange(toolStripMenuItem0);
            this.MainMenu.Location          = new Point(0, 0);
            this.MainMenu.MdiWindowListItem = this.toolStripMenuItem_6;
            this.MainMenu.Name       = "MainMenu";
            this.MainMenu.RenderMode = ToolStripRenderMode.System;
            this.MainMenu.Size       = new System.Drawing.Size(834, 25);
            this.MainMenu.TabIndex   = 0;
            this.MainMenu.Text       = Localization.Get("主菜单");
            ToolStripItemCollection dropDownItems = this.toolStripMenuItem_0.DropDownItems;

            toolStripMenuItem0 = new ToolStripItem[] { this.toolStripMenuItem_1, this.toolStripMenuItem_2, this.toolStripMenuItem_3 };
            dropDownItems.AddRange(toolStripMenuItem0);
            this.toolStripMenuItem_0.Name      = "toolStripMenuItem_0";
            this.toolStripMenuItem_0.Size      = new System.Drawing.Size(60, 21);
            this.toolStripMenuItem_0.Text      = Localization.Get("采集(&C)");
            this.toolStripMenuItem_1.Image     = (Image)componentResourceManager.GetObject("toolStripMenuItem_1.Image");
            this.toolStripMenuItem_1.Name      = "toolStripMenuItem_1";
            this.toolStripMenuItem_1.Size      = new System.Drawing.Size(152, 22);
            this.toolStripMenuItem_1.Text      = Localization.Get("标准采集模式");
            this.toolStripMenuItem_1.Click    += new EventHandler(this.toolStripMenuItem_1_Click);
            this.toolStripMenuItem_2.ForeColor = Color.Maroon;
            this.toolStripMenuItem_2.Image     = (Image)componentResourceManager.GetObject("toolStripMenuItem_2.Image");
            this.toolStripMenuItem_2.Name      = "toolStripMenuItem_2";
            this.toolStripMenuItem_2.Size      = new System.Drawing.Size(152, 22);
            this.toolStripMenuItem_2.Text      = Localization.Get("超级修复模式");
            this.toolStripMenuItem_2.Click    += new EventHandler(this.toolStripMenuItem_2_Click);
            this.toolStripMenuItem_3.Image     = (Image)componentResourceManager.GetObject("toolStripMenuItem_3.Image");
            this.toolStripMenuItem_3.Name      = "toolStripMenuItem_3";
            this.toolStripMenuItem_3.Size      = new System.Drawing.Size(152, 22);
            this.toolStripMenuItem_3.Text      = Localization.Get("手动控制模式");
            this.toolStripMenuItem_3.Click    += new EventHandler(this.toolStripMenuItem_3_Click);
            ToolStripItemCollection toolStripItemCollections = this.toolStripMenuItem_4.DropDownItems;

            toolStripMenuItem0 = new ToolStripItem[] { this.toolStripMenuItem_23, this.toolStripMenuItem_8, this.toolStripMenuItem1, this.toolStripMenuItem_7, this.toolStripMenuItem_9, this.toolStripMenuItem_25, this.toolStripMenuItem_26, this.toolStripMenuItem_27 };
            toolStripItemCollections.AddRange(toolStripMenuItem0);
            this.toolStripMenuItem_4.Name     = "toolStripMenuItem_4";
            this.toolStripMenuItem_4.Size     = new System.Drawing.Size(60, 21);
            this.toolStripMenuItem_4.Text     = Localization.Get("辅助(&A)");
            this.toolStripMenuItem_23.Name    = "toolStripMenuItem_23";
            this.toolStripMenuItem_23.Size    = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_23.Text    = Localization.Get("子窗口冲突监控");
            this.toolStripMenuItem_23.Click  += new EventHandler(this.toolStripMenuItem_23_Click);
            this.toolStripMenuItem_8.Name     = "toolStripMenuItem_8";
            this.toolStripMenuItem_8.Size     = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_8.Text     = Localization.Get("错误生成器");
            this.toolStripMenuItem_8.Click   += new EventHandler(this.toolStripMenuItem_8_Click);
            this.toolStripMenuItem1.Name      = "toolStripMenuItem1";
            this.toolStripMenuItem1.Size      = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem1.Text      = ("数据库维护");
            this.toolStripMenuItem1.Visible   = false;
            this.toolStripMenuItem1.Click    += new EventHandler(this.toolStripMenuItem1_Click);
            this.toolStripMenuItem_7.Name     = "toolStripMenuItem_7";
            this.toolStripMenuItem_7.Size     = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_7.Text     = Localization.Get("批量生成");
            this.toolStripMenuItem_7.Click   += new EventHandler(this.toolStripMenuItem_7_Click);
            this.toolStripMenuItem_9.Name     = "toolStripMenuItem_9";
            this.toolStripMenuItem_9.Size     = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_9.Text     = Localization.Get("批量删除小说");
            this.toolStripMenuItem_9.Click   += new EventHandler(this.toolStripMenuItem_9_Click);
            this.toolStripMenuItem_25.Enabled = false;
            this.toolStripMenuItem_25.Name    = "toolStripMenuItem_25";
            this.toolStripMenuItem_25.Size    = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_25.Text    = Localization.Get("批量删除章节");
            this.toolStripMenuItem_25.Visible = false;
            this.toolStripMenuItem_26.Name    = "toolStripMenuItem_26";
            this.toolStripMenuItem_26.Size    = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_26.Text    = Localization.Get("更新小说信息");
            this.toolStripMenuItem_26.Click  += new EventHandler(this.toolStripMenuItem_26_Click);
            this.toolStripMenuItem_27.Name    = "toolStripMenuItem_27";
            this.toolStripMenuItem_27.Size    = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_27.Text    = Localization.Get("MYSQL时间换算");
            this.toolStripMenuItem_27.Click  += new EventHandler(this.toolStripMenuItem_27_Click);
            ToolStripItemCollection dropDownItems1 = this.toolStripMenuItem_5.DropDownItems;

            toolStripMenuItem0 = new ToolStripItem[] { this.toolStripMenuItem_13, this.toolStripMenuItem_12, this.高级设置ToolStripMenuItem, this.toolStripMenuItem_14, this.图转文设置ToolStripMenuItem, this.toolStripMenuItem_15, this.toolStripMenuItem_16 };
            dropDownItems1.AddRange(toolStripMenuItem0);
            this.toolStripMenuItem_5.Name      = "toolStripMenuItem_5";
            this.toolStripMenuItem_5.Size      = new System.Drawing.Size(59, 21);
            this.toolStripMenuItem_5.Text      = Localization.Get("设置(&S)");
            this.toolStripMenuItem_13.Name     = "toolStripMenuItem_13";
            this.toolStripMenuItem_13.Size     = new System.Drawing.Size(136, 22);
            this.toolStripMenuItem_13.Text     = Localization.Get("系统设置");
            this.toolStripMenuItem_13.Click   += new EventHandler(this.toolStripMenuItem_13_Click);
            this.toolStripMenuItem_12.Name     = "toolStripMenuItem_12";
            this.toolStripMenuItem_12.Size     = new System.Drawing.Size(136, 22);
            this.toolStripMenuItem_12.Text     = Localization.Get("分类对应");
            this.toolStripMenuItem_12.Click   += new EventHandler(this.toolStripMenuItem_12_Click);
            this.高级设置ToolStripMenuItem.Name    = Localization.Get("高级设置ToolStripMenuItem");
            this.高级设置ToolStripMenuItem.Size    = new System.Drawing.Size(136, 22);
            this.高级设置ToolStripMenuItem.Text    = Localization.Get("高级设置");
            this.高级设置ToolStripMenuItem.Click  += new EventHandler(this.高级设置ToolStripMenuItem_Click);
            this.图转文设置ToolStripMenuItem.Name   = Localization.Get("图转文设置ToolStripMenuItem");
            this.图转文设置ToolStripMenuItem.Size   = new System.Drawing.Size(152, 22);
            this.图转文设置ToolStripMenuItem.Text   = Localization.Get("附加设置");
            this.图转文设置ToolStripMenuItem.Click += new EventHandler(this.图转文设置ToolStripMenuItem_Click);
            this.toolStripMenuItem_14.Name     = Localization.Get("toolStripMenuItem_14");
            this.toolStripMenuItem_14.Size     = new System.Drawing.Size(136, 22);
            this.toolStripMenuItem_14.Text     = Localization.Get("生成设置");
            this.toolStripMenuItem_14.Click   += new EventHandler(this.toolStripMenuItem_14_Click);
            this.toolStripMenuItem_15.Name     = "toolStripMenuItem_15";
            this.toolStripMenuItem_15.Size     = new System.Drawing.Size(136, 22);
            this.toolStripMenuItem_15.Text     = Localization.Get("文字广告");
            this.toolStripMenuItem_15.Click   += new EventHandler(this.toolStripMenuItem_15_Click);
            this.toolStripMenuItem_16.Name     = "toolStripMenuItem_16";
            this.toolStripMenuItem_16.Size     = new System.Drawing.Size(136, 22);
            this.toolStripMenuItem_16.Text     = Localization.Get("过滤替换");
            this.toolStripMenuItem_16.Click   += new EventHandler(this.toolStripMenuItem_16_Click);
            ToolStripItemCollection toolStripItemCollections1 = this.toolStripMenuItem_10.DropDownItems;

            toolStripMenuItem0 = new ToolStripItem[] { this.toolStripMenuItem_11 };
            toolStripItemCollections1.AddRange(toolStripMenuItem0);
            this.toolStripMenuItem_10.Name   = "toolStripMenuItem_10";
            this.toolStripMenuItem_10.Size   = new System.Drawing.Size(60, 21);
            this.toolStripMenuItem_10.Text   = Localization.Get("规则(&R)");
            this.toolStripMenuItem_11.Name   = "toolStripMenuItem_11";
            this.toolStripMenuItem_11.Size   = new System.Drawing.Size(148, 22);
            this.toolStripMenuItem_11.Text   = Localization.Get("采集规则管理");
            this.toolStripMenuItem_11.Click += new EventHandler(this.toolStripMenuItem_11_Click);
            this.toolStripMenuItem_6.Name    = "toolStripMenuItem_6";
            this.toolStripMenuItem_6.Size    = new System.Drawing.Size(64, 21);
            this.toolStripMenuItem_6.Text    = Localization.Get("窗口(&W)");
            ToolStripItemCollection dropDownItems2 = this.toolStripMenuItem_18.DropDownItems;

            toolStripMenuItem0 = new ToolStripItem[] { this.toolStripMenuItem_19, this.toolStripMenuItem_24, this.toolStripMenuItem_20, this.toolStripMenuItem_21, this.toolStripMenuItem_28 };
            dropDownItems2.AddRange(toolStripMenuItem0);
            this.toolStripMenuItem_18.Name       = "toolStripMenuItem_18";
            this.toolStripMenuItem_18.Size       = new System.Drawing.Size(61, 21);
            this.toolStripMenuItem_18.Text       = Localization.Get("帮助(&H)");
            this.toolStripMenuItem_19.Name       = "toolStripMenuItem_19";
            this.toolStripMenuItem_19.Size       = new System.Drawing.Size(124, 22);
            this.toolStripMenuItem_19.Text       = Localization.Get("帮助内容");
            this.toolStripMenuItem_19.Click     += new EventHandler(this.toolStripMenuItem_19_Click);
            this.toolStripMenuItem_24.Name       = "toolStripMenuItem_24";
            this.toolStripMenuItem_24.Size       = new System.Drawing.Size(124, 22);
            this.toolStripMenuItem_24.Text       = Localization.Get("查看日志");
            this.toolStripMenuItem_24.Click     += new EventHandler(this.toolStripMenuItem_24_Click);
            this.toolStripMenuItem_20.Name       = "toolStripMenuItem_20";
            this.toolStripMenuItem_20.Size       = new System.Drawing.Size(124, 22);
            this.toolStripMenuItem_20.Text       = Localization.Get("检查更新");
            this.toolStripMenuItem_20.Visible    = false;
            this.toolStripMenuItem_20.Click     += new EventHandler(this.toolStripMenuItem_20_Click);
            this.toolStripMenuItem_21.Name       = "toolStripMenuItem_21";
            this.toolStripMenuItem_21.Size       = new System.Drawing.Size(124, 22);
            this.toolStripMenuItem_21.Text       = Localization.Get("最新消息");
            this.toolStripMenuItem_21.Click     += new EventHandler(this.toolStripMenuItem_21_Click);
            this.toolStripMenuItem_28.Name       = "toolStripMenuItem_28";
            this.toolStripMenuItem_28.Size       = new System.Drawing.Size(124, 22);
            this.toolStripMenuItem_28.Text       = Localization.Get("高级功能");
            this.toolStripMenuItem_28.Click     += new EventHandler(this.toolStripMenuItem_28_Click);
            this.dockPanel.ActiveAutoHideContent = null;
            this.dockPanel.Dock                     = DockStyle.Fill;
            this.dockPanel.DockBackColor            = SystemColors.AppWorkspace;
            this.dockPanel.Location                 = new Point(0, 0);
            this.dockPanel.Name                     = "dockPanel";
            this.dockPanel.Size                     = new System.Drawing.Size(834, 452);
            dockPanelGradient.EndColor              = SystemColors.ControlLight;
            dockPanelGradient.StartColor            = SystemColors.ControlLight;
            autoHideStripSkin.DockStripGradient     = dockPanelGradient;
            tabGradient.EndColor                    = SystemColors.Control;
            tabGradient.StartColor                  = SystemColors.Control;
            tabGradient.TextColor                   = SystemColors.ControlDarkDark;
            autoHideStripSkin.TabGradient           = tabGradient;
            dockPanelSkin.AutoHideStripSkin         = autoHideStripSkin;
            controlLightLight.EndColor              = SystemColors.ControlLightLight;
            controlLightLight.StartColor            = SystemColors.ControlLightLight;
            controlLightLight.TextColor             = SystemColors.ControlText;
            dockPaneStripGradient.ActiveTabGradient = controlLightLight;
            control.EndColor   = SystemColors.Control;
            control.StartColor = SystemColors.Control;
            dockPaneStripGradient.DockStripGradient = control;
            controlLight.EndColor   = SystemColors.ControlLight;
            controlLight.StartColor = SystemColors.ControlLight;
            controlLight.TextColor  = SystemColors.ControlText;
            dockPaneStripGradient.InactiveTabGradient = controlLight;
            dockPaneStripSkin.DocumentGradient        = dockPaneStripGradient;
            activeCaption.EndColor           = SystemColors.ActiveCaption;
            activeCaption.LinearGradientMode = LinearGradientMode.Vertical;
            activeCaption.StartColor         = SystemColors.GradientActiveCaption;
            activeCaption.TextColor          = SystemColors.ActiveCaptionText;
            dockPaneStripToolWindowGradient.ActiveCaptionGradient = activeCaption;
            controlText.EndColor   = SystemColors.Control;
            controlText.StartColor = SystemColors.Control;
            controlText.TextColor  = SystemColors.ControlText;
            dockPaneStripToolWindowGradient.ActiveTabGradient = controlText;
            dockPanelGradient1.EndColor   = SystemColors.ControlLight;
            dockPanelGradient1.StartColor = SystemColors.ControlLight;
            dockPaneStripToolWindowGradient.DockStripGradient = dockPanelGradient1;
            gradientInactiveCaption.EndColor           = SystemColors.GradientInactiveCaption;
            gradientInactiveCaption.LinearGradientMode = LinearGradientMode.Vertical;
            gradientInactiveCaption.StartColor         = SystemColors.GradientInactiveCaption;
            gradientInactiveCaption.TextColor          = SystemColors.ControlText;
            dockPaneStripToolWindowGradient.InactiveCaptionGradient = gradientInactiveCaption;
            transparent.EndColor   = Color.Transparent;
            transparent.StartColor = Color.Transparent;
            transparent.TextColor  = SystemColors.ControlDarkDark;
            dockPaneStripToolWindowGradient.InactiveTabGradient = transparent;
            dockPaneStripSkin.ToolWindowGradient = dockPaneStripToolWindowGradient;
            dockPanelSkin.DockPaneStripSkin      = dockPaneStripSkin;
            this.dockPanel.Skin     = dockPanelSkin;
            this.dockPanel.TabIndex = 2;
            this.timer_0.Interval   = 1000;
            this.timer_0.Tick      += new EventHandler(this.timer_0_Tick);
            this.BackColor          = SystemColors.Control;
            base.ClientSize         = new System.Drawing.Size(834, 452);
            base.Controls.Add(this.MainMenu);
            base.Controls.Add(this.dockPanel);
            base.Icon           = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
            base.IsMdiContainer = true;
            base.MainMenuStrip  = this.MainMenu;
            base.Name           = "MdiForm";
            base.StartPosition  = FormStartPosition.CenterScreen;
            this.Text           = Localization.Get("超级小说采集器 V8.0");
            base.Load          += new EventHandler(this.MdiForm_Load);
            base.Shown         += new EventHandler(this.MdiForm_Shown);
            this.MainMenu.ResumeLayout(false);
            this.MainMenu.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources         = new System.ComponentModel.ComponentResourceManager(typeof(FrmDataBaseMain));
            DockPanelSkin                   dockPanelSkin2                   = new DockPanelSkin();
            AutoHideStripSkin               autoHideStripSkin2               = new AutoHideStripSkin();
            DockPanelGradient               dockPanelGradient4               = new DockPanelGradient();
            TabGradient                     tabGradient8                     = new TabGradient();
            DockPaneStripSkin               dockPaneStripSkin2               = new DockPaneStripSkin();
            DockPaneStripGradient           dockPaneStripGradient2           = new DockPaneStripGradient();
            TabGradient                     tabGradient9                     = new TabGradient();
            DockPanelGradient               dockPanelGradient5               = new DockPanelGradient();
            TabGradient                     tabGradient10                    = new TabGradient();
            DockPaneStripToolWindowGradient dockPaneStripToolWindowGradient2 = new DockPaneStripToolWindowGradient();
            TabGradient                     tabGradient11                    = new TabGradient();
            TabGradient                     tabGradient12                    = new TabGradient();
            DockPanelGradient               dockPanelGradient6               = new DockPanelGradient();
            TabGradient                     tabGradient13                    = new TabGradient();
            TabGradient                     tabGradient14                    = new TabGradient();

            this.menuStrip                       = new System.Windows.Forms.MenuStrip();
            this.文件FToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
            this.cmdLinkDB                       = new System.Windows.Forms.ToolStripMenuItem();
            this.新建SQLServer连接ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
            this.新建MySql连接ToolStripMenuItem1     = new System.Windows.Forms.ToolStripMenuItem();
            this.新建SQLite连接ToolStripMenuItem1    = new System.Windows.Forms.ToolStripMenuItem();
            this.新建MongoDB连接ToolStripMenuItem1   = new System.Windows.Forms.ToolStripMenuItem();
            this.断开连接ToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
            this.退出ToolStripMenuItem             = new System.Windows.Forms.ToolStripMenuItem();
            this.分析ToolStripMenuItem             = new System.Windows.Forms.ToolStripMenuItem();
            this.分析ToolStripMenuItem1            = new System.Windows.Forms.ToolStripMenuItem();
            this.脚本批量执行ToolStripMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
            this.代码生成ToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
            this.数据同步ToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
            this.表信息设置ToolStripMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
            this.步数据ToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
            this.帮助ToolStripMenuItem             = new System.Windows.Forms.ToolStripMenuItem();
            this.快捷键列表ToolStripMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
            this.版本记录ToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
            this.关于工具ToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
            this.测试批量插入ToolStripMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
            this.toolBar    = new System.Windows.Forms.ToolStrip();
            this.cmdNewLink = new System.Windows.Forms.ToolStripDropDownButton();
            this.新建SqlServer连接ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.新建MySql连接ToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
            this.新建SQLite连接ToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
            this.新建MongoDB连接ToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.cmdNewQuery           = new System.Windows.Forms.ToolStripButton();
            this.cmdTable              = new System.Windows.Forms.ToolStripButton();
            this.cmdView               = new System.Windows.Forms.ToolStripButton();
            this.cmdFunction           = new System.Windows.Forms.ToolStripButton();
            this.cmdProc               = new System.Windows.Forms.ToolStripButton();
            this.cmdDbRelationView     = new System.Windows.Forms.ToolStripButton();
            this.cmdRefreshAgain       = new System.Windows.Forms.ToolStripButton();
            this.cmdSearch             = new System.Windows.Forms.ToolStripButton();
            this.cmdCodeMaker          = new System.Windows.Forms.ToolStripButton();
            this.txtDefaultDatabase    = new System.Windows.Forms.ToolStripTextBox();
            this.imgList               = new System.Windows.Forms.ImageList(this.components);
            this.bckWorker             = new System.ComponentModel.BackgroundWorker();
            this.statusStrip           = new System.Windows.Forms.StatusStrip();
            this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
            this.cmdProgressBar        = new System.Windows.Forms.ToolStripProgressBar();
            this.lblMemory             = new System.Windows.Forms.ToolStripStatusLabel();
            this.dockPanel             = new DockPanel();
            this.contextMenu           = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.timer = new System.Windows.Forms.Timer(this.components);
            this.menuStrip.SuspendLayout();
            this.toolBar.SuspendLayout();
            this.statusStrip.SuspendLayout();
            this.SuspendLayout();
            //
            // menuStrip
            //
            this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.文件FToolStripMenuItem,
                this.分析ToolStripMenuItem,
                this.数据同步ToolStripMenuItem,
                this.帮助ToolStripMenuItem
            });
            this.menuStrip.Location = new System.Drawing.Point(0, 0);
            this.menuStrip.Name     = "menuStrip";
            this.menuStrip.Size     = new System.Drawing.Size(920, 25);
            this.menuStrip.TabIndex = 7;
            this.menuStrip.Text     = "menuStrip1";
            //
            // 文件FToolStripMenuItem
            //
            this.文件FToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.cmdLinkDB,
                this.断开连接ToolStripMenuItem,
                this.退出ToolStripMenuItem
            });
            this.文件FToolStripMenuItem.Name = "文件FToolStripMenuItem";
            this.文件FToolStripMenuItem.Size = new System.Drawing.Size(50, 21);
            this.文件FToolStripMenuItem.Text = "文件&F";
            //
            // cmdLinkDB
            //
            this.cmdLinkDB.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.新建SQLServer连接ToolStripMenuItem1,
                this.新建MySql连接ToolStripMenuItem1,
                this.新建SQLite连接ToolStripMenuItem1,
                this.新建MongoDB连接ToolStripMenuItem1
            });
            this.cmdLinkDB.Image      = ((System.Drawing.Image)(resources.GetObject("cmdLinkDB.Image")));
            this.cmdLinkDB.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.cmdLinkDB.Name       = "cmdLinkDB";
            this.cmdLinkDB.Size       = new System.Drawing.Size(124, 22);
            this.cmdLinkDB.Text       = "新建连接";
            //
            // 新建SQLServer连接ToolStripMenuItem1
            //
            this.新建SQLServer连接ToolStripMenuItem1.Name   = "新建SQLServer连接ToolStripMenuItem1";
            this.新建SQLServer连接ToolStripMenuItem1.Size   = new System.Drawing.Size(184, 22);
            this.新建SQLServer连接ToolStripMenuItem1.Text   = "新建SqlServer连接";
            this.新建SQLServer连接ToolStripMenuItem1.Click += new System.EventHandler(this.NewLinkServer_Click);
            //
            // 新建MySql连接ToolStripMenuItem1
            //
            this.新建MySql连接ToolStripMenuItem1.Name   = "新建MySql连接ToolStripMenuItem1";
            this.新建MySql连接ToolStripMenuItem1.Size   = new System.Drawing.Size(184, 22);
            this.新建MySql连接ToolStripMenuItem1.Text   = "新建MySql连接";
            this.新建MySql连接ToolStripMenuItem1.Click += new System.EventHandler(this.NewLinkServer_Click);
            //
            // 新建SQLite连接ToolStripMenuItem1
            //
            this.新建SQLite连接ToolStripMenuItem1.Name   = "新建SQLite连接ToolStripMenuItem1";
            this.新建SQLite连接ToolStripMenuItem1.Size   = new System.Drawing.Size(184, 22);
            this.新建SQLite连接ToolStripMenuItem1.Text   = "新建SQLite连接";
            this.新建SQLite连接ToolStripMenuItem1.Click += new System.EventHandler(this.NewLinkServer_Click);
            //
            // 新建MongoDB连接ToolStripMenuItem1
            //
            this.新建MongoDB连接ToolStripMenuItem1.Name   = "新建MongoDB连接ToolStripMenuItem1";
            this.新建MongoDB连接ToolStripMenuItem1.Size   = new System.Drawing.Size(184, 22);
            this.新建MongoDB连接ToolStripMenuItem1.Text   = "新建MongoDB连接";
            this.新建MongoDB连接ToolStripMenuItem1.Click += new System.EventHandler(this.NewLinkServer_Click);
            //
            // 断开连接ToolStripMenuItem
            //
            this.断开连接ToolStripMenuItem.Image      = ((System.Drawing.Image)(resources.GetObject("断开连接ToolStripMenuItem.Image")));
            this.断开连接ToolStripMenuItem.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.断开连接ToolStripMenuItem.Name       = "断开连接ToolStripMenuItem";
            this.断开连接ToolStripMenuItem.Size       = new System.Drawing.Size(124, 22);
            this.断开连接ToolStripMenuItem.Text       = "断开连接";
            this.断开连接ToolStripMenuItem.Click     += new System.EventHandler(this.断开连接ToolStripMenuItem_Click);
            //
            // 退出ToolStripMenuItem
            //
            this.退出ToolStripMenuItem.Image      = ((System.Drawing.Image)(resources.GetObject("退出ToolStripMenuItem.Image")));
            this.退出ToolStripMenuItem.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.退出ToolStripMenuItem.Name       = "退出ToolStripMenuItem";
            this.退出ToolStripMenuItem.Size       = new System.Drawing.Size(124, 22);
            this.退出ToolStripMenuItem.Text       = "退出";
            this.退出ToolStripMenuItem.Click     += new System.EventHandler(this.退出ToolStripMenuItem_Click);
            //
            // 分析ToolStripMenuItem
            //
            this.分析ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.分析ToolStripMenuItem1,
                this.脚本批量执行ToolStripMenuItem,
                this.代码生成ToolStripMenuItem
            });
            this.分析ToolStripMenuItem.Name = "分析ToolStripMenuItem";
            this.分析ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
            this.分析ToolStripMenuItem.Text = "工具";
            //
            // 分析ToolStripMenuItem1
            //
            this.分析ToolStripMenuItem1.Name   = "分析ToolStripMenuItem1";
            this.分析ToolStripMenuItem1.Size   = new System.Drawing.Size(148, 22);
            this.分析ToolStripMenuItem1.Text   = "分析";
            this.分析ToolStripMenuItem1.Click += new System.EventHandler(this.分析ToolStripMenuItem1_Click);
            //
            // 脚本批量执行ToolStripMenuItem
            //
            this.脚本批量执行ToolStripMenuItem.Name   = "脚本批量执行ToolStripMenuItem";
            this.脚本批量执行ToolStripMenuItem.Size   = new System.Drawing.Size(148, 22);
            this.脚本批量执行ToolStripMenuItem.Text   = "脚本批量执行";
            this.脚本批量执行ToolStripMenuItem.Click += new System.EventHandler(this.脚本批量执行ToolStripMenuItem_Click);
            //
            // 代码生成ToolStripMenuItem
            //
            this.代码生成ToolStripMenuItem.Name   = "代码生成ToolStripMenuItem";
            this.代码生成ToolStripMenuItem.Size   = new System.Drawing.Size(148, 22);
            this.代码生成ToolStripMenuItem.Text   = "代码生成";
            this.代码生成ToolStripMenuItem.Click += new System.EventHandler(this.代码生成ToolStripMenuItem_Click);
            //
            // 数据同步ToolStripMenuItem
            //
            this.数据同步ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.表信息设置ToolStripMenuItem,
                this.步数据ToolStripMenuItem
            });
            this.数据同步ToolStripMenuItem.Name = "数据同步ToolStripMenuItem";
            this.数据同步ToolStripMenuItem.Size = new System.Drawing.Size(68, 21);
            this.数据同步ToolStripMenuItem.Text = "数据同步";
            //
            // 表信息设置ToolStripMenuItem
            //
            this.表信息设置ToolStripMenuItem.Name   = "表信息设置ToolStripMenuItem";
            this.表信息设置ToolStripMenuItem.Size   = new System.Drawing.Size(136, 22);
            this.表信息设置ToolStripMenuItem.Text   = "表信息设置";
            this.表信息设置ToolStripMenuItem.Click += new System.EventHandler(this.表信息设置ToolStripMenuItem_Click);
            //
            // 同步数据ToolStripMenuItem
            //
            this.步数据ToolStripMenuItem.Name   = "同步数据ToolStripMenuItem";
            this.步数据ToolStripMenuItem.Size   = new System.Drawing.Size(136, 22);
            this.步数据ToolStripMenuItem.Text   = "同步数据";
            this.步数据ToolStripMenuItem.Click += new System.EventHandler(this.步数据ToolStripMenuItem_Click);
            //
            // 帮助ToolStripMenuItem
            //
            this.帮助ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.快捷键列表ToolStripMenuItem,
                this.版本记录ToolStripMenuItem,
                this.关于工具ToolStripMenuItem,
                this.测试批量插入ToolStripMenuItem
            });
            this.帮助ToolStripMenuItem.Name = "帮助ToolStripMenuItem";
            this.帮助ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
            this.帮助ToolStripMenuItem.Text = "帮助";
            //
            // 快捷键列表ToolStripMenuItem
            //
            this.快捷键列表ToolStripMenuItem.Name   = "快捷键列表ToolStripMenuItem";
            this.快捷键列表ToolStripMenuItem.Size   = new System.Drawing.Size(148, 22);
            this.快捷键列表ToolStripMenuItem.Text   = "快捷键列表";
            this.快捷键列表ToolStripMenuItem.Click += new System.EventHandler(this.快捷键列表ToolStripMenuItem_Click);
            //
            // 版本记录ToolStripMenuItem
            //
            this.版本记录ToolStripMenuItem.Name = "版本记录ToolStripMenuItem";
            this.版本记录ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
            this.版本记录ToolStripMenuItem.Text = "版本记录";
            //
            // 关于工具ToolStripMenuItem
            //
            this.关于工具ToolStripMenuItem.Name = "关于工具ToolStripMenuItem";
            this.关于工具ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
            this.关于工具ToolStripMenuItem.Text = "关于工具";
            //
            // 测试批量插入ToolStripMenuItem
            //
            this.测试批量插入ToolStripMenuItem.Name   = "测试批量插入ToolStripMenuItem";
            this.测试批量插入ToolStripMenuItem.Size   = new System.Drawing.Size(148, 22);
            this.测试批量插入ToolStripMenuItem.Text   = "测试批量插入";
            this.测试批量插入ToolStripMenuItem.Click += new System.EventHandler(this.测试批量插入ToolStripMenuItem_Click);
            //
            // toolBar
            //
            this.toolBar.AutoSize  = false;
            this.toolBar.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.toolBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.cmdNewLink,
                this.cmdNewQuery,
                this.cmdTable,
                this.cmdView,
                this.cmdFunction,
                this.cmdProc,
                this.cmdDbRelationView,
                this.cmdRefreshAgain,
                this.cmdSearch,
                this.cmdCodeMaker,
                this.txtDefaultDatabase
            });
            this.toolBar.Location   = new System.Drawing.Point(0, 25);
            this.toolBar.Name       = "toolBar";
            this.toolBar.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
            this.toolBar.Size       = new System.Drawing.Size(920, 80);
            this.toolBar.TabIndex   = 16;
            //
            // cmdNewLink
            //
            this.cmdNewLink.AutoSize = false;
            this.cmdNewLink.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.新建SqlServer连接ToolStripMenuItem,
                this.新建MySql连接ToolStripMenuItem,
                this.新建SQLite连接ToolStripMenuItem,
                this.新建MongoDB连接ToolStripMenuItem
            });
            this.cmdNewLink.Image             = ((System.Drawing.Image)(resources.GetObject("cmdNewLink.Image")));
            this.cmdNewLink.ImageAlign        = System.Drawing.ContentAlignment.TopCenter;
            this.cmdNewLink.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cmdNewLink.Name              = "cmdNewLink";
            this.cmdNewLink.Size              = new System.Drawing.Size(80, 55);
            this.cmdNewLink.Text              = "新建连接";
            this.cmdNewLink.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
            this.cmdNewLink.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            //
            // 新建SqlServer连接ToolStripMenuItem
            //
            this.新建SqlServer连接ToolStripMenuItem.Name   = "新建SqlServer连接ToolStripMenuItem";
            this.新建SqlServer连接ToolStripMenuItem.Size   = new System.Drawing.Size(184, 22);
            this.新建SqlServer连接ToolStripMenuItem.Text   = "新建SqlServer连接";
            this.新建SqlServer连接ToolStripMenuItem.Click += new System.EventHandler(this.NewLinkServer_Click);
            //
            // 新建MySql连接ToolStripMenuItem
            //
            this.新建MySql连接ToolStripMenuItem.Name   = "新建MySql连接ToolStripMenuItem";
            this.新建MySql连接ToolStripMenuItem.Size   = new System.Drawing.Size(184, 22);
            this.新建MySql连接ToolStripMenuItem.Text   = "新建MySql连接";
            this.新建MySql连接ToolStripMenuItem.Click += new System.EventHandler(this.NewLinkServer_Click);
            //
            // 新建SQLite连接ToolStripMenuItem
            //
            this.新建SQLite连接ToolStripMenuItem.Name   = "新建SQLite连接ToolStripMenuItem";
            this.新建SQLite连接ToolStripMenuItem.Size   = new System.Drawing.Size(184, 22);
            this.新建SQLite连接ToolStripMenuItem.Text   = "新建SQLite连接";
            this.新建SQLite连接ToolStripMenuItem.Click += new System.EventHandler(this.NewLinkServer_Click);
            //
            // 新建MongoDB连接ToolStripMenuItem
            //
            this.新建MongoDB连接ToolStripMenuItem.Name   = "新建MongoDB连接ToolStripMenuItem";
            this.新建MongoDB连接ToolStripMenuItem.Size   = new System.Drawing.Size(184, 22);
            this.新建MongoDB连接ToolStripMenuItem.Text   = "新建MongoDB连接";
            this.新建MongoDB连接ToolStripMenuItem.Click += new System.EventHandler(this.NewLinkServer_Click);
            //
            // cmdNewQuery
            //
            this.cmdNewQuery.AutoSize          = false;
            this.cmdNewQuery.Image             = ((System.Drawing.Image)(resources.GetObject("cmdNewQuery.Image")));
            this.cmdNewQuery.ImageAlign        = System.Drawing.ContentAlignment.TopCenter;
            this.cmdNewQuery.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cmdNewQuery.Name              = "cmdNewQuery";
            this.cmdNewQuery.Size              = new System.Drawing.Size(80, 55);
            this.cmdNewQuery.Text              = "新建查询(&Z)";
            this.cmdNewQuery.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
            this.cmdNewQuery.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.cmdNewQuery.Click            += new System.EventHandler(this.cmdNewQuery_Click);
            //
            // cmdTable
            //
            this.cmdTable.AutoSize          = false;
            this.cmdTable.Image             = ((System.Drawing.Image)(resources.GetObject("cmdTable.Image")));
            this.cmdTable.ImageAlign        = System.Drawing.ContentAlignment.TopCenter;
            this.cmdTable.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cmdTable.Name              = "cmdTable";
            this.cmdTable.Size              = new System.Drawing.Size(80, 55);
            this.cmdTable.Text              = "表";
            this.cmdTable.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
            this.cmdTable.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.cmdTable.Click            += new System.EventHandler(this.cmdTable_Click);
            //
            // cmdView
            //
            this.cmdView.AutoSize          = false;
            this.cmdView.Image             = ((System.Drawing.Image)(resources.GetObject("cmdView.Image")));
            this.cmdView.ImageAlign        = System.Drawing.ContentAlignment.TopCenter;
            this.cmdView.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cmdView.Name              = "cmdView";
            this.cmdView.Size              = new System.Drawing.Size(80, 55);
            this.cmdView.Text              = "视图";
            this.cmdView.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
            this.cmdView.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.cmdView.Click            += new System.EventHandler(this.cmdView_Click);
            //
            // cmdFunction
            //
            this.cmdFunction.AutoSize          = false;
            this.cmdFunction.Image             = ((System.Drawing.Image)(resources.GetObject("cmdFunction.Image")));
            this.cmdFunction.ImageAlign        = System.Drawing.ContentAlignment.TopCenter;
            this.cmdFunction.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cmdFunction.Name              = "cmdFunction";
            this.cmdFunction.Size              = new System.Drawing.Size(80, 55);
            this.cmdFunction.Text              = "函数";
            this.cmdFunction.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
            this.cmdFunction.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.cmdFunction.Click            += new System.EventHandler(this.cmdFunction_Click);
            //
            // cmdProc
            //
            this.cmdProc.AutoSize          = false;
            this.cmdProc.Image             = ((System.Drawing.Image)(resources.GetObject("cmdProc.Image")));
            this.cmdProc.ImageAlign        = System.Drawing.ContentAlignment.TopCenter;
            this.cmdProc.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cmdProc.Name              = "cmdProc";
            this.cmdProc.Size              = new System.Drawing.Size(80, 55);
            this.cmdProc.Text              = "存储过程";
            this.cmdProc.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
            this.cmdProc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.cmdProc.Click            += new System.EventHandler(this.cmdProc_Click);
            //
            // cmdDbRelationView
            //
            this.cmdDbRelationView.AutoSize          = false;
            this.cmdDbRelationView.Image             = ((System.Drawing.Image)(resources.GetObject("cmdDbRelationView.Image")));
            this.cmdDbRelationView.ImageAlign        = System.Drawing.ContentAlignment.TopCenter;
            this.cmdDbRelationView.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cmdDbRelationView.Name              = "cmdDbRelationView";
            this.cmdDbRelationView.Size              = new System.Drawing.Size(80, 55);
            this.cmdDbRelationView.Text              = "数据库关系图";
            this.cmdDbRelationView.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
            this.cmdDbRelationView.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.cmdDbRelationView.Click            += new System.EventHandler(this.cmdDbRelationView_Click);
            //
            // cmdRefreshAgain
            //
            this.cmdRefreshAgain.AutoSize          = false;
            this.cmdRefreshAgain.Image             = ((System.Drawing.Image)(resources.GetObject("cmdRefreshAgain.Image")));
            this.cmdRefreshAgain.ImageAlign        = System.Drawing.ContentAlignment.TopCenter;
            this.cmdRefreshAgain.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cmdRefreshAgain.Name              = "cmdRefreshAgain";
            this.cmdRefreshAgain.Size              = new System.Drawing.Size(80, 55);
            this.cmdRefreshAgain.Text              = "重新刷新";
            this.cmdRefreshAgain.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
            this.cmdRefreshAgain.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.cmdRefreshAgain.Click            += new System.EventHandler(this.cmdRefreshAgain_Click);
            //
            // cmdSearch
            //
            this.cmdSearch.AutoSize          = false;
            this.cmdSearch.Image             = ((System.Drawing.Image)(resources.GetObject("cmdSearch.Image")));
            this.cmdSearch.ImageAlign        = System.Drawing.ContentAlignment.TopCenter;
            this.cmdSearch.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cmdSearch.Name              = "cmdSearch";
            this.cmdSearch.Size              = new System.Drawing.Size(80, 55);
            this.cmdSearch.Text              = "搜索";
            this.cmdSearch.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
            this.cmdSearch.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.cmdSearch.Click            += new System.EventHandler(this.cmdSearch_Click);
            //
            // cmdCodeMaker
            //
            this.cmdCodeMaker.AutoSize          = false;
            this.cmdCodeMaker.Image             = ((System.Drawing.Image)(resources.GetObject("cmdCodeMaker.Image")));
            this.cmdCodeMaker.ImageAlign        = System.Drawing.ContentAlignment.TopCenter;
            this.cmdCodeMaker.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cmdCodeMaker.Name              = "cmdCodeMaker";
            this.cmdCodeMaker.Size              = new System.Drawing.Size(80, 55);
            this.cmdCodeMaker.Text              = "代码生成";
            this.cmdCodeMaker.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
            this.cmdCodeMaker.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.cmdCodeMaker.Click            += new System.EventHandler(this.cmdCodeMaker_Click_1);
            //
            // txtDefaultDatabase
            //
            this.txtDefaultDatabase.Name = "txtDefaultDatabase";
            this.txtDefaultDatabase.Size = new System.Drawing.Size(100, 80);
            //
            // imgList
            //
            this.imgList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imgList.ImageStream")));
            this.imgList.TransparentColor = System.Drawing.Color.Transparent;
            this.imgList.Images.SetKeyName(0, "00758.png");
            this.imgList.Images.SetKeyName(1, "00066.png");
            this.imgList.Images.SetKeyName(2, "00083.png");
            this.imgList.Images.SetKeyName(3, "00405.png");
            this.imgList.Images.SetKeyName(4, "");
            //
            // bckWorker
            //
            this.bckWorker.DoWork             += new System.ComponentModel.DoWorkEventHandler(this.BckWorkerDoWork);
            this.bckWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.BckWorkerRunWorkerCompleted);
            //
            // statusStrip
            //
            this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.toolStripStatusLabel1,
                this.cmdProgressBar,
                this.lblMemory
            });
            this.statusStrip.Location = new System.Drawing.Point(0, 401);
            this.statusStrip.Name     = "statusStrip";
            this.statusStrip.Size     = new System.Drawing.Size(920, 22);
            this.statusStrip.TabIndex = 27;
            this.statusStrip.Text     = "statusStrip";
            //
            // toolStripStatusLabel1
            //
            this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
            this.toolStripStatusLabel1.Size = new System.Drawing.Size(0, 17);
            //
            // cmdProgressBar
            //
            this.cmdProgressBar.Name    = "cmdProgressBar";
            this.cmdProgressBar.Size    = new System.Drawing.Size(100, 16);
            this.cmdProgressBar.Style   = System.Windows.Forms.ProgressBarStyle.Marquee;
            this.cmdProgressBar.Visible = false;
            //
            // lblMemory
            //
            this.lblMemory.Name   = "lblMemory";
            this.lblMemory.Size   = new System.Drawing.Size(905, 17);
            this.lblMemory.Spring = true;
            //
            // dockPanel
            //
            this.dockPanel.BorderStyle                               = System.Windows.Forms.BorderStyle.FixedSingle;
            this.dockPanel.Dock                                      = System.Windows.Forms.DockStyle.Fill;
            this.dockPanel.Location                                  = new System.Drawing.Point(0, 105);
            this.dockPanel.Name                                      = "dockPanel";
            this.dockPanel.RightToLeftLayout                         = true;
            this.dockPanel.Size                                      = new System.Drawing.Size(920, 296);
            dockPanelGradient4.EndColor                              = System.Drawing.SystemColors.ControlLight;
            dockPanelGradient4.StartColor                            = System.Drawing.SystemColors.ControlLight;
            autoHideStripSkin2.DockStripGradient                     = dockPanelGradient4;
            tabGradient8.EndColor                                    = System.Drawing.SystemColors.Control;
            tabGradient8.StartColor                                  = System.Drawing.SystemColors.Control;
            tabGradient8.TextColor                                   = System.Drawing.SystemColors.ControlDarkDark;
            autoHideStripSkin2.TabGradient                           = tabGradient8;
            autoHideStripSkin2.TextFont                              = new System.Drawing.Font("Microsoft YaHei UI", 9F);
            dockPanelSkin2.AutoHideStripSkin                         = autoHideStripSkin2;
            tabGradient9.EndColor                                    = System.Drawing.SystemColors.ControlLightLight;
            tabGradient9.StartColor                                  = System.Drawing.SystemColors.ControlLightLight;
            tabGradient9.TextColor                                   = System.Drawing.SystemColors.ControlText;
            dockPaneStripGradient2.ActiveTabGradient                 = tabGradient9;
            dockPanelGradient5.EndColor                              = System.Drawing.SystemColors.Control;
            dockPanelGradient5.StartColor                            = System.Drawing.SystemColors.Control;
            dockPaneStripGradient2.DockStripGradient                 = dockPanelGradient5;
            tabGradient10.EndColor                                   = System.Drawing.SystemColors.ControlLight;
            tabGradient10.StartColor                                 = System.Drawing.SystemColors.ControlLight;
            tabGradient10.TextColor                                  = System.Drawing.SystemColors.ControlText;
            dockPaneStripGradient2.InactiveTabGradient               = tabGradient10;
            dockPaneStripSkin2.DocumentGradient                      = dockPaneStripGradient2;
            dockPaneStripSkin2.TextFont                              = new System.Drawing.Font("Microsoft YaHei UI", 9F);
            tabGradient11.EndColor                                   = System.Drawing.SystemColors.ActiveCaption;
            tabGradient11.LinearGradientMode                         = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            tabGradient11.StartColor                                 = System.Drawing.SystemColors.GradientActiveCaption;
            tabGradient11.TextColor                                  = System.Drawing.SystemColors.ActiveCaptionText;
            dockPaneStripToolWindowGradient2.ActiveCaptionGradient   = tabGradient11;
            tabGradient12.EndColor                                   = System.Drawing.SystemColors.Control;
            tabGradient12.StartColor                                 = System.Drawing.SystemColors.Control;
            tabGradient12.TextColor                                  = System.Drawing.SystemColors.ControlText;
            dockPaneStripToolWindowGradient2.ActiveTabGradient       = tabGradient12;
            dockPanelGradient6.EndColor                              = System.Drawing.SystemColors.ControlLight;
            dockPanelGradient6.StartColor                            = System.Drawing.SystemColors.ControlLight;
            dockPaneStripToolWindowGradient2.DockStripGradient       = dockPanelGradient6;
            tabGradient13.EndColor                                   = System.Drawing.SystemColors.InactiveCaption;
            tabGradient13.LinearGradientMode                         = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            tabGradient13.StartColor                                 = System.Drawing.SystemColors.GradientInactiveCaption;
            tabGradient13.TextColor                                  = System.Drawing.SystemColors.InactiveCaptionText;
            dockPaneStripToolWindowGradient2.InactiveCaptionGradient = tabGradient13;
            tabGradient14.EndColor                                   = System.Drawing.Color.Transparent;
            tabGradient14.StartColor                                 = System.Drawing.Color.Transparent;
            tabGradient14.TextColor                                  = System.Drawing.SystemColors.ControlDarkDark;
            dockPaneStripToolWindowGradient2.InactiveTabGradient     = tabGradient14;
            dockPaneStripSkin2.ToolWindowGradient                    = dockPaneStripToolWindowGradient2;
            dockPanelSkin2.DockPaneStripSkin                         = dockPaneStripSkin2;
            this.dockPanel.TabIndex                                  = 30;
            //
            // contextMenu
            //
            this.contextMenu.Name = "contextMenu";
            this.contextMenu.Size = new System.Drawing.Size(61, 4);
            //
            // timer
            //
            this.timer.Interval = 5000;
            this.timer.Tick    += new System.EventHandler(this.timer_Tick);
            //
            // FrmDataBaseMain
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(920, 423);
            this.Controls.Add(this.dockPanel);
            this.Controls.Add(this.toolBar);
            this.Controls.Add(this.menuStrip);
            this.Controls.Add(this.statusStrip);
            this.Font              = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.FormBorderStyle   = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Icon              = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.IsMdiContainer    = true;
            this.MainMenuStrip     = this.menuStrip;
            this.Name              = "FrmDataBaseMain";
            this.RightToLeftLayout = true;
            this.Text              = "数据库管理工具";
            this.WindowState       = System.Windows.Forms.FormWindowState.Maximized;
            this.FormClosing      += new System.Windows.Forms.FormClosingEventHandler(this.FrmDataBaseMain_FormClosing);
            this.Load             += new System.EventHandler(this.FrmDataBaseMain_Load);
            this.menuStrip.ResumeLayout(false);
            this.menuStrip.PerformLayout();
            this.toolBar.ResumeLayout(false);
            this.toolBar.PerformLayout();
            this.statusStrip.ResumeLayout(false);
            this.statusStrip.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Example #25
0
        private void InitializeComponent()
        {
            _dockedToolStrips = new Dictionary <String, DockedToolStrip>();

            _mainMenuStrip          = new MenuStrip();
            _mainToolStripPanel     = new ToolStripPanel();
            _dockPanel              = new DockPanel();
            _mainStatusStrip        = new StatusStrip();
            _mainStatusStripMessage = new ToolStripStatusLabel();

            _mainStatusStripTimer         = new Timer();
            _mainStatusStripTimer.Enabled = false;
            _mainStatusStripTimer.Tick   +=
                new EventHandler(MainStatusStripTimer_Tick);

            SuspendLayout();
            _mainMenuStrip.SuspendLayout();
            _mainToolStripPanel.SuspendLayout();
            _dockPanel.SuspendLayout();
            _mainStatusStrip.SuspendLayout();

            #region Main Menu

            UI_FILE_MENU                        = new ToolStripMenuItem();
            UI_FILE_MENU_NEW                    = new ToolStripMenuItem();
            UI_FILE_MENU_OPEN                   = new ToolStripMenuItem();
            UI_FILE_MENU_SAVE                   = new ToolStripMenuItem();
            UI_FILE_MENU_SAVE_AS                = new ToolStripMenuItem();
            UI_FILE_MENU_SAVE_ALL               = new ToolStripMenuItem();
            UI_FILE_MENU_RECENT_FILES           = new ToolStripMenuItem();
            UI_FILE_MENU_EXIT                   = new ToolStripMenuItem();
            UI_VIEW_MENU                        = new ToolStripMenuItem();
            UI_VIEW_MENU_TOOLBAR                = new ToolStripMenuItem();
            UI_VIEW_MENU_STATUSBAR              = new ToolStripMenuItem();
            UI_VIEW_MENU_FULLSCREEN             = new ToolStripMenuItem();
            UI_TOOLS_MENU                       = new ToolStripMenuItem();
            UI_TOOLS_MENU_OPTIONS               = new ToolStripMenuItem();
            UI_WINDOW_MENU                      = new ToolStripMenuItem();
            UI_WINDOW_MENU_CLOSE                = new ToolStripMenuItem();
            UI_WINDOW_MENU_CLOSE_ALL            = new ToolStripMenuItem();
            UI_WINDOW_MENU_CLOSE_ALL_BUT_ACTIVE = new ToolStripMenuItem();
            UI_HELP_MENU                        = new ToolStripMenuItem();
            UI_HELP_MENU_ABOUT                  = new ToolStripMenuItem();

            _mainMenuStrip.Location = new Point(0, 0);
            _mainMenuStrip.Name     = "mainMenuStrip";
            _mainMenuStrip.Size     = new Size(692, 24);
            _mainMenuStrip.TabIndex = 0;
            _mainMenuStrip.Text     = "menuStrip1";
            _mainMenuStrip.Items.AddRange(new ToolStripItem[] {
                UI_FILE_MENU,
                UI_VIEW_MENU,
                UI_TOOLS_MENU,
                UI_WINDOW_MENU,
                UI_HELP_MENU
            });

            // UI_FILE_MENU
            UI_FILE_MENU.DropDownItems.AddRange(new ToolStripItem[] {
                UI_FILE_MENU_NEW,
                UI_FILE_MENU_OPEN,
                UI_FILE_MENU_SAVE,
                UI_FILE_MENU_SAVE_AS,
                UI_FILE_MENU_SAVE_ALL
            });

            if (_profile.MRUDocumentListMax > 0)
            {
                UI_FILE_MENU.DropDownItems.Add(UI_FILE_MENU_RECENT_FILES);
            }

            UI_FILE_MENU.DropDownItems.Add(UI_FILE_MENU_EXIT);

            UI_FILE_MENU.Name             = Constants.UI_FILE_MENU;
            UI_FILE_MENU.Text             = Resources.MainFileMenu;
            UI_FILE_MENU.DropDownOpening += new System.EventHandler(UI_FILE_MENU_DropDownOpening);

            // UI_FILE_MENU_NEW
            UI_FILE_MENU_NEW.Image = Resources.New;
            UI_FILE_MENU_NEW.ImageTransparentColor = Color.Fuchsia;
            UI_FILE_MENU_NEW.Name         = Constants.UI_FILE_MENU_NEW;
            UI_FILE_MENU_NEW.ShortcutKeys = ((Keys)((Keys.Control | Keys.N)));
            UI_FILE_MENU_NEW.Text         = Resources.MainFileMenuNew;
            UI_FILE_MENU_NEW.Click       += new System.EventHandler(UI_FILE_MENU_NEW_Click);

            // UI_FILE_MENU_OPEN
            UI_FILE_MENU_OPEN.Image = Resources.Open;
            UI_FILE_MENU_OPEN.ImageTransparentColor = Color.Fuchsia;
            UI_FILE_MENU_OPEN.Name         = Constants.UI_FILE_MENU_OPEN;
            UI_FILE_MENU_OPEN.ShortcutKeys = ((Keys)((Keys.Control | Keys.O)));
            UI_FILE_MENU_OPEN.Text         = Resources.MainFileMenuOpen;
            UI_FILE_MENU_OPEN.Click       += new System.EventHandler(UI_FILE_MENU_OPEN_Click);
            UI_FILE_MENU_OPEN.Tag          = new ToolStripItemTag()
            {
                IncludeSeparator = true
            };

            // UI_FILE_MENU_SAVE
            UI_FILE_MENU_SAVE.Image = Resources.Save;
            UI_FILE_MENU_SAVE.ImageTransparentColor = Color.Fuchsia;
            UI_FILE_MENU_SAVE.Name         = Constants.UI_FILE_MENU_SAVE;
            UI_FILE_MENU_SAVE.ShortcutKeys = ((Keys)((Keys.Control | Keys.S)));
            UI_FILE_MENU_SAVE.Text         = Resources.MainFileMenuSave;
            UI_FILE_MENU_SAVE.Click       += new System.EventHandler(UI_FILE_MENU_SAVE_Click);

            // UI_FILE_MENU_SAVE_AS
            UI_FILE_MENU_SAVE_AS.Name   = Constants.UI_FILE_MENU_SAVE_AS;
            UI_FILE_MENU_SAVE_AS.Text   = Resources.MainFileMenuSaveAs;
            UI_FILE_MENU_SAVE_AS.Click += new System.EventHandler(UI_FILE_MENU_SAVE_AS_Click);

            // UI_FILE_MENU_SAVE_ALL
            UI_FILE_MENU_SAVE_ALL.Image = Resources.SaveAll;
            UI_FILE_MENU_SAVE_ALL.ImageTransparentColor = Color.Fuchsia;
            UI_FILE_MENU_SAVE_ALL.Name         = Constants.UI_FILE_MENU_SAVE_ALL;
            UI_FILE_MENU_SAVE_ALL.ShortcutKeys = ((Keys)(((Keys.Control | Keys.Shift)
                                                          | Keys.S)));
            UI_FILE_MENU_SAVE_ALL.Text   = Resources.MainFileMenuSaveAll;
            UI_FILE_MENU_SAVE_ALL.Click += new System.EventHandler(UI_FILE_MENU_SAVE_ALL_Click);
            UI_FILE_MENU_SAVE_ALL.Tag    = new ToolStripItemTag()
            {
                IncludeSeparator = true
            };

            // UI_FILE_MENU_RECENT_FILES
            UI_FILE_MENU_RECENT_FILES.Name = Constants.UI_FILE_MENU_RECENT_FILES;
            UI_FILE_MENU_RECENT_FILES.Text = Resources.MainFileMenuRecentFiles;
            UI_FILE_MENU_RECENT_FILES.Tag  = new ToolStripItemTag()
            {
                IncludeSeparator = true
            };

            // UI_FILE_MENU_EXIT
            UI_FILE_MENU_EXIT.Name   = Constants.UI_FILE_MENU_EXIT;
            UI_FILE_MENU_EXIT.Text   = Resources.MainFileMenuExit;
            UI_FILE_MENU_EXIT.Click += new System.EventHandler(UI_FILE_MENU_EXIT_Click);
            UI_FILE_MENU_EXIT.Tag    = new ToolStripItemTag()
            {
                IncludeSeparator = true
            };

            // UI_VIEW_MENU
            UI_VIEW_MENU.DropDownItems.AddRange(new ToolStripItem[] {
                UI_VIEW_MENU_TOOLBAR,
                UI_VIEW_MENU_STATUSBAR,
                UI_VIEW_MENU_FULLSCREEN
            });
            UI_VIEW_MENU.Name = Constants.UI_VIEW_MENU;
            UI_VIEW_MENU.Text = Resources.MainViewMenu;

            // UI_VIEW_MENU_TOOLBARS
            UI_VIEW_MENU_TOOLBAR.Name = Constants.UI_VIEW_MENU_TOOLBAR;

            // UI_VIEW_MENU_STATUSBAR
            UI_VIEW_MENU_STATUSBAR.Checked      = true;
            UI_VIEW_MENU_STATUSBAR.CheckOnClick = true;
            UI_VIEW_MENU_STATUSBAR.CheckState   = CheckState.Checked;
            UI_VIEW_MENU_STATUSBAR.Name         = Constants.UI_VIEW_MENU_STATUSBAR;
            UI_VIEW_MENU_STATUSBAR.Text         = Resources.MainViewMenuStatusBar;
            UI_VIEW_MENU_STATUSBAR.Click       += new System.EventHandler(UI_VIEW_MENU_STATUSBAR_Click);
            UI_VIEW_MENU_STATUSBAR.Tag          = new ToolStripItemTag()
            {
                IncludeSeparator = true
            };

            // UI_VIEW_MENU_FULLSCREEN
            UI_VIEW_MENU_FULLSCREEN.Name  = Constants.UI_VIEW_MENU_FULLSCREEN;
            UI_VIEW_MENU_FULLSCREEN.Text  = Resources.MainViewMenuFullScreen;
            UI_VIEW_MENU_FULLSCREEN.Image = Resources.FullScreen;
            UI_VIEW_MENU_FULLSCREEN.ImageTransparentColor = Color.Fuchsia;
            UI_VIEW_MENU_FULLSCREEN.ShortcutKeys          = Keys.F11;
            UI_VIEW_MENU_FULLSCREEN.Click += new System.EventHandler(UI_VIEW_MENU_FULLSCREEN_Click);
            UI_VIEW_MENU_FULLSCREEN.Tag    = new ToolStripItemTag()
            {
                IncludeSeparator = true
            };

            // UI_TOOLS_MENU
            UI_TOOLS_MENU.DropDownItems.AddRange(new ToolStripItem[] {
                UI_TOOLS_MENU_OPTIONS
            });
            UI_TOOLS_MENU.Name = Constants.UI_TOOLS_MENU;
            UI_TOOLS_MENU.Text = Resources.MainToolsMenu;

            // UI_TOOLS_MENU_OPTIONS
            UI_TOOLS_MENU_OPTIONS.Name   = Constants.UI_TOOLS_MENU_OPTIONS;
            UI_TOOLS_MENU_OPTIONS.Text   = Resources.MainToolsMenuOptions;
            UI_TOOLS_MENU_OPTIONS.Click += new System.EventHandler(UI_TOOLS_MENU_OPTIONS_Click);
            UI_TOOLS_MENU_OPTIONS.Tag    = new ToolStripItemTag()
            {
                IncludeSeparator = true
            };

            // UI_WINDOW_MENU
            UI_WINDOW_MENU.DropDownItems.AddRange(new ToolStripItem[] {
                UI_WINDOW_MENU_CLOSE,
                UI_WINDOW_MENU_CLOSE_ALL,
                UI_WINDOW_MENU_CLOSE_ALL_BUT_ACTIVE
            });
            UI_WINDOW_MENU.Name             = Constants.UI_WINDOW_MENU;
            UI_WINDOW_MENU.Text             = Resources.MainWindowMenu;
            UI_WINDOW_MENU.DropDownOpening += new System.EventHandler(UI_WINDOW_MENU_DropDownOpening);

            // UI_WINDOW_MENU_CLOSE
            UI_WINDOW_MENU_CLOSE.Name   = Constants.UI_WINDOW_MENU_CLOSE;
            UI_WINDOW_MENU_CLOSE.Text   = Resources.MainWindowMenuClose;
            UI_WINDOW_MENU_CLOSE.Click += new System.EventHandler(UI_WINDOW_MENU_CLOSE_Click);

            // UI_WINDOW_MENU_CLOSE_ALL
            UI_WINDOW_MENU_CLOSE_ALL.Name   = Constants.UI_WINDOW_MENU_CLOSE_ALL;
            UI_WINDOW_MENU_CLOSE_ALL.Text   = Resources.MainWindowMenuCloseAll;
            UI_WINDOW_MENU_CLOSE_ALL.Click += new System.EventHandler(UI_WINDOW_MENU_CLOSE_ALL_Click);

            // UI_WINDOW_MENU_CLOSE_ALL_BUT_ACTIVE
            UI_WINDOW_MENU_CLOSE_ALL_BUT_ACTIVE.Name   = Constants.UI_WINDOW_MENU_CLOSE_ALL_BUT_ACTIVE;
            UI_WINDOW_MENU_CLOSE_ALL_BUT_ACTIVE.Text   = Resources.MainWindowMenuCloseAllButActive;
            UI_WINDOW_MENU_CLOSE_ALL_BUT_ACTIVE.Click += new System.EventHandler(UI_WINDOW_MENU_CLOSE_ALL_BUT_ACTIVE_Click);
            UI_WINDOW_MENU_CLOSE_ALL_BUT_ACTIVE.Tag    = new ToolStripItemTag()
            {
                IncludeSeparator = true
            };

            // UI_HELP_MENU
            UI_HELP_MENU.DropDownItems.AddRange(new ToolStripItem[] {
                UI_HELP_MENU_ABOUT
            });
            UI_HELP_MENU.Name = Constants.UI_HELP_MENU;
            UI_HELP_MENU.Text = Resources.MainHelpMenu;

            // UI_HELP_MENU_ABOUT
            UI_HELP_MENU_ABOUT.Name   = Constants.UI_HELP_MENU_ABOUT;
            UI_HELP_MENU_ABOUT.Text   = Resources.MainHelpMenuAbout;
            UI_HELP_MENU_ABOUT.Click += new System.EventHandler(UI_HELP_MENU_ABOUT_Click);
            UI_HELP_MENU_ABOUT.Tag    = new ToolStripItemTag()
            {
                IncludeSeparator = true
            };

            #endregion

            #region ToolStrip Panel

            _mainToolStripPanel.Dock = DockStyle.Top;

            #endregion

            #region DockPanel

            DockPanelSkin                   dockPanelSkin1                   = new DockPanelSkin();
            AutoHideStripSkin               autoHideStripSkin1               = new AutoHideStripSkin();
            DockPanelGradient               dockPanelGradient1               = new DockPanelGradient();
            TabGradient                     tabGradient1                     = new TabGradient();
            DockPaneStripSkin               dockPaneStripSkin1               = new DockPaneStripSkin();
            DockPaneStripGradient           dockPaneStripGradient1           = new DockPaneStripGradient();
            TabGradient                     tabGradient2                     = new TabGradient();
            DockPanelGradient               dockPanelGradient2               = new DockPanelGradient();
            TabGradient                     tabGradient3                     = new TabGradient();
            DockPaneStripToolWindowGradient dockPaneStripToolWindowGradient1 = new DockPaneStripToolWindowGradient();
            TabGradient                     tabGradient4                     = new TabGradient();
            TabGradient                     tabGradient5                     = new TabGradient();
            DockPanelGradient               dockPanelGradient3               = new DockPanelGradient();
            TabGradient                     tabGradient6                     = new TabGradient();
            TabGradient                     tabGradient7                     = new TabGradient();

            _dockPanel.ActiveAutoHideContent     = null;
            _dockPanel.AllowEndUserNestedDocking = true;
            _dockPanel.ActiveDocumentChanged    += new System.EventHandler(MainForm_ActiveDocumentChanged);
            _dockPanel.Dock                                          = DockStyle.Fill;
            _dockPanel.DockBackColor                                 = SystemColors.AppWorkspace;
            _dockPanel.Location                                      = new Point(0, 49);
            _dockPanel.Name                                          = "dockPanel";
            _dockPanel.Size                                          = new Size(692, 395);
            dockPanelGradient1.EndColor                              = SystemColors.ControlLight;
            dockPanelGradient1.StartColor                            = SystemColors.ControlLight;
            autoHideStripSkin1.DockStripGradient                     = dockPanelGradient1;
            tabGradient1.EndColor                                    = SystemColors.Control;
            tabGradient1.StartColor                                  = SystemColors.Control;
            tabGradient1.TextColor                                   = SystemColors.ControlDarkDark;
            autoHideStripSkin1.TabGradient                           = tabGradient1;
            dockPanelSkin1.AutoHideStripSkin                         = autoHideStripSkin1;
            tabGradient2.EndColor                                    = SystemColors.ControlLightLight;
            tabGradient2.StartColor                                  = SystemColors.ControlLightLight;
            tabGradient2.TextColor                                   = SystemColors.ControlText;
            dockPaneStripGradient1.ActiveTabGradient                 = tabGradient2;
            dockPanelGradient2.EndColor                              = SystemColors.Control;
            dockPanelGradient2.StartColor                            = SystemColors.Control;
            dockPaneStripGradient1.DockStripGradient                 = dockPanelGradient2;
            tabGradient3.EndColor                                    = SystemColors.ControlLight;
            tabGradient3.StartColor                                  = SystemColors.ControlLight;
            tabGradient3.TextColor                                   = SystemColors.ControlText;
            dockPaneStripGradient1.InactiveTabGradient               = tabGradient3;
            dockPaneStripSkin1.DocumentGradient                      = dockPaneStripGradient1;
            tabGradient4.EndColor                                    = SystemColors.ActiveCaption;
            tabGradient4.LinearGradientMode                          = LinearGradientMode.Vertical;
            tabGradient4.StartColor                                  = SystemColors.GradientActiveCaption;
            tabGradient4.TextColor                                   = SystemColors.ActiveCaptionText;
            dockPaneStripToolWindowGradient1.ActiveCaptionGradient   = tabGradient4;
            tabGradient5.EndColor                                    = SystemColors.Control;
            tabGradient5.StartColor                                  = SystemColors.Control;
            tabGradient5.TextColor                                   = SystemColors.ControlText;
            dockPaneStripToolWindowGradient1.ActiveTabGradient       = tabGradient5;
            dockPanelGradient3.EndColor                              = SystemColors.ControlLight;
            dockPanelGradient3.StartColor                            = SystemColors.ControlLight;
            dockPaneStripToolWindowGradient1.DockStripGradient       = dockPanelGradient3;
            tabGradient6.EndColor                                    = SystemColors.GradientInactiveCaption;
            tabGradient6.LinearGradientMode                          = LinearGradientMode.Vertical;
            tabGradient6.StartColor                                  = SystemColors.GradientInactiveCaption;
            tabGradient6.TextColor                                   = SystemColors.ControlText;
            dockPaneStripToolWindowGradient1.InactiveCaptionGradient = tabGradient6;
            tabGradient7.EndColor                                    = Color.Transparent;
            tabGradient7.StartColor                                  = Color.Transparent;
            tabGradient7.TextColor                                   = SystemColors.ControlDarkDark;
            dockPaneStripToolWindowGradient1.InactiveTabGradient     = tabGradient7;
            dockPaneStripSkin1.ToolWindowGradient                    = dockPaneStripToolWindowGradient1;
            dockPanelSkin1.DockPaneStripSkin                         = dockPaneStripSkin1;
            _dockPanel.Skin                                          = dockPanelSkin1;
            _dockPanel.TabIndex                                      = 3;

            #endregion

            #region Status Bar

            _mainStatusStrip.Location = new Point(0, 444);
            _mainStatusStrip.Name     = "mainStatusStrip";
            _mainStatusStrip.Size     = new Size(692, 22);
            _mainStatusStrip.TabIndex = 1;
            _mainStatusStrip.Text     = "statusStrip1";
            _mainStatusStrip.Items.AddRange(new ToolStripItem[] {
                _mainStatusStripMessage
            });

            _mainStatusStripMessage.Name = "mainStatusBarMessage";
            _mainStatusStripMessage.Size = new Size(0, 17);

            #endregion

            /*
             * MainForm
             */

            AutoScaleDimensions = new SizeF(6F, 13F);
            AutoScaleMode       = AutoScaleMode.Font;
            ClientSize          = new Size(692, 466);
            IsMdiContainer      = true;
            MainMenuStrip       = _mainMenuStrip;
            Name         = "MainForm";
            Text         = "MainForm";
            FormClosing += new FormClosingEventHandler(MainForm_FormClosing);
            AllowDrop    = true;

            if (!_applicationManager.ClientProfile.HaveFlag(
                    ClientFlags.CoreDisableDragAndDropFileOpen))
            {
                DragEnter += new DragEventHandler(MainForm_DragEnter);
                DragDrop  += new DragEventHandler(MainForm_DragDrop);
            }

            // Order is important here
            Controls.Add(_dockPanel);
            Controls.Add(_mainStatusStrip);
            Controls.Add(_mainToolStripPanel);
            Controls.Add(_mainMenuStrip);

            _mainStatusStrip.ResumeLayout(false);
            _mainStatusStrip.PerformLayout();
            _dockPanel.ResumeLayout(false);
            _dockPanel.PerformLayout();
            _mainToolStripPanel.ResumeLayout(false);
            _mainToolStripPanel.PerformLayout();
            _mainMenuStrip.ResumeLayout(false);
            _mainMenuStrip.PerformLayout();

            ResumeLayout(false);
            PerformLayout();
        }