public DomainPage(string name) { FetchTitle = () => Title; FetchHeader = () => TheDomain == null ? name : TheDomain.Name; Sidebar = () => SidebarMenus.DomainsMenu(name); var set = StorageService.Provider.GetDomainDefines(); TheDomain = set.SingleOrDefault(s => s.Name == name); }
public AssemblyPage(string domain, string name) { FetchTitle = () => $"{ (TheAssembly == null ? string.Empty : TheAssembly.ShortName) } 程序集任务定义详情"; FetchHeader = () => TheAssembly.Title; Sidebar = () => SidebarMenus.DomainsMenu(domain); var set = StorageService.Provider.GetDomainDefines(); TheDomain = set.SingleOrDefault(s => s.Name == domain); TheAssembly = TheDomain == null ? null : TheDomain.JobSets.SingleOrDefault(s => s.ShortName == name); }