Beispiel #1
0
 void IStateAwareObject.StateSwitchSuccess(ObjectStateBase fromState, ObjectStateBase toState)
 {
     if (toState.StateName == "TraceFilterEnableState")
     {
         SwitchStateBySearchInListSelection();
     }
 }
 void IStateAwareObject.StateSwitchSuccess(ObjectStateBase fromState, ObjectStateBase toState)
 {
     if (toState != null && (toState.StateName == "LeftPanelTreeViewState" || toState.StateName == "LeftPanelActivityViewState"))
     {
         savedFindCriteria = null;
     }
 }
 public bool SwitchState(ObjectStateBase os)
 {
     if (os == null)
     {
         return(false);
     }
     return(SwitchState(os.StateName));
 }
 public ObjectStateMachineAttribute(Type objectStateType, bool isInitState, Type defaultNextObjectStateType)
 {
     if (objectStateType != null)
     {
         objectState      = (ObjectStateBase)Assembly.GetExecutingAssembly().CreateInstance(objectStateType.Namespace + "." + objectStateType.Name);
         this.isInitState = isInitState;
         if (defaultNextObjectStateType != null)
         {
             defaultNextObjectState = (ObjectStateBase)Assembly.GetExecutingAssembly().CreateInstance(defaultNextObjectStateType.Namespace + "." + defaultNextObjectStateType.Name);
         }
     }
 }
Beispiel #5
0
 void IStateAwareObject.StateSwitchFailed(ObjectStateBase fromState, ObjectStateBase toState, ObjectStateSwitchFailReason reason)
 {
 }
Beispiel #6
0
 void IStateAwareObject.PostStateSwitch(ObjectStateBase fromState, ObjectStateBase toState)
 {
 }
 void IStateAwareObject.StateSwitchSuccess(ObjectStateBase fromState, ObjectStateBase toState)
 {
 }