private void InitialSKLib()
 {
     this._lib = SkFacade.Instance(SkLibType.Quote | SkLibType.OsQuote);
     this._lib.Initialize(GetConfigAccountPwd("SkAccount"),
                          GetConfigAccountPwd("SkPwd"));
     this._lib.OnQuoteServerReady += _lib_OnQuoteServerReady;
     this._lib.OnTwTick           += _lib_OnTwTick;
     this._lib.OnTwQuote          += _lib_OnTwQuote;
     this._lib.OnTwBest5          += _lib_OnTwBest5;
     this._lib.OnTwMarketInfo     += _lib_OnTwMarketInfo;
     PostMsg("群益API登入、載入完成...");
 }
Exemple #2
0
 public MainTradeForm()
 {
     InitializeComponent();
     this._lib = SkFacade.Instance(SkLibType.Quote);
 }