/// <summary> /// Rename the model system /// </summary> /// <param name="ms">The model system to rename</param> /// <param name="newName">The name to change the model system to</param> /// <param name="error">An error message in case the operation fails</param> /// <returns>True if successful, false with an error message in case it fails</returns> public bool Rename(IModelSystem ms, string newName, ref string error) { var command = new XTMF.Commands.RenameModelSystem(this.Configuration, ms, newName); if (this.XTMFRuntime.ProcessCommand(command, ref error)) { return(true); } return(false); }
/// <summary> /// Rename the model system /// </summary> /// <param name="ms">The model system to rename</param> /// <param name="newName">The name to change the model system to</param> /// <param name="error">An error message in case the operation fails</param> /// <returns>True if successful, false with an error message in case it fails</returns> public bool Rename(IModelSystem ms, string newName, ref string error) { var command = new XTMF.Commands.RenameModelSystem( this.Configuration, ms, newName ); if ( this.XTMFRuntime.ProcessCommand( command, ref error ) ) { return true; } return false; }