private void Init() { RecycleBin = new RecycleBin(this); PublicationTargets = new RDList <IPublicationTarget>(GetPublicationTargets, Caching.Enabled); PublicationFolders = new RDList <IPublicationFolder>(GetPublicationFolders, Caching.Enabled); PublicationPackages = new RDList <IPublicationPackage>(GetPublicationPackages, Caching.Enabled); InfoAttributes = new IndexedCachedList <int, IInfoAttribute>(GetInfoAttributes, x => x.Id, Caching.Enabled); ContentClassFolders = new ContentClassFolders(this, Caching.Enabled); Folders = new Folders(this, Caching.Enabled); ProjectVariants = new ProjectVariants(this, Caching.Enabled); LanguageVariants = new LanguageVariants(this, Caching.Enabled); DatabaseConnections = new DatabaseConnections(this, Caching.Enabled); Syllables = new Syllables(this, Caching.Enabled); Users = new ProjectUsers(this, Caching.Enabled); Workflows = new ProjectWorkflow(this, Caching.Enabled); Categories = new Categories(this); Keywords = new RDList <IKeyword>(GetKeywords, Caching.Enabled); AssignedGroups = new ProjectGroups(this, Caching.Enabled); OnlineUsers = new NameIndexedRDList <IUser>(GetOnlineUsers, Caching.Enabled); _clipboard = new ProjectClipboard(this); //AuthorizationPackages = new AuthorizationPackages(this); }
private Session() { ServerManager = new ServerManager(this); Locales = new IndexedCachedList <int, ISystemLocale>(GetLocales, x => x.LCID, Caching.Enabled); DialogLocales = new IndexedCachedList <string, IDialogLocale>(GetDialogLocales, x => x.LanguageAbbreviation, Caching.Enabled); }
protected Locale(ISession session, XmlElement xmlElement) { _session = session; LanguageAbbreviation = xmlElement.GetAttributeValue("id"); Country = xmlElement.GetAttributeValue("country"); Language = xmlElement.GetAttributeValue("language"); IsStandardLanguage = xmlElement.GetBoolAttributeValue("standardlanguage").GetValueOrDefault(); LCID = xmlElement.GetIntAttributeValue("lcid").GetValueOrDefault(); RFCLanguageId = xmlElement.GetAttributeValue("rfclanguageid"); DateTimeFormats = new IndexedCachedList <int, IDateTimeFormat>(GetFormats, x => x.TypeId, Caching.Enabled); }
private Session() { ServerManager = new ServerManager(this); Locales = new IndexedCachedList<int, ISystemLocale>(GetLocales, x => x.LCID, Caching.Enabled); DialogLocales = new IndexedCachedList<string, IDialogLocale>(GetDialogLocales, x => x.LanguageAbbreviation, Caching.Enabled); }
protected Locale(ISession session, XmlElement xmlElement) { _session = session; LanguageAbbreviation = xmlElement.GetAttributeValue("id"); Country = xmlElement.GetAttributeValue("country"); Language = xmlElement.GetAttributeValue("language"); IsStandardLanguage = xmlElement.GetBoolAttributeValue("standardlanguage").GetValueOrDefault(); LCID = xmlElement.GetIntAttributeValue("lcid").GetValueOrDefault(); RFCLanguageId = xmlElement.GetAttributeValue("rfclanguageid"); DateTimeFormats = new IndexedCachedList<int, IDateTimeFormat>(GetFormats, x => x.TypeId, Caching.Enabled); }