public virtual void OnClientSizeChanged(object sender, EventArgs e) { if (_game != null) { RectBox rect = GetScreenDimension(); _game.OnSizeChanged(rect.Width(), rect.Height()); } }