///-------------------------------------------------------------------------------- /// <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); }
///-------------------------------------------------------------------------------- /// <summary>This method resets the data.</summary> ///-------------------------------------------------------------------------------- protected override void OnReset() { EditStateTransition.TransformDataFromObject(StateTransition, null, false); EditStateTransition.ResetModified(false); }