Пример #1
0
 protected async void ShareSelectedTasks(string machineName)
 {
     ApplicationViewModel.BeginAction(ActionType.ShareTask);
     try
     {
         foreach (var task in this.SelectedTasks)
         {
             await _viewsManager.ShareTaskAsync(machineName, this.ViewTemplate, task, task.GetSharedPath());
         }
     }
     catch (Exception e)
     {
         Logger.AddException(e);
     }
     finally
     {
         ApplicationViewModel.EndAction(ActionType.ShareTask);
     }
 }