Exemplo n.º 1
0
        public ControlTile(ControlContainerMembers data)
        {
            tileMembers = data;

            var GetControlDataFunc = data.Item2.Item1 as Func <int, ControlMembers>;
            Func <int, TerminalControlBase> GetControlFunc = (x => new TerminalControl(GetControlDataFunc(x)));

            Controls = new ReadOnlyApiCollection <TerminalControlBase>(GetControlFunc, data.Item2.Item2);
        }
Exemplo n.º 2
0
            public ControlCategory(ControlContainerMembers data)
            {
                this.data = data;

                var GetTileDataFunc = data.Item2.Item1 as Func <int, ControlContainerMembers>;
                Func <int, ControlTile> GetTileFunc = x => new ControlTile(GetTileDataFunc(x));

                Tiles = new ReadOnlyApiCollection <ControlTile>(GetTileFunc, data.Item2.Item2);
            }
Exemplo n.º 3
0
            public TerminalPageCategoryBase(ControlContainerMembers data)
            {
                this.data = data;

                var GetPageDataFunc = data.Item2.Item1 as Func <int, ControlMembers>;
                Func <int, TerminalPageBase> GetPageFunc = (x => new TerminalPage(GetPageDataFunc(x)));

                Pages = new ReadOnlyApiCollection <TerminalPageBase>(GetPageFunc, data.Item2.Item2);
            }
Exemplo n.º 4
0
                public ModControlRoot(ControlContainerMembers data) : base(data)
                {
                    GetOrSetMemberFunc(new Action(ModRootCallback), (int)ModControlRootAccessors.GetOrSetCallback);

                    var GetCategoryDataFunc = GetOrSetMemberFunc(null, (int)ModControlRootAccessors.GetCategoryAccessors)
                                              as Func <int, ControlContainerMembers>;

                    Func <int, TerminalPageCategoryBase> GetPageFunc = (x => new TerminalPageCategoryWrapper(GetCategoryDataFunc(x)));

                    Subcategories = new ReadOnlyApiCollection <TerminalPageCategoryBase>(GetPageFunc, data.Item2.Item2);
                }
Exemplo n.º 5
0
 public TerminalPageCategoryWrapper(ControlContainerMembers data) : base(data)
 {
 }