Beispiel #1
0
 void OnSelectFlags(object o, EventArgs args)
 {
     using (FlagsSelectorDialog dialog = new FlagsSelectorDialog(null, propType, UIntValue, property)) {
         if (dialog.Run() == (int)ResponseType.Ok)
         {
             Value = Enum.ToObject(propType, dialog.Value);
         }
     }
 }
Beispiel #2
0
 void OnSelectFlags(object o, EventArgs args)
 {
     using (FlagsSelectorDialog dialog = new FlagsSelectorDialog (null, propType, UIntValue, property)) {
         if (dialog.Run () == (int) ResponseType.Ok) {
             Value = Enum.ToObject (propType, dialog.Value);
         }
     }
 }