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); }
public JobPage(string domain, string assembly, string name) { FetchTitle = () => "任务详情"; FetchHeader = () => TheJob == null ? name : TheJob.Name; Sidebar = () => SidebarMenus.JobsMenu(domain, assembly, name); var set = StorageService.Provider.GetDomainDefines(); TheDomain = set.SingleOrDefault(s => s.Name == domain); TheAssembly = TheDomain == null ? null : TheDomain.JobSets.SingleOrDefault(s => s.ShortName == assembly); TheJob = TheAssembly == null ? null : TheAssembly.Jobs.SingleOrDefault(s => s.Name == name); }