예제 #1
0
 private void DownloadTaskDependency(object sender, GetTaskEventArgs e)
 {
     var activityAssemblyItem = GetActivityAssemblyItem(e);
     var references = DownloadTaskDependency(activityAssemblyItem);
     this.WorkflowDesigner.ImportAssemblies(references, canRefresh: false);
 }
예제 #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();
     }
 }
예제 #3
0
 private void GetTaskLastVersion(object sender, GetTaskEventArgs e)
 {
     if (this.GetTaskLastVersionChanged != null)
     {
         this.GetTaskLastVersionChanged(this, e);
     }
 }