示例#1
0
 public virtual void RemoveFileExtension(DtoFileInfo dtoFileInfo)
 {
     lock (this)
     {
         if ((SelectedFileExtensionList != null && !SelectedFileExtensionList.Contains(dtoFileInfo)) || SelectedFileExtensionList == null)
         {
             return;
         }
         SelectedFileExtensionList.Remove(dtoFileInfo);
         dtoFileInfo.UserSettings = null;
     }
 }
示例#2
0
 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;
     }
 }
示例#3
0
 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;
     }
 }