Esempio n. 1
0
 /// <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);
     }
 }
Esempio n. 2
0
 /// <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);
     }
 }