/////////////////////////////////////////////////////////////////////////////// // Construction and Initializing methods // /////////////////////////////////////////////////////////////////////////////// #region CONSTRUCTION /// <summary> /// Constructor. /// </summary> /// <param name="pt">Position of the new panel.</param> /// <param name="clrControl">owning control</param> /// <param name="currentColor">current color to use</param> public ColorPanel(Point pt, IColorControl clrControl, Color currentColor) { InitializeComponent(); _currentColor = currentColor; this._colorControl = clrControl; base.Width = 0x9c; base.Height = 100; if (this.autoButton != "") { base.Height += 0x17; } if (this.moreButton != "") { base.Height += 0x17; } base.CenterToScreen(); base.Location = pt; base.Capture = true; }
/////////////////////////////////////////////////////////////////////////////// // Construction and Initializing methods // /////////////////////////////////////////////////////////////////////////////// #region CONSTRUCTION /// <summary> /// Constructor. /// </summary> /// <param name="pt">Position of the new panel.</param> /// <param name="clrControl">owning control</param> /// <param name="currentColor">current color to use</param> public ColorPanel(Point pt, IColorControl clrControl, Color currentColor) { InitializeComponent(); _currentColor = currentColor; this._colorControl = clrControl; base.Width = 0x9c; base.Height = 100; if (this.autoButton != "") { base.Height += 0x17; } if (this.moreButton != "") { base.Height += 0x17; } base.CenterToScreen(); base.Location = pt; base.Capture = true; }