예제 #1
0
        public void Copy(IMarket imkt)
        {
            var data = GetData();

            data = new Dictionary <IMarketInput, double> {
            };
            //_Pairs = new List<IMarketInput> { };
            foreach (var item in imkt.EnumerateData())
            {
                //_Pairs.Add(item.Item1);
                data.Add(item.Item1, item.Item2);
            }
            SetData(data);
        }
예제 #2
0
 public void ShowMarket(IMarket mkt, CurrencyAssetStaticsDataBase ccyDB)
 {
     MarketShowed = mkt;
     Rows.Clear();
     foreach (var item in mkt.EnumerateData(ccyDB))
     {
         var titles = new object[] {
             item.Item1.Item1.ToString(), item.Item1.Ccy2.ToString(), item.Item2
         };
         DataGridViewRow dgvr = new DataGridViewRow();
         dgvr.CreateCells(this);
         dgvr.SetValues(titles);
         Rows.Add(dgvr);
     }
     ClearSelection();
 }