示例#1
0
        public Task ExecuteTask(Action action)
        {
            return(Task.Run(() =>
            {
                _projectTask.NewProject();

                action();

                _workspace.CloseProject();
            }));
        }
示例#2
0
 public void Execute()
 {
     _projectTask.NewProject();
 }