Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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));
        }