コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }