Esempio n. 1
0
 /// <summary>
 /// \brief This method is called when the callconnection is closed.
 /// Set the isCalling state of the clients to false and remove the CallConnection from the callConnectios list in the MessageSocketManager class
 /// </summary>
 private void CloseConnection()
 {
     client1.isCalling = false;
     client2.isCalling = false;
     MessageSocketManager.RemoveCallConnection(this);
 }
Esempio n. 2
0
 private void StopApplication(object sender, CancelEventArgs e)
 {
     System.Environment.Exit(1);
     MessageSocketManager.SetRunning(false);
 }
Esempio n. 3
0
 static void OnProcessExit(object sender, EventArgs e)
 {
     MessageSocketManager.SetRunning(false);
 }
Esempio n. 4
0
 public MainWindow()
 {
     InitializeComponent();
     AppDomain.CurrentDomain.ProcessExit += new EventHandler(OnProcessExit);
     messageSocketManager = new MessageSocketManager(this);
 }