/// <summary> /// Initialize a new instance of the PaletteDragData class. /// </summary> /// <param name="showLeft">Should the left docking indicator be shown.</param> /// <param name="showRight">Should the right docking indicator be shown.</param> /// <param name="showTop">Should the top docking indicator be shown.</param> /// <param name="showBottom">Should the bottom docking indicator be shown.</param> /// <param name="showMiddle">Should the middle docking indicator be shown.</param> public RenderDragDockingData(bool showLeft, bool showRight, bool showTop, bool showBottom, bool showMiddle) { _flags = new BoolFlags31(); // Set initial settings (ShowBack is auto calculated from other flags) ShowLeft = showLeft; ShowRight = showRight; ShowTop = showTop; ShowBottom = showBottom; ShowMiddle = showMiddle; // Default valies _windowSize = Size.Empty; _rects = new Rectangle[5]; for (int i = 0; i < _rects.Length; i++) _rects[i] = Rectangle.Empty; }
/// <summary> /// Initialize a new instance of the PaletteDragData class. /// </summary> /// <param name="showLeft">Should the left docking indicator be shown.</param> /// <param name="showRight">Should the right docking indicator be shown.</param> /// <param name="showTop">Should the top docking indicator be shown.</param> /// <param name="showBottom">Should the bottom docking indicator be shown.</param> /// <param name="showMiddle">Should the middle docking indicator be shown.</param> public RenderDragDockingData(bool showLeft, bool showRight, bool showTop, bool showBottom, bool showMiddle) { _flags = new BoolFlags31(); // Set initial settings (ShowBack is auto calculated from other flags) ShowLeft = showLeft; ShowRight = showRight; ShowTop = showTop; ShowBottom = showBottom; ShowMiddle = showMiddle; // Default valies DockWindowSize = Size.Empty; _rects = new Rectangle[5]; for (int i = 0; i < _rects.Length; i++) { _rects[i] = Rectangle.Empty; } }