public override void Load() { base.Load(); TradeAlgorithmList.Clear(); TargetObject.TradeAlgorithmList.ForEach(v => { TradeAlgorithmList.Add(new TradeAlgorithmViewModel(v)); }); }
public override void DeserialParameter(string parameterSerialString) { base.DeserialParameter(parameterSerialString); if (!string.IsNullOrEmpty(TradeAlgorithmSerialString)) { var l = CommonProc.ConvertStringToObject <List <ITradeAlgorithm> >(TradeAlgorithmSerialString); if (l != null) { TradeAlgorithmList.Clear(); l.ForEach(v => TradeAlgorithmList.Add(v)); } } }