Esempio n. 1
0
            public VS2012LightPaneIndicator(VS2012DarkTheme theme)
            {
                SizeMode = PictureBoxSizeMode.AutoSize;
                Image    = _bitmapPaneDiamond;
                Region   = new Region(DisplayingGraphicsPath);

                _bitmapPaneDiamond             = theme.ImageService.Dockindicator_PaneDiamond;
                _bitmapPaneDiamondLeft         = theme.ImageService.Dockindicator_PaneDiamond_Fill;
                _bitmapPaneDiamondRight        = theme.ImageService.Dockindicator_PaneDiamond_Fill;
                _bitmapPaneDiamondTop          = theme.ImageService.Dockindicator_PaneDiamond_Fill;
                _bitmapPaneDiamondBottom       = theme.ImageService.Dockindicator_PaneDiamond_Fill;
                _bitmapPaneDiamondFill         = theme.ImageService.Dockindicator_PaneDiamond_Fill;
                _bitmapPaneDiamondHotSpot      = theme.ImageService.Dockindicator_PaneDiamond_Hotspot;
                _bitmapPaneDiamondHotSpotIndex = theme.ImageService.DockIndicator_PaneDiamond_HotspotIndex;
                _displayingGraphicsPath        = DrawHelper.CalculateGraphicsPathFromBitmap(_bitmapPaneDiamond);
            }
            public VS2012LightPanelIndicator(DockStyle dockStyle, VS2012DarkTheme theme)
            {
                m_dockStyle = dockStyle;
                SizeMode    = PictureBoxSizeMode.AutoSize;
                Image       = ImageInactive;

                _imagePanelLeft         = theme.ImageService.DockIndicator_PanelLeft;
                _imagePanelRight        = theme.ImageService.DockIndicator_PanelRight;
                _imagePanelTop          = theme.ImageService.DockIndicator_PanelTop;
                _imagePanelBottom       = theme.ImageService.DockIndicator_PanelBottom;
                _imagePanelFill         = theme.ImageService.DockIndicator_PanelFill;
                _imagePanelLeftActive   = theme.ImageService.DockIndicator_PanelLeft;
                _imagePanelRightActive  = theme.ImageService.DockIndicator_PanelRight;
                _imagePanelTopActive    = theme.ImageService.DockIndicator_PanelTop;
                _imagePanelBottomActive = theme.ImageService.DockIndicator_PanelBottom;
                _imagePanelFillActive   = theme.ImageService.DockIndicator_PanelFill;
            }