/// <summary>
        /// Handles the Click event of OkButton object.
        /// </summary>
        private void okButton_Click(object sender, EventArgs e)
        {
            // initialization is started
            _interactionAreaSettings.BeginInit();
            try
            {
                // Resize points
                _interactionAreaSettings.ResizePointsRadius =
                    Convert.ToSingle(resizePointsRadiusNumericUpDown.Value);
                _interactionAreaSettings.ResizePointsInteractionRadius =
                    Convert.ToSingle(resizePointsInteractionRadiusNumericUpDown.Value);
                _interactionAreaSettings.ResizePointsBackgroundColor = resizePointsBackgroundColorPanelControl.Color;
                _interactionAreaSettings.ResizePointsBorderColor     = resizePointsBorderColorPanelControl.Color;
                _interactionAreaSettings.ResizePointsBorderPenWidth  =
                    Convert.ToSingle(resizePointsBorderPenWidthNumericUpDown.Value);
                _interactionAreaSettings.NorthwestSoutheastResizePointCursor = resizePointsNwseCursorPanelControl.SelectedCursor;
                _interactionAreaSettings.NortheastSouthwestResizePointCursor = resizePointsNeswCursorPanelControl.SelectedCursor;
                _interactionAreaSettings.NorthSouthResizePointCursor         = resizePointsNsCursorPanelControl.SelectedCursor;
                _interactionAreaSettings.WestEastResizePointCursor           = resizePointsWeCursorPanelControl.SelectedCursor;

                // Polygon point
                _interactionAreaSettings.PolygonPointRadius =
                    Convert.ToSingle(polygonPointRadiusNumericUpDown.Value);
                _interactionAreaSettings.PolygonPointInteractionRadius =
                    Convert.ToSingle(polygonPointInteractionRadiusNumericUpDown.Value);
                _interactionAreaSettings.PolygonPointBackgroundColor         = polygonPointBackgroundColorPanelControl.Color;
                _interactionAreaSettings.SelectedPolygonPointBackgroundColor = selectedPolygonPointBackgroundColorPanelControl.Color;
                _interactionAreaSettings.PolygonPointBorderColor             = polygonPointBorderColorPanelControl.Color;
                _interactionAreaSettings.PolygonPointBorderPenWidth          =
                    Convert.ToSingle(polygonPointBorderPenWidthNumericUpDown.Value);
                _interactionAreaSettings.PolygonPointCursor = polygonPointCursorPanelControl.SelectedCursor;

                // Rotation point
                _interactionAreaSettings.RotationPointRadius =
                    Convert.ToSingle(rotationPointRadiusNumericUpDown.Value);
                _interactionAreaSettings.RotationPointInteractionRadius =
                    Convert.ToSingle(rotationPointInteractionRadiusNumericUpDown.Value);
                _interactionAreaSettings.RotationPointBackgroundColor = rotationPointBackgroundColorPanelControl.Color;
                _interactionAreaSettings.RotationPointBorderColor     = rotationPointBorderColorPanelControl.Color;
                _interactionAreaSettings.RotationPointBorderPenWidth  =
                    Convert.ToSingle(rotationPointBorderPenWidthNumericUpDown.Value);
                _interactionAreaSettings.RotationPointDistance =
                    Convert.ToSingle(rotationPointDistanceNumericUpDown.Value);
                _interactionAreaSettings.RotationPointCursor = rotationPointCursorPanelControl.SelectedCursor;

                // Rotation assistant
                _interactionAreaSettings.RotationAssistantRadius =
                    Convert.ToSingle(rotationAssistantRadiusNumericUpDown.Value);
                _interactionAreaSettings.RotationAssistantBackgroundColor = rotationAssistantBackgroundColorPanelControl.Color;
                _interactionAreaSettings.RotationAssistantBorderColor     = rotationAssistantBorderColorPanelControl.Color;
                _interactionAreaSettings.RotationAssistantBorderPenWidth  =
                    Convert.ToSingle(rotationAssistantBorderPenWidthNumericUpDown.Value);
                _interactionAreaSettings.RotationAssistantDiscreteAngle =
                    Convert.ToSingle(rotationAssistantDiscreteAngleNumericUpDown.Value);

                // text box
                _interactionAreaSettings.TextBoxFont      = (Font)_fontDialog.Font.Clone();
                _interactionAreaSettings.TextBoxForeColor = textBoxForeColorPanelControl.Color;
                _interactionAreaSettings.TextBoxBackColor = textBoxBackColorPanelControl.Color;
                _interactionAreaSettings.TextBoxCursor    = textBoxCursorPanelControl.SelectedCursor;

                // spell check manager
                spellCheckManagerViewSettingsControl1.ApplySpellCheckManagerSetting();

                // move area
                _interactionAreaSettings.MoveAreaCursor = moveAreaCursorPanelControl.SelectedCursor;

                DialogResult = DialogResult.OK;
            }
            finally
            {
                // initialization is finished
                _interactionAreaSettings.EndInit();
            }
        }