private void AdjustToSize()
{
try
{
GridHeightTextBox.Value = Convert.ToInt32(GridHeightTextBox.Text);
GridWidthTextBox.Value = Convert.ToInt32(GridWidthTextBox.Text);
Settings.Default.GridSize = new Rect(new Point(0, 0), new Point(GridWidthTextBox.Value, GridHeightTextBox.Value));
CheckSize(false);
}
catch (Exception ex)
{
LogWriter.Log(ex, "Adjusting the Grid Size");
}
}