AutoWikiBrowser.Plugins.Kingbotk.PluginManager.ManuallyAssessCheckBox_CheckChanged C# (CSharp) Method

ManuallyAssessCheckBox_CheckChanged() private method

private ManuallyAssessCheckBox_CheckChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void ManuallyAssessCheckBox_CheckChanged(object sender, EventArgs e)
        {
            if (((CheckBox) sender).Checked)
            {
                StatusText.Text = "Initialising assessments plugin";

                if (AWBForm.TheSession.Editor.IsActive)
                    AWBForm.Stop(Constants.AWBPluginName);

                if (_showManualAssessmentsInstructions)
                {
                    AssessmentsInstructionsDialog dialog = new AssessmentsInstructionsDialog();

                    _showManualAssessmentsInstructions = dialog.ShowDialog() != DialogResult.Yes;
                }

                _assessmentsObject = new Assessments(_pluginSettings);

                DefaultStatusText();
            }
            else
            {
                _assessmentsObject.Dispose();
                _assessmentsObject = null;
            }
        }