protected virtual void InvokeMouseOver(EventArgs e) { MouseOverEventHandler h = MouseOver; if (h != null) { h(this, e); } }
public SolidButton(Vector2 minPos, float width, float height) { fontStr = "font1"; w = width; h = height; pos = minPos; rectPoly = new RectPoly(minPos, width, height); tex = ResourceManager.Resources["pixel"]; currColor = InactiveColor; MouseOver += new MouseOverEventHandler(Button_MouseOver); MouseLeftDown += new MouseClickEventHandler(SolidButton_MouseLeftDown); }