///-------------------------------------------------------------------------------- /// <summary>This method sets the default values.</summary> ///-------------------------------------------------------------------------------- protected override void OnSetDefaults() { if (StageTransition.ReverseInstance != null) { EditStageTransition.TransformDataFromObject(StageTransition.ReverseInstance, null, false); } else if (StageTransition.IsAutoUpdated == true) { EditStageTransition.TransformDataFromObject(StageTransition, null, false); } else { StageTransition newStageTransition = new StageTransition(); newStageTransition.StageTransitionID = EditStageTransition.StageTransitionID; EditStageTransition.TransformDataFromObject(newStageTransition, null, false); } EditStageTransition.ResetModified(true); }
///-------------------------------------------------------------------------------- /// <summary>This method resets the data.</summary> ///-------------------------------------------------------------------------------- protected override void OnReset() { EditStageTransition.TransformDataFromObject(StageTransition, null, false); EditStageTransition.ResetModified(false); }