private void Window_Closed(object sender, EventArgs e) { if (trackClient != null) { trackClient.Stop(); } }
InspectionTrackClient trackClient;//移动巡检 private void StopGetInspectionTrack() { WriteLog("StopGetInspectionTrack"); if (trackClient != null) { trackClient.Stop(); trackClient = null; } }