public TabularFieldSettings GetFieldSettings(Control control) { if (fieldSettings != null) { fieldSettings.BoundsBox = Geometric.GetOptimalFieldSize(control.Size); } return(fieldSettings); }
private void pnlGameField_SizeChanged(object sender, EventArgs e) { fieldManager.ChangeFieldSize(pnlGameField.CreateGraphics(), Geometric.GetOptimalFieldSize(pnlGameField.Size)); }