public virtual void RemoveFileExtension(DtoFileInfo dtoFileInfo) { lock (this) { if ((SelectedFileExtensionList != null && !SelectedFileExtensionList.Contains(dtoFileInfo)) || SelectedFileExtensionList == null) { return; } SelectedFileExtensionList.Remove(dtoFileInfo); dtoFileInfo.UserSettings = null; } }
public virtual void AddFileExtension(DtoFileInfo dtoFileInfo) { lock (this) { if (SelectedFileExtensionList != null && SelectedFileExtensionList.Contains(dtoFileInfo)) { return; } if (SelectedFileExtensionList == null) { SelectedFileExtensionList = new List <DtoFileInfo>(); } SelectedFileExtensionList.Insert(0, dtoFileInfo); dtoFileInfo.UserSettings = this; } }
public virtual void AddFile(DtoFileInfo dtoFileInfo) { lock (this) { if (FileList != null && FileList.Contains(dtoFileInfo)) { return; } if (FileList == null) { FileList = new List <DtoFileInfo>(); } FileList.Add(dtoFileInfo); dtoFileInfo.Log = this; } }