コード例 #1
0
        private void rdbtnCustomize_CheckedChanged(object sender, EventArgs e)
        {
            filterTemplate = VerificationParameters.FilterTemplate.Custom;

            ToggleEnables(true);
            UpdateFromTemplate(VerificationParameters.GetTemplate(filterTemplate));
        }
コード例 #2
0
        private void rdbtnChangedOrModified_CheckedChanged(object sender, EventArgs e)
        {
            filterTemplate = VerificationParameters.FilterTemplate.ChangeAndModified;

            ToggleEnables(false);
            UpdateFromTemplate(VerificationParameters.GetTemplate(filterTemplate));
        }
コード例 #3
0
        private void rdbtnIncorrectOnly_CheckedChanged(object sender, EventArgs e)
        {
            filterTemplate = VerificationParameters.FilterTemplate.IncorrectOnly;

            ToggleEnables(false);
            UpdateFromTemplate(VerificationParameters.GetTemplate(filterTemplate));
        }
コード例 #4
0
        private void rdbtnCommonIssues_CheckedChanged(object sender, EventArgs e)
        {
            filterTemplate = VerificationParameters.FilterTemplate.CommonIssues;

            ToggleEnables(false);
            UpdateFromTemplate(VerificationParameters.GetTemplate(filterTemplate));
        }
コード例 #5
0
        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;
        }