private void UpdatePreferenceItems()
        {
            int index = ddPreference.SelectedIndex;

            ddPreference.Items.Clear();
            if (ddField.SelectedIndex == -1)
            {
                return;
            }
            Solver.Field field = Solver.Fields[ddField.SelectedIndex];
            if (field.Type == Solver.FieldType.Unknown)
            {
                return;
            }
            ddPreference.Items.AddRange(Solver.Criteria.FieldSpecificPreferences(field.Type));
            ddPreference.SelectedIndex = index;
        }
Exemple #2
0
        private void UpdateTestItems()
        {
            int index = ddTest.SelectedIndex;

            ddTest.Items.Clear();
            if (ddField.SelectedIndex == -1)
            {
                return;
            }
            Solver.Field field = Solver.Fields[ddField.SelectedIndex];
            if (field.Type == Solver.FieldType.Unknown)
            {
                return;
            }
            ddTest.Items.AddRange(Solver.Filter.FieldSpecificTests(field.Type));
            ddTest.SelectedIndex = index;
        }