コード例 #1
0
 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));
         }
     }
 }
コード例 #2
0
        public void Load(string status)
        {
            if (status == null)
            {
                return;
            }

            var pt = CommonProc.ConvertStringToObject <DesignCanvasViewModel>(status);

            ItemList.Clear();
            LinkList.Clear();

            pt.ItemList.ToList().ForEach(v => ItemList.Add(v));
            pt.LinkList.ToList().ForEach(v => LinkList.Add(v));
        }