private async void MainWindow_Closed(object sender, EventArgs e) { var flag = await _hcdzClient.DeviceClose(0); }