예제 #1
0
        public AdminPanelViewModel(PageForm page)
        {
            Page = page;
            Windows = new List<Window>();
            Css = new List<ResourcePath>();
            Urls = new AdminRoutes();

            Windows.Add(new AdminWindow());
            Tabs = new TabGroup("EyePatchTabs");
            Tabs.Add(new Tab
                         {
                             Name = "Pages",
                             CreateFunction = "ep.createPagesTab",
                             IconCssClass = "pages",
                             BodyCssClass = "pages-tab",
                             IsActive = true
                         });
            Tabs.Add(new Tab
                         {
                             Name = "Templates",
                             CreateFunction = "ep.createTemplatesTab",
                             IconCssClass = "templates",
                             BodyCssClass = "templates-tab"
                         });
            Tabs.Add(new Tab
                         {
                             Name = "Widgets",
                             CreateFunction = "ep.createWidgetsTab",
                             IconCssClass = "widgets",
                             BodyCssClass = "widgets-tab"
                         });
            Tabs.Add(new Tab
                         {
                             Name = "Images",
                             CreateFunction = "ep.createImagesTab",
                             IconCssClass = "images",
                             BodyCssClass = "images-tab"
                         });
        }
예제 #2
0
        public AdminPanelViewModel(PageForm page)
        {
            Page    = page;
            Windows = new List <Window>();
            Css     = new List <ResourcePath>();
            Urls    = new AdminRoutes();

            Windows.Add(new AdminWindow());
            Tabs = new TabGroup("EyePatchTabs");
            Tabs.Add(new Tab
            {
                Name           = "Pages",
                CreateFunction = "ep.createPagesTab",
                IconCssClass   = "pages",
                BodyCssClass   = "pages-tab",
                IsActive       = true
            });
            Tabs.Add(new Tab
            {
                Name           = "Templates",
                CreateFunction = "ep.createTemplatesTab",
                IconCssClass   = "templates",
                BodyCssClass   = "templates-tab"
            });
            Tabs.Add(new Tab
            {
                Name           = "Widgets",
                CreateFunction = "ep.createWidgetsTab",
                IconCssClass   = "widgets",
                BodyCssClass   = "widgets-tab"
            });
            Tabs.Add(new Tab
            {
                Name           = "Images",
                CreateFunction = "ep.createImagesTab",
                IconCssClass   = "images",
                BodyCssClass   = "images-tab"
            });
        }