public static WorkFlowManager Activate(string name) { WorkFlowManager workflow = workflows[name]; ActiveWorkFlow = workflow; workflow.CreateFirst(); activeWorkFlowName = name; return(workflow); }
public static WorkFlowManager Create(string name, ScrollableControl container, Type panelType) { WorkFlowManager workflow = new WorkFlowManager(); workflow.Container = container; workflow.InitialPanelType = panelType; workflows.Add(name, workflow); activeWorkFlowName = name; return(workflow); }