예제 #1
0
 private void CloseVideoRoom()
 {
     abort = true;
     if (MessengerWindow.isadmin)
     {
         server.Close();
     }
     else
     {
         client.Close();
     }
 }
예제 #2
0
        public void CloseMessenger()
        {
            threadcancel = true;
            if (isadmin)
            {
                server.Close();
                MessageManager msg = new MessageManager();
                msg.CreateError("ServExit");
                sendall(msg);
            }
            else
            {
                client.Close();
            }
            //RestartApp();
            Invoke((Action) delegate { Hide(); });
            var Entry = new Entry();

            Entry.Closed += (s, args) => Invoke((Action) delegate { Close(); });
            Entry.Show();
        }