private void ApplyWorkspace(Workspace ws)
        {
            if (ws == null)
            {
                return;
            }

            Bid     = ws.Bid;
            Ask     = ws.Ask;
            BidSize = ws.BidSize;
            AskSize = ws.AskSize;
            Date    = ws.Date;

            Accounts.Clear();
            foreach (var item in ws.Accounts)
            {
                Accounts.Add(item);
            }
            if (Accounts.Count > 0)
            {
                SelectedAccount = Accounts[0];
            }

            HistoricalData.Clear();
            foreach (var item in ws.HistoricalDataCollections)
            {
                HistoricalData.Add(item);
            }
        }
Exemple #2
0
 public void UnloadHistoricalData()
 {
     if (HistoricalData != null)
     {
         HistoricalData.Clear();
     }
 }