Esempio n. 1
0
 public FrmMain()
 {
     InitializeComponent();
     BwMain.SetInternetStaus = SetInternet;
     BwMain.SetHoldStockInfo = UpdateHoldStockInfo;
     BwMain.UpateMarket      = UpdateMarketInfo;
     BwMain.OnStart();
 }
Esempio n. 2
0
 /// <summary>
 /// 停止后台操作按钮事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnStockBw_Click(object sender, EventArgs e)
 {
     if (btnStockBw.Text == "断开后台线程")
     {
         btnStockBw.Text = "打开后台线程";
         BwMain.Onstop();
         SetInternet("offline");
     }
     else
     {
         btnStockBw.Text = "断开后台线程";
         BwMain.OnStart();
     }
 }