/// <summary> /// Uns the register control. /// </summary> private void UnRegisterControl() { if (this._ClickControl != null) { ClickAnimator metroAnimator = this; this._ClickControl.Paint -= new PaintEventHandler(metroAnimator.control_Paint); ClickAnimator metroAnimator1 = this; this._ClickControl.Click -= new EventHandler(metroAnimator1.control_Click); } }
/// <summary> /// Registers the control. /// </summary> private void RegisterControl() { if (this._ClickControl != null) { ClickAnimator metroAnimator = this; this._ClickControl.Paint += new PaintEventHandler(metroAnimator.control_Paint); ClickAnimator metroAnimator1 = this; this._ClickControl.Click += new EventHandler(metroAnimator1.control_Click); this.SetDoubleBuffered(this._ClickControl); } }