ScreenToGif.Windows.Options.AdjustToSizeBoard C# (CSharp) Method

AdjustToSizeBoard() private method

private AdjustToSizeBoard ( ) : void
return void
        private void AdjustToSizeBoard()
        {
            try
            {
                GridHeight2TextBox.Value = Convert.ToInt32(GridHeight2TextBox.Text);
                GridWidth2TextBox.Value = Convert.ToInt32(GridWidth2TextBox.Text);

                Settings.Default.BoardGridSize = new Rect(new Point(0, 0), new Point(GridWidth2TextBox.Value, GridHeight2TextBox.Value));

                CheckSize(false);
            }
            catch (Exception ex)
            {
                LogWriter.Log(ex, "Adjusting the Grid Size");
            }
        }