示例#1
0
 ///--------------------------------------------------------------------------------
 /// <summary>This method sets the default values.</summary>
 ///--------------------------------------------------------------------------------
 protected override void OnSetDefaults()
 {
     if (StateTransition.ReverseInstance != null)
     {
         EditStateTransition.TransformDataFromObject(StateTransition.ReverseInstance, null, false);
     }
     else if (StateTransition.IsAutoUpdated == true)
     {
         EditStateTransition.TransformDataFromObject(StateTransition, null, false);
     }
     else
     {
         StateTransition newStateTransition = new StateTransition();
         newStateTransition.StateTransitionID = EditStateTransition.StateTransitionID;
         EditStateTransition.TransformDataFromObject(newStateTransition, null, false);
     }
     EditStateTransition.ResetModified(true);
 }
示例#2
0
 ///--------------------------------------------------------------------------------
 /// <summary>This method resets the data.</summary>
 ///--------------------------------------------------------------------------------
 protected override void OnReset()
 {
     EditStateTransition.TransformDataFromObject(StateTransition, null, false);
     EditStateTransition.ResetModified(false);
 }