Task ICommandHandler <AddScriptCommandDefinition> .Run(Command command) { Script script = ActiveScene.AddInstance <Script>() as Script; IoC.Get <IShell>().OpenDocument(new ScriptViewModel(script)); return(TaskUtility.Completed); }
Task ICommandHandler <AddPartCommandDefinition> .Run(Command command) { ActiveScene.AddInstance <Part>(); return(TaskUtility.Completed); }