private void pnlGameField_SizeChanged(object sender, EventArgs e) { fieldManager.ChangeFieldSize(pnlGameField.CreateGraphics(), Geometric.GetOptimalFieldSize(pnlGameField.Size)); }