private static IEnumerable <Type> GetAllActivities() { Activity.GetExternalActivities(); return(AppDomain.CurrentDomain.GetAssemblies() .SelectMany(x => x.GetTypes()) .Where(x => !x.IsAbstract)); }
public static Panel Create() { var form = new ActivityForm(); form.activityTreeView.SetWindowTheme("explorer"); form.activityTreeView.Tag = Activity.GetExternalActivities(); form.activityTreeView.ItemDrag += TreeView1_ItemDrag; form.activityTextBox.TextChanged += (sender, e) => form.FilterTreeView(); form.FilterTreeView(); return(form.activityPanel); }