예제 #1
0
 private static void UnsetDropDescriptionFlag(System.Windows.IDataObject dataObject, DataObjectExtensions.DropDescriptionFlags flag)
 {
     if (!DataObjectExtensions.dropDescriptions.ContainsKey(dataObject))
         return;
     DataObjectExtensions.DropDescriptionFlags descriptionFlags = DataObjectExtensions.dropDescriptions[dataObject];
     DataObjectExtensions.dropDescriptions[dataObject] = (descriptionFlags | flag) ^ flag;
 }
예제 #2
0
 private static void SetDropDescriptionFlag(System.Windows.IDataObject dataObject, DataObjectExtensions.DropDescriptionFlags flag)
 {
     if (DataObjectExtensions.dropDescriptions.ContainsKey(dataObject))
     {
         IDictionary<System.Windows.IDataObject, DataObjectExtensions.DropDescriptionFlags> dictionary;
         System.Windows.IDataObject index;
         (dictionary = DataObjectExtensions.dropDescriptions)[index = dataObject] = dictionary[index] | flag;
     }
     else
         DataObjectExtensions.dropDescriptions.Add(dataObject, flag);
 }