Beispiel #1
0
 private static IEnumerable <Type> GetAllActivities()
 {
     Activity.GetExternalActivities();
     return(AppDomain.CurrentDomain.GetAssemblies()
            .SelectMany(x => x.GetTypes())
            .Where(x => !x.IsAbstract));
 }
Beispiel #2
0
        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);
        }