protected virtual void OnPanEnd(EventArgs e) { EventHandler handler; handler = PanEnd; if (handler != null) { handler(this, e); } }