comparison Implab.Fx/ControlBoundPromise.cs @ 106:d4e38929ce36 v2

promises refactoring
author cin
date Mon, 10 Nov 2014 18:00:28 +0300
parents b4c4d65b7def
children 2573b562e328
comparison
equal deleted inserted replaced
105:4d308952fd5e 106:d4e38929ce36
17 Safe.ArgumentNotNull(target, "target"); 17 Safe.ArgumentNotNull(target, "target");
18 18
19 m_target = target; 19 m_target = target;
20 } 20 }
21 21
22 protected override void InvokeHandler(HandlerDescriptor handler) { 22 protected override void InvokeHandler(AbstractHandler handler) {
23 if (m_target.InvokeRequired) 23 if (m_target.InvokeRequired)
24 m_target.BeginInvoke(new Action<HandlerDescriptor>(base.InvokeHandler), handler); 24 m_target.BeginInvoke(new Action<AbstractHandler>(base.InvokeHandler), handler);
25 else 25 else
26 base.InvokeHandler(handler); 26 base.InvokeHandler(handler);
27 } 27 }
28 } 28 }
29 } 29 }