private void Enlist <T>(string label, Func <T> constructor) where T : ComparisonsListBase { _enlisteds.Add(_enlisteds.Count, constructor); ListNames.Add(label); App.Current.SetTemplate <T, JsComparerTable>(); }
public void Dispose() { ListNames.Dispose(); foreach (var wordList in WordsLists.Values) { wordList.Dispose(); } }
public void AddList(string listName, List <string> words) { ObservableVarList <string> wordList = new ObservableVarList <string>($"Words.Lists.{listName}"); wordList.AddRange(words); ListNames.Add(listName); WordsLists.Add(listName, wordList); }
public static bool Contains(string name) { if (ListNames == null) { return(false); } // ListNames is already loaded with all names to UpperCase return(ListNames.Contains(name.ToUpperInvariant())); }
public UserRepository(IUsersDetails userDetails, ISPList spList, IOptions <ListNames> listNames, IOptions <CamlQueries> camlQueries, IOptions <MatterSettings> matterSettings, ISearch search) { this.userDetails = userDetails; this.spList = spList; this.matterSettings = matterSettings.Value; this.camlQueries = camlQueries.Value; this.search = search; this.listNames = listNames.Value; }
public ValidationFunctions(ISPList spList, IOptions <MatterSettings> matterSettings, IOptions <ErrorSettings> errorSettings, IMatterRepository matterRespository, IOptions <ListNames> listNames, IOptions <CamlQueries> camlQueries) { this.matterSettings = matterSettings.Value; this.spList = spList; this.errorSettings = errorSettings.Value; this.matterRespository = matterRespository; this.listNames = listNames.Value; this.camlQueries = camlQueries.Value; }
public ExternalSharing(ISPOAuthorization spoAuthorization, IOptions <ListNames> listNames, IOptions <GeneralSettings> generalSettings, IOptions <MatterSettings> matterSettings, IOptions <LogTables> logTables, IUsersDetails userDetails) { this.spoAuthorization = spoAuthorization; this.listNames = listNames.Value; this.generalSettings = generalSettings.Value; this.matterSettings = matterSettings.Value; this.logTables = logTables.Value; this.userDetails = userDetails; }
/// <summary> /// Constructory which will inject all the related dependencies related to matter /// </summary> /// <param name="search"></param> public DocumentRepository(ISearch search, IOptions <SearchSettings> searchSettings, IOptions <ListNames> listNames, ISPList spList, IOptions <CamlQueries> camlQueries, IOptions <DocumentSettings> documentSettings, IOptions <MailSettings> mailSettings) { this.search = search; this.searchSettings = searchSettings.Value; this.listNames = listNames.Value; this.spList = spList; this.camlQueries = camlQueries.Value; this.documentSettings = documentSettings.Value; this.mailSettings = mailSettings.Value; }
public static void AddNameToList(string name) { if (name == null || name.Trim().Length == 0) { return; } //var normalCase = Regex.Replace(name.ToLowerInvariant(), "\\b\\w", x => x.Value.ToUpperInvariant(), RegexOptions.Compiled); name = name.ToUpperInvariant(); if (!ListNames.Contains(name)) { _listNewName.Add(name); SaveToXmlFile(); } }
/// <summary> /// Constructir where all the dependencies are injected /// </summary> /// <param name="spoAuthorization"></param> public UsersDetails(IOptions <MatterSettings> matterSettings, IOptions <ListNames> listNames, ISPOAuthorization spoAuthorization, ICustomLogger customLogger, IOptions <LogTables> logTables, IHttpContextAccessor httpContextAccessor, IOptions <GeneralSettings> generalSettings) { this.matterSettings = matterSettings.Value; this.listNames = listNames.Value; this.spoAuthorization = spoAuthorization; //this.spList = spList; this.customLogger = customLogger; this.logTables = logTables.Value; this.httpContextAccessor = httpContextAccessor; this.generalSettings = generalSettings.Value; }
// public interface: containers public void AddTileToList(GameObject tile, ListNames nameList) { switch (nameList) { case ListNames.tileListAdjacentTiles: listAdjacentTiles.Add(tile); break; case ListNames.tileListFrontier: listFrontier.Add(tile); break; case ListNames.tileListNeighbours: listNeighbours.Add(tile); break; default: break; } }
/// <summary> /// /// </summary> /// <param name="spPage"></param> /// <param name="listNames"></param> /// <param name="search"></param> public SharedRepository(ISPPage spPage, IOptions <ListNames> listNames, ISearch search) { this.spPage = spPage; this.listNames = listNames.Value; this.search = search; }