public static ILayoutComponent LoadLayoutComponent(string path, LiveSplitState state) { if (ComponentFactories == null) LoadAllFactories(); IComponent component = null; if (string.IsNullOrEmpty(path)) component = new SeparatorComponent(); else component = ComponentFactories[path].Create(state); return new LayoutComponent(path, component); }
public static ILayoutComponent LoadLayoutComponent(string path, LiveSplitState state) { if (ComponentFactories == null) { LoadAllFactories(); } IComponent component = null; if (string.IsNullOrEmpty(path)) { component = new SeparatorComponent(); } else { component = ComponentFactories[path].Create(state); } return(new LayoutComponent(path, component)); }