/// <summary> /// Import a project 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 ImportProject(string oldLocation, string newName, ref string error, bool replace = false) { var command = new XTMF.Commands.ImportProject( this.Configuration, oldLocation, newName, replace ); if ( this.XTMFRuntime.ProcessCommand( command, ref error ) ) { return true; } return false; }
/// <summary> /// Import a project 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 ImportProject(string oldLocation, string newName, ref string error, bool replace = false) { var command = new XTMF.Commands.ImportProject( this.Configuration, oldLocation, newName, replace ); if ( this.XTMFRuntime.ProcessCommand( command, ref error ) ) { return true; } return false; }