Example #1
0
 private void DownloadTaskDependency(object sender, GetTaskEventArgs e)
 {
     var activityAssemblyItem = GetActivityAssemblyItem(e);
     var references = DownloadTaskDependency(activityAssemblyItem);
     this.WorkflowDesigner.ImportAssemblies(references, canRefresh: false);
 }
Example #2
0
 private List<ActivityAssemblyItem> GetActivityAssemblyItem(GetTaskEventArgs e)
 {
     if (e.IsCollection)
     {
         return e.ActivityLibraries.Select(a => GetActivityAssemblyItem(a.Key, a.Value)).ToList();
     }
     else
     {
         return new[] { GetActivityAssemblyItem(e.ActivityLibraryName, e.Version) }.ToList();
     }
 }
Example #3
0
 private void GetTaskLastVersion(object sender, GetTaskEventArgs e)
 {
     if (this.GetTaskLastVersionChanged != null)
     {
         this.GetTaskLastVersionChanged(this, e);
     }
 }