private void Disconnect() { try { OnlineStatus = EOnlineStatus.Disconnecting; _dialogManager.Disconnect(); OnlineStatus = EOnlineStatus.Offline; } catch (Exception e) { MessageBox.Show(e.Message); } }