public void Refresh() { ResultList.Clear(); var rl = TargetObject.GetResult(); if (rl == null) { return; } var l = new List <IInstrument>(); foreach (var r in rl) { l.Add(Instrument.AllInstrumentList.FirstOrDefault(v => v.Ticker == r.Ticker)); } l.ForEach(v => ResultList.Add(v)); CalculateList.Clear(); foreach (var kv in rl) { CalculateList.Add(new CalculateItem() { Name = kv.InstrumentName, Ticker = kv.Ticker, Value = kv.Value }); } }