public virtual void KeyDownEvent(object sender, EvasKeyEventArgs e) { Log.Info("ZK_TEST", "Tag:" + this.GetTag() + " " + e.KeyName); if (e.KeyName == "Return") { PressEventHandler?.Invoke(this, e); } }
public Button(string image, Rectangle rge, PressEventHandler handler) { _image = ResourceManager.LoadImage(image); range = rge; PressEvent = handler; }