internal override void _myFx_StatusChanged(ISimpleFx sender, FxStatusChangeEventArgs ea)
 {
     _myFx_StatusChanged_TimesCalled++;
 }
Beispiel #2
0
 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++;
 }
Beispiel #4
0
 public void FxProgressEvent_DummyHandler(ISimpleFx sender, FxProgressEventArgs ea)
 {
     FxProgressEvent_TimesCalled++;
     RecievedEventArgs = ea;
     RecievedSender = sender;
 }
Beispiel #5
0
 public void ExecuteCompleted_DummyHandler(ISimpleFx sender, FxCompletedEventArgs ea)
 {
     ExecuteCompleted_TimesCalled++;
     RecievedEventArgs = ea;
     RecievedSender = sender;
 }
Beispiel #6
0
 internal void PersistFx(ISimpleFx fx, System.Xml.XmlWriter writer)
 {
     writer.WriteStartElement("Fx");
     writer.WriteAttributeString("id", XmlConvert.ToString(fx.Id));
     writer.WriteEndElement();
 }
Beispiel #7
0
 /// <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;
         }
     }
 }
Beispiel #8
0
 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);
         }
     }
 }