##// END OF EJS Templates
pool refactoring
pool refactoring

File last commit:

r106:d4e38929ce36 v2
r117:8beee0d11de6 v2
Show More
ControlBoundPromise.cs
30 lines | 791 B | text/x-csharp | CSharpLexer
/ Implab.Fx / ControlBoundPromise.cs
cin
promises refactoring
r72 using System.Windows.Forms;
using System;
namespace Implab.Fx {
public class ControlBoundPromise<T> : Promise<T> {
readonly Control m_target;
public ControlBoundPromise(Control target) {
Safe.ArgumentNotNull(target, "target");
m_target = target;
}
cin
code cleaunp
r102 public ControlBoundPromise(Control target, IPromise parent)
: base(parent) {
cin
promises refactoring
r72 Safe.ArgumentNotNull(target, "target");
m_target = target;
}
cin
promises refactoring
r106 protected override void InvokeHandler(AbstractHandler handler) {
cin
promises refactoring
r72 if (m_target.InvokeRequired)
cin
promises refactoring
r106 m_target.BeginInvoke(new Action<AbstractHandler>(base.InvokeHandler), handler);
cin
promises refactoring
r72 else
base.InvokeHandler(handler);
}
}
}