internal override void _myFx_StatusChanged(ISimpleFx sender, FxStatusChangeEventArgs ea) { _myFx_StatusChanged_TimesCalled++; }
public void StatusChanged_DummyHandler(ISimpleFx sender, FxStatusChangeEventArgs ea) { StatusChanged_TimesCalled++; RecievedEventArgs = ea; RecievedSender = sender; }
internal override void _myFx_ExecuteCompleted(ISimpleFx sender, FxCompletedEventArgs ea) { _myFx_ExecuteCompleted_TimesCalled++; }
public void FxProgressEvent_DummyHandler(ISimpleFx sender, FxProgressEventArgs ea) { FxProgressEvent_TimesCalled++; RecievedEventArgs = ea; RecievedSender = sender; }
public void ExecuteCompleted_DummyHandler(ISimpleFx sender, FxCompletedEventArgs ea) { ExecuteCompleted_TimesCalled++; RecievedEventArgs = ea; RecievedSender = sender; }
internal void PersistFx(ISimpleFx fx, System.Xml.XmlWriter writer) { writer.WriteStartElement("Fx"); writer.WriteAttributeString("id", XmlConvert.ToString(fx.Id)); writer.WriteEndElement(); }
/// <summary> /// Handles StatusChanged events from the underlying Fx object and changes the /// element status accordingly. /// </summary> internal virtual void _myFx_StatusChanged(ISimpleFx sender, FxStatusChangeEventArgs ea) { if (sender != null) { switch (ea.NewStatus) { case FxStatus.UnInitialized: SetStatus(ElementStatus.Incomplete, ea.ChangeDriver, null); break; case FxStatus.Validating: SetStatus(ElementStatus.Executing, ea.ChangeDriver, null); break; case FxStatus.Executing: SetStatus(ElementStatus.Executing, ea.ChangeDriver, null); break; case FxStatus.Complete: SetStatus(ElementStatus.Complete, ea.ChangeDriver, null); break; case FxStatus.Error: SetStatus(ElementStatus.Error, ea.ChangeDriver, null); break; } } }
internal virtual void _myFx_ExecuteCompleted(ISimpleFx sender, FxCompletedEventArgs ea) { // !!! Important to always check for cancelled, then error, with EventArgs inheriting from AsyncCompletedEventArgs if (sender != null) { if (ea.Cancelled) { FxCompletedByCancel(ea.Message); } else if (ea.Error != null) { FxCompletedByError(ea.Error.Message); } else { FxCompleted(ea.Message); } } }