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" }); }
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" }); }