void chkLogFile_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                __UpdatingConfig = true;

                ConfigurationData.Debugging.GenerateLogFile = DebugLogFileCheckBox.Checked;

                if (DebugLogFileCheckBox.Checked)
                {
                    DebugLogFileNameTextBox.Focus( );
                }
                else
                {
                    GenericErrorProvider.SetError(DebugLogFileNameTextBox, "");
                }
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.Assert(false, ex.Message);
            }
            finally
            {
                __UpdatingConfig = false;
            }
        }
        void txtLogFileName_Validating(object sender, CancelEventArgs e)
        {
            if (DebugLogFileNameTextBox.Text.Length == 0 && EnableDebugCheckBox.Checked && DebugLogFileCheckBox.Checked)
            {
                e.Cancel = true;

                GenericErrorProvider.SetError(DebugLogFileNameTextBox, "Enter valid file name.");
            }
            else
            {
                e.Cancel = false;

                GenericErrorProvider.SetError(DebugLogFileNameTextBox, "");
            }
        }
        void btnLogFile_Click(object sender, EventArgs e)
        {
            try
            {
                if (BrowseLogFileDialog.ShowDialog( ) == DialogResult.OK)
                {
                    DebugLogFileNameTextBox.Text = BrowseLogFileDialog.FileName;

                    GenericErrorProvider.SetError(DebugLogFileNameTextBox, "");
                }
            }
            catch (Exception exception)
            {
                System.Diagnostics.Debug.Assert(false, exception.Message);
            }
        }
        void txtLogFileName_Validated(object sender, EventArgs e)
        {
            try
            {
                __UpdatingConfig = true;

                ConfigurationData.Debugging.LogFileName = DebugLogFileNameTextBox.Text;

                GenericErrorProvider.SetError(DebugLogFileNameTextBox, "");
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.Assert(false, ex.Message);
            }
            finally
            {
                __UpdatingConfig = false;
            }
        }
        void txtWorkstationAE_Validating(object sender, CancelEventArgs e)
        {
            if (WorkstationAETextBox.Text.Length == 0)
            {
                GenericErrorProvider.SetError(WorkstationAETextBox, "AE Title can't be empty.");

                e.Cancel = true;
            }
            else if (WorkstationAETextBox.Text.Length > 16)
            {
                GenericErrorProvider.SetError(WorkstationAETextBox, "AE Title must be less than 16 characters.");

                e.Cancel = true;
            }
            else
            {
                GenericErrorProvider.SetError(WorkstationAETextBox, string.Empty);
            }
        }