Пример #1
0
 void OnSelectFlags(object o, EventArgs args)
 {
     using (FlagsSelectorDialog dialog = new FlagsSelectorDialog(null, enm, UIntValue, property)) {
         if (dialog.Run() == (int)ResponseType.Ok)
         {
             Value = Enum.ToObject(enm.EnumType, dialog.Value);
         }
     }
 }
Пример #2
0
		void OnSelectFlags (object o, EventArgs args)
		{
			using (FlagsSelectorDialog dialog = new FlagsSelectorDialog (null, enm, UIntValue, property)) {
				if (dialog.Run () == (int) ResponseType.Ok) {
					Value = Enum.ToObject (enm.EnumType, dialog.Value);
				}
			}
		}