示例#1
0
文件: main.cs 项目: btframework/WeDo
        private void Disconnect()
        {
            FWatcher.Stop();
            FHub.Disconnect();
            FManager.Close();

            btConnect.Enabled    = true;
            btDisconnect.Enabled = false;
        }
示例#2
0
文件: devinfo.cs 项目: leuher/WeDo
 private void FmDevInfo_FormClosed(object sender, FormClosedEventArgs e)
 {
     // Disconnect from Hub.
     FHub.Disconnect();
 }