##// END OF EJS Templates
sync
sync

File last commit:

r102:b4c4d65b7def v2
r103:b3f5bc613905 v2
Show More
ControlBoundPromise.cs
30 lines | 795 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;
}
protected override void InvokeHandler(HandlerDescriptor handler) {
if (m_target.InvokeRequired)
m_target.BeginInvoke(new Action<HandlerDescriptor>(base.InvokeHandler), handler);
else
base.InvokeHandler(handler);
}
}
}