Пример #1
0
		public CustomButtonEvent this[string button]
		{
			get
			{
				CustomButtonEvent evt;

				if (_customButtonEvents.TryGetValue(button, out evt) == false)
				{
					evt = new CustomButtonEvent();
					_customButtonEvents[button] = evt;
				}

				return evt;
			}
		}
Пример #2
0
		internal bool TryGetEvent(string button, out CustomButtonEvent evt)
		{
			evt = null;

			return _customButtonEvents.TryGetValue(button, out evt);
		}