Example #1
0
 /// <summary>
 /// Add a new model system to a project
 /// </summary>
 /// <param name="project">The project to add the model system to</param>
 /// <param name="modelSystem">The modelsystem to add to the project</param>
 /// <param name="error">Te returned error message in case the operation fails</param>
 /// <returns>True if the operation succeeded, false otherwise with error message</returns>
 public bool AddModelSystemToProject(IProject project, IModelSystem modelSystem, ref string error)
 {
     var command = new XTMF.Commands.AddModelSystemToProject( project, modelSystem );
     if ( this.XTMFRuntime.ProcessCommand( command, ref error ) )
     {
         return true;
     }
     return false;
 }
Example #2
0
 /// <summary>
 /// Add a new model system to a project
 /// </summary>
 /// <param name="project">The project to add the model system to</param>
 /// <param name="modelSystem">The modelsystem to add to the project</param>
 /// <param name="error">Te returned error message in case the operation fails</param>
 /// <returns>True if the operation succeeded, false otherwise with error message</returns>
 public bool AddModelSystemToProject(IProject project, IModelSystem modelSystem, ref string error)
 {
     var command = new XTMF.Commands.AddModelSystemToProject( project, modelSystem );
     if ( this.XTMFRuntime.ProcessCommand( command, ref error ) )
     {
         return true;
     }
     return false;
 }