Exemplo n.º 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);
         }
     }
 }
Exemplo n.º 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);
				}
			}
		}