void Form1_Closing(object sender, CancelEventArgs e) { if (sc != null) { sc.Close(); controller.StopCamera(); sc = null; } }
private void menuDisconnect_Click(object sender, EventArgs e) { lstViewer.Items.Clear(); Objects.Clear(); sc.Close(); menuConnect.Visible = true; menuDisconnect.Visible = false; }
public void Disconnect() { log.Info("Closing SimConnect connection."); sc.Close(); IsConnected = false; AllObjects.Clear(); ObjectsInSimulation.Clear(); OnPropertyChanged("CreatedSimObjectsCount"); }
private void SimConnectDisconnect(object sender, RoutedEventArgs e) { sc.Close(); sc = null; Disconnect.Visibility = Visibility.Collapsed; Connect.Visibility = Visibility.Visible; Objects.Clear(); }
private void CloseConnection() { Client.Close(); }
public void Disconnect() { log.Info("Closing SimConnect connection."); sc.Close(); OnRaiseDisconnectEvent(EventArgs.Empty); }
public void Disconnect() { sc.Close(); sender.TryDisableWebServer(); OnRaiseDisconnectEvent(EventArgs.Empty); }
private void SimConnectDisconnect(object sender, RoutedEventArgs e) { sc.Close(); CleanUp(); }
public void Disconnect() { sc.Close(); }