예제 #1
0
 void Form1_Closing(object sender, CancelEventArgs e)
 {
     if (sc != null)
     {
         sc.Close();
         controller.StopCamera();
         sc = null;
     }
 }
예제 #2
0
        private void menuDisconnect_Click(object sender, EventArgs e)
        {
            lstViewer.Items.Clear();
            Objects.Clear();

            sc.Close();

            menuConnect.Visible    = true;
            menuDisconnect.Visible = false;
        }
예제 #3
0
 public void Disconnect()
 {
     log.Info("Closing SimConnect connection.");
     sc.Close();
     IsConnected = false;
     AllObjects.Clear();
     ObjectsInSimulation.Clear();
     OnPropertyChanged("CreatedSimObjectsCount");
 }
예제 #4
0
        private void SimConnectDisconnect(object sender, RoutedEventArgs e)
        {
            sc.Close();
            sc = null;

            Disconnect.Visibility = Visibility.Collapsed;
            Connect.Visibility    = Visibility.Visible;

            Objects.Clear();
        }
예제 #5
0
 private void CloseConnection()
 {
     Client.Close();
 }
예제 #6
0
 public void Disconnect()
 {
     log.Info("Closing SimConnect connection.");
     sc.Close();
     OnRaiseDisconnectEvent(EventArgs.Empty);
 }
예제 #7
0
 public void Disconnect()
 {
     sc.Close();
     sender.TryDisableWebServer();
     OnRaiseDisconnectEvent(EventArgs.Empty);
 }
예제 #8
0
 private void SimConnectDisconnect(object sender, RoutedEventArgs e)
 {
     sc.Close();
     CleanUp();
 }
예제 #9
0
 public void Disconnect()
 {
     sc.Close();
 }