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); } } }
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); } } }