public ResizeBar(Direction direction, IResizeSource resizeSource) { // Define initial state _direction = direction; _resizing = false; _resizeSource = resizeSource; // Always default to Control color this.BackColor = _resizeSource.ResizeBarColor; this.ForeColor = SystemColors.ControlText; UpdateStyle(_resizeSource.Style); }
/// <summary> /// Initializes a new instance of the ResizeBar class. /// </summary> /// <param name="direction">Direction for resizing.</param> /// <param name="resizeSource">Source of additional information.</param> public ResizeBar(LayoutDirection direction, IResizeSource resizeSource) { // Define initial state _direction = direction; _resizing = false; _resizeSource = resizeSource; _colorDetails = new ColorDetails(); // Always default to Control color this.BackColor = _resizeSource.ResizeBarColor; this.ForeColor = SystemColors.ControlText; UpdateStyle(_resizeSource.Style); // We need to know when the system colours have changed Microsoft.Win32.SystemEvents.UserPreferenceChanged += new Microsoft.Win32.UserPreferenceChangedEventHandler(OnUserPreferenceChanged); }
public ResizeAutoBar(Direction direction, IResizeSource resizeSource) : base(direction, resizeSource) { }
public ResizeAutoBar(River.Orqa.Controls.Common.Direction direction, IResizeSource resizeSource) : base(direction, resizeSource) { }