Пример #1
0
        public void CallKEYPRESS(Button target, int code)
        {
            ButtonKeyPressHandlerDictionary dict =
                new ButtonKeyPressHandlerDictionary(keyPress);

            foreach (var h in dict)
            {
                h.Value(target, code);
            }
        }
Пример #2
0
 public ButtonEventHandlers()
 {
     load       = new ButtonEventHandlerDictionary();
     unload     = new ButtonEventHandlerDictionary();
     enterFrame = new ButtonEventHandlerDictionary();
     update     = new ButtonEventHandlerDictionary();
     render     = new ButtonEventHandlerDictionary();
     press      = new ButtonEventHandlerDictionary();
     release    = new ButtonEventHandlerDictionary();
     rollOver   = new ButtonEventHandlerDictionary();
     rollOut    = new ButtonEventHandlerDictionary();
     keyPress   = new ButtonKeyPressHandlerDictionary();
 }
Пример #3
0
	public ButtonEventHandlers()
	{
		load = new ButtonEventHandlerDictionary();
		unload = new ButtonEventHandlerDictionary();
		enterFrame = new ButtonEventHandlerDictionary();
		update = new ButtonEventHandlerDictionary();
		render = new ButtonEventHandlerDictionary();
		press = new ButtonEventHandlerDictionary();
		release = new ButtonEventHandlerDictionary();
		rollOver = new ButtonEventHandlerDictionary();
		rollOut = new ButtonEventHandlerDictionary();
		keyPress = new ButtonKeyPressHandlerDictionary();
	}
Пример #4
0
	public void CallKEYPRESS(Button target, int code)
	{
		ButtonKeyPressHandlerDictionary dict =
			new ButtonKeyPressHandlerDictionary(keyPress);
		foreach (var h in dict)
			h.Value(target, code);
	}