public void UpdateQuote(TapQuoteAPI.TapAPIQuoteWhole quoteWhole) { string key = MakeContractID(quoteWhole.Contract); if (QuoteDict.ContainsKey(key)) { QuoteDict[key] = new GUI_Quote(quoteWhole); } }
public void AddQuote(TapQuoteAPI.TapAPIQuoteWhole quoteWhole) { string key = MakeContractID(quoteWhole.Contract); if (!QuoteDict.ContainsKey(key)) { GUI_Quote newQuote = new GUI_Quote(quoteWhole); QuoteDict.Add(newQuote.ContractID, newQuote); } else { QuoteDict[key] = new GUI_Quote(quoteWhole); } }