Example #1
0
        Task ICommandHandler <AddScriptCommandDefinition> .Run(Command command)
        {
            Script script = ActiveScene.AddInstance <Script>() as Script;

            IoC.Get <IShell>().OpenDocument(new ScriptViewModel(script));

            return(TaskUtility.Completed);
        }
Example #2
0
        Task ICommandHandler <AddPartCommandDefinition> .Run(Command command)
        {
            ActiveScene.AddInstance <Part>();

            return(TaskUtility.Completed);
        }