Пример #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;
     }
 }