private void CloseVideoRoom() { abort = true; if (MessengerWindow.isadmin) { server.Close(); } else { client.Close(); } }
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(); }