static PanelIndicator() { _imagePanelLeft = ResourceHelper.LoadBitmap(_ResourceImagePanelLeft); _imagePanelRight = ResourceHelper.LoadBitmap(_ResourceImagePanelRight); _imagePanelTop = ResourceHelper.LoadBitmap(_ResourceImagePanelTop); _imagePanelBottom = ResourceHelper.LoadBitmap(_ResourceImagePanelBottom); _imagePanelFill = ResourceHelper.LoadBitmap(_ResourceImagePanelFill); _imagePanelLeftActive = ResourceHelper.LoadBitmap(_ResourceImagePanelLeftActive); _imagePanelRightActive = ResourceHelper.LoadBitmap(_ResourceImagePanelRightActive); _imagePanelTopActive = ResourceHelper.LoadBitmap(_ResourceImagePanelTopActive); _imagePanelBottomActive = ResourceHelper.LoadBitmap(_ResourceImagePanelBottomActive); _imagePanelFillActive = ResourceHelper.LoadBitmap(_ResourceImagePanelFillActive); }
static DocumentWindow() { ImageCloseEnabled = ResourceHelper.LoadBitmap("DocumentWindow.CloseEnabled.bmp"); ImageCloseDisabled = ResourceHelper.LoadBitmap("DocumentWindow.CloseDisabled.bmp"); ImageScrollLeftEnabled = ResourceHelper.LoadBitmap("DocumentWindow.ScrollLeftEnabled.bmp"); ImageScrollLeftDisabled = ResourceHelper.LoadBitmap("DocumentWindow.ScrollLeftDisabled.bmp"); ImageScrollRightEnabled = ResourceHelper.LoadBitmap("DocumentWindow.ScrollRightEnabled.bmp"); ImageScrollRightDisabled = ResourceHelper.LoadBitmap("DocumentWindow.ScrollRightDisabled.bmp"); ToolTipClose = ResourceHelper.GetString("DocumentWindow.Close"); ToolTipScrollLeft = ResourceHelper.GetString("DocumentWindow.ScrollLeft"); ToolTipScrollRight = ResourceHelper.GetString("DocumentWindow.ScrollRight"); StringFormatTab = new StringFormat(StringFormat.GenericTypographic); StringFormatTab.Alignment = StringAlignment.Center; StringFormatTab.Trimming = StringTrimming.EllipsisPath; StringFormatTab.LineAlignment = StringAlignment.Center; StringFormatTab.FormatFlags = StringFormatFlags.NoWrap; }
static PaneIndicator() { _bitmapPaneDiamond = ResourceHelper.LoadBitmap(_ResourceBitmapPaneDiamond); _bitmapPaneDiamondLeft = ResourceHelper.LoadBitmap(_ResourceBitmapPaneDiamondLeft); _bitmapPaneDiamondRight = ResourceHelper.LoadBitmap(_ResourceBitmapPaneDiamondRight); _bitmapPaneDiamondTop = ResourceHelper.LoadBitmap(_ResourceBitmapPaneDiamondTop); _bitmapPaneDiamondBottom = ResourceHelper.LoadBitmap(_ResourceBitmapPaneDiamondBottom); _bitmapPaneDiamondFill = ResourceHelper.LoadBitmap(_ResourceBitmapPaneDiamondFill); _bitmapPaneDiamondHotSpot = ResourceHelper.LoadBitmap(_ResourceBitmapPaneDiamondHotSpot); _bitmapPaneDiamondHotSpotIndex = ResourceHelper.LoadBitmap(_ResourceBitmapPaneDiamondHotSpotIndex); _hotSpots = new HotSpotIndex[] { new HotSpotIndex(1, 0, DockStyle.Top), new HotSpotIndex(0, 1, DockStyle.Left), new HotSpotIndex(1, 1, DockStyle.Fill), new HotSpotIndex(2, 1, DockStyle.Right), new HotSpotIndex(1, 2, DockStyle.Bottom) }; _displayingGraphicsPath = DrawHelper.CalculateGraphicsPathFromBitmap(_bitmapPaneDiamond); }
static DockWindow() { ImageCloseEnabled = ResourceHelper.LoadBitmap("DockWindow.CloseEnabled.bmp"); ImageCloseDisabled = ResourceHelper.LoadBitmap("DockWindow.CloseDisabled.bmp"); ImageAutoHideYes = ResourceHelper.LoadBitmap("DockWindow.AutoHideYes.bmp"); ImageAutoHideNo = ResourceHelper.LoadBitmap("DockWindow.AutoHideNo.bmp"); StringFormatCaption = new StringFormat(); StringFormatCaption.Trimming = StringTrimming.EllipsisCharacter; StringFormatCaption.LineAlignment = StringAlignment.Center; StringFormatCaption.FormatFlags = StringFormatFlags.NoWrap; StringFormatTab = new StringFormat(StringFormat.GenericTypographic); StringFormatTab.Trimming = StringTrimming.EllipsisCharacter; StringFormatTab.LineAlignment = StringAlignment.Center; StringFormatTab.FormatFlags = StringFormatFlags.NoWrap; ToolTipClose = ResourceHelper.GetString("DockWindow.Close"); ToolTipAutoHide = ResourceHelper.GetString("DockWindow.AutoHide"); }