public CustomButtonEvent this[string button] { get { CustomButtonEvent evt; if (_customButtonEvents.TryGetValue(button, out evt) == false) { evt = new CustomButtonEvent(); _customButtonEvents[button] = evt; } return evt; } }
internal bool TryGetEvent(string button, out CustomButtonEvent evt) { evt = null; return _customButtonEvents.TryGetValue(button, out evt); }