static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var buttonConfig = ConfigManager.Instance.GetButtonConfig(); TDFQuote quote = new TDFQuote(); quote.Start(); //while (true) //{ // autoResetEvent.WaitOne(); //} Application.Run(new TDFQuoteForm(quote)); }
public TDFQuoteForm(TDFQuote quote) { InitializeComponent(); _quote = quote; }
//private Connected _connectCallback; //private Notify _notify = null; public QuoteService(IQuote quote, Connected cb, Notify notify) { _tdfQuote = new TDFQuote(quote); _tdfQuote.Connected(cb); _tdfQuote.Notify(notify); }