Example #1
0
 public void Dispose()
 {
     if (endaction != null && control != null)
     {
         ControlThreadExtesions.DoAction(control, endaction);
     }
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="control"></param>
 /// <param name="preaction"></param>
 /// <param name="endaction"></param>
 public ControlActionable(Control control, Action <Control> preaction, Action <Control> endaction)
 {
     this.endaction  = endaction;
     this._preaction = preaction;
     this.control    = control;
     ControlThreadExtesions.DoAction(control, preaction);
 }