private void checkBoxHideLowConfidence_Click(object sender, EventArgs e) { if (!checkBoxHideLowConfidence.Checked) { if (!MessageBoxes.ConfirmLowConfidenceQuestion()) { checkBoxHideLowConfidence.Checked = true; } } }
private void checkBoxHideLowConfidence_Click(object sender, EventArgs e) { if (!checkBoxHideLowConfidence.Checked) { if (_confirmLowConfidenceMessageShown || MessageBoxes.ConfirmLowConfidenceQuestion(this)) { _confirmLowConfidenceMessageShown = true; } else { checkBoxHideLowConfidence.Checked = true; } } }
private void comboBoxChecker_DropDownClosed(object sender, EventArgs e) { if (comboBoxChecker.SelectedItem is LocalisedEnumWrapper localisedEnumWrapper) { var selectedConfidence = (ConfidenceLevel)localisedEnumWrapper.TargetEnum; if ((selectedConfidence != ConfidenceLevel.Bad && selectedConfidence != ConfidenceLevel.Questionable) || MessageBoxes.ConfirmLowConfidenceQuestion(this)) //Ask if selected low confidence { SelectUpTo(selectedConfidence); } } comboBoxChecker.Items.Add(SelectionBoxText); comboBoxChecker.SelectedItem = SelectionBoxText; //comboBoxChecker.ForeColor = SystemColors.Control; }