/// <summary> /// Import a model system from a given location /// </summary> /// <param name="oldLocation">The location to load the project from</param> /// <param name="newName">The name to save this project as</param> /// <param name="error">A message containing any error encountered</param> /// <param name="replace">Should we remove any project with the same name?</param> /// <returns>If the import was successful</returns> public bool ImportModelSystem(string oldLocation, string newName, ref string error, bool replace = false) { var command = new XTMF.Commands.ImportModelSystem(this.Configuration, oldLocation, newName, replace); if (this.XTMFRuntime.ProcessCommand(command, ref error)) { return(true); } return(false); }
/// <summary> /// Import a model system from a given location /// </summary> /// <param name="oldLocation">The location to load the project from</param> /// <param name="newName">The name to save this project as</param> /// <param name="error">A message containing any error encountered</param> /// <param name="replace">Should we remove any project with the same name?</param> /// <returns>If the import was successful</returns> public bool ImportModelSystem(string oldLocation, string newName, ref string error, bool replace = false) { var command = new XTMF.Commands.ImportModelSystem( this.Configuration, oldLocation, newName, replace ); if ( this.XTMFRuntime.ProcessCommand( command, ref error ) ) { return true; } return false; }