Ejemplo n.º 1
0
 public void GoOffline()
 {
     this.clientGetter.Enabled = false;
     if (this.isListenening)
     {
         this.listener.Stop();
     }
     this.isListenening = false;
     if (this.isConnected)
     {
         this.client.Close();
     }
     this.isConnected = false;
     GlobalAppEvents.RaiseOfflineEvent(this, new EventArgs());
 }
Ejemplo n.º 2
0
 private void OnExitRequest(object sender, EventArgs e)
 {
     GlobalAppEvents.RaiseOfflineEvent(this, new EventArgs());
     Unsubscribe();
     if (iconController != null)
     {
         this.iconController.Dispose();
     }
     if (reader != null)
     {
         this.reader.Dispose();
     }
     if (connectivityChecker != null)
     {
         this.connectivityChecker.Dispose();
     }
     this.ExitThread();
 }