コード例 #1
0
        private void QuoteDriver_OnDriverStateChanged(object sender, USeQuoteDriverStateChangedEventArgs e)
        {
            string text = string.Format("行情驱动状态为{0},{1}", e.NewState.ToString(), e.Reason);

            USeNotifyEventArgs args = new USeNotifyEventArgs(USeNotifyLevel.Information, text);

            SafeRaiseNotifyEvent(this, args);
        }
コード例 #2
0
 private void QuoteDriver_OnDriverStateChanged(object sender, USeQuoteDriverStateChangedEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.BeginInvoke(new EventHandler <USeQuoteDriverStateChangedEventArgs>(QuoteDriver_OnDriverStateChanged), sender, e);
         return;
     }
     SetQuoteDriverState(e.NewState);
 }