예제 #1
0
        public BlogWindowContents()
        {
            Urls = new BlogRoutes();

            Tabs = new TabGroup("BlogTabs");
            Tabs.Add(new Tab
                         {
                             Name = "Blog",
                             CreateFunction = "ep.blog.createBlogTab",
                             IconCssClass = "blog",
                             BodyCssClass = "blog-tab"
                         });

            Tabs.Add(new Tab
                         {
                             Name = "Drafts",
                             CreateFunction = "ep.blog.createDraftsTab",
                             IconCssClass = "drafts",
                             BodyCssClass = "drafts-tab"
                         });
            Tabs.Add(new Tab
                         {
                             Name = "Published",
                             CreateFunction = "ep.blog.createPublishedTab",
                             IconCssClass = "published",
                             BodyCssClass = "published-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"
                         });
        }