/// <summary> /// Constructor. /// </summary> internal ColorSwatchPanel() { InitializeComponent(); m_startX = m_swatchRegion.X + OUTER_PADDING; m_startY = m_swatchRegion.Y + OUTER_PADDING; this.colorTip.SetToolTip(this, "blah"); dragFormSwatch = new DragForm(); this.AllowDrop = true; }
/// <summary> /// Constructor. /// </summary> internal ColorSwatchPanel() { InitializeComponent(); m_startX = m_swatchRegion.X + OUTER_PADDING; m_startY = m_swatchRegion.Y + OUTER_PADDING; this.colorTip.SetToolTip( this, "blah" ); dragFormSwatch = new DragForm(); this.AllowDrop = true; }
/// <summary> /// Overrides the base class' OnLoad method and instantiates a new /// DragForm object that will be used to create the visual drag effect /// when adding the currently selected color to the color swatch panel. /// </summary> /// <param name="e">An EventArgs that contains the event data.</param> protected override void OnLoad(EventArgs e) { dragForm = new DragForm(); }
/// <summary> /// Overrides the base class' OnLoad method and instantiates a new /// DragForm object that will be used to create the visual drag effect /// when adding the currently selected color to the color swatch panel. /// </summary> /// <param name="e">An EventArgs that contains the event data.</param> protected override void OnLoad(EventArgs e) { dragForm = new DragForm(); }