Пример #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();
        }