private void ComboBox1_SelectedIndexChanged(object sender, EventArgs e) { if (FirstCrit.SelectedIndex == 0) { FCrit = Criteries.ProcManufacturer; } if (FirstCrit.SelectedIndex == 1) { FCrit = Criteries.ProcModel; } if (FirstCrit.SelectedIndex == 2) { FCrit = Criteries.VideoManufacturer; } if (FirstCrit.SelectedIndex == 3) { FCrit = Criteries.VideoModel; } if (FirstCrit.SelectedIndex == 4) { FCrit = Criteries.RamSize; } if (FirstCrit.SelectedIndex == 5) { FCrit = Criteries.HDDSize; } }
private void SecondCrit_SelectedIndexChanged(object sender, EventArgs e) { if (SecondCrit.SelectedIndex == 0) { SCrit = Criteries.ProcManufacturer; } if (SecondCrit.SelectedIndex == 1) { SCrit = Criteries.ProcModel; } if (SecondCrit.SelectedIndex == 2) { SCrit = Criteries.VideoManufacturer; } if (SecondCrit.SelectedIndex == 3) { SCrit = Criteries.VideoModel; } if (SecondCrit.SelectedIndex == 4) { SCrit = Criteries.RamSize; } if (SecondCrit.SelectedIndex == 5) { SCrit = Criteries.HDDSize; } }
internal string CalculateFilterExpression() { if (FilterExpression == null) { if (Criteries.IsEmpty()) { return(string.Empty); } return(new GroupOperator(CriteriaGroupOperatorType, Criteries.ToArray()).ToString()); } return(FilterExpression); }
public void AddCriteria(CriteriaOperator criteria) { Criteries.Add(criteria); }