private void rdbtnCustomize_CheckedChanged(object sender, EventArgs e) { filterTemplate = VerificationParameters.FilterTemplate.Custom; ToggleEnables(true); UpdateFromTemplate(VerificationParameters.GetTemplate(filterTemplate)); }
private void rdbtnChangedOrModified_CheckedChanged(object sender, EventArgs e) { filterTemplate = VerificationParameters.FilterTemplate.ChangeAndModified; ToggleEnables(false); UpdateFromTemplate(VerificationParameters.GetTemplate(filterTemplate)); }
private void rdbtnIncorrectOnly_CheckedChanged(object sender, EventArgs e) { filterTemplate = VerificationParameters.FilterTemplate.IncorrectOnly; ToggleEnables(false); UpdateFromTemplate(VerificationParameters.GetTemplate(filterTemplate)); }
private void rdbtnCommonIssues_CheckedChanged(object sender, EventArgs e) { filterTemplate = VerificationParameters.FilterTemplate.CommonIssues; ToggleEnables(false); UpdateFromTemplate(VerificationParameters.GetTemplate(filterTemplate)); }
public void UpdateFilterTemplate(VerificationParameters param) { filterTemplate = param.Template; switch (filterTemplate) { case VerificationParameters.FilterTemplate.CommonIssues: rdbtnCommonIssues.Checked = true; break; case VerificationParameters.FilterTemplate.ChangeAndModified: rdbtnChangedOrModified.Checked = true; break; case VerificationParameters.FilterTemplate.CorrectOnly: rdbtnCorrect.Checked = true; break; case VerificationParameters.FilterTemplate.IncorrectOnly: rdbtnIncorrectOnly.Checked = true; break; case VerificationParameters.FilterTemplate.Custom: rdbtnCustomize.Checked = true; break; default: break; } UpdateFromTemplate(filterTemplate == VerificationParameters.FilterTemplate.Custom ? param : VerificationParameters.GetTemplate(filterTemplate)); nudThreshold.Value = param.Threshold; }