private void Disconnect() { FWatcher.Stop(); FHub.Disconnect(); FManager.Close(); btConnect.Enabled = true; btDisconnect.Enabled = false; }
private void FmDevInfo_FormClosed(object sender, FormClosedEventArgs e) { // Disconnect from Hub. FHub.Disconnect(); }