void Fill() { IEnumerable <string> l = FiniteMatrixDerivationTransformer.GetNames(filter); boxes[0].FillCombo(l); boxes[0].SelectCombo(filter.Transition); boxes[1].FillCombo(l); boxes[1].SelectCombo(filter.Measurements); l = filter.GetAllNames <IMeasurements>(); string[] s = new string[] { filter.RealMeasurements, filter.CovariationState, filter.CovariationMeasurements }; for (int i = 0; i < s.Length; i++) { ComboBox box = boxes[i + 2]; box.FillCombo(l); box.SelectCombo(s[i]); } FillNumbers(false); }