public void Exit_EventHandler(object sender, EventArgs e) { //var messageBox = new Windows.MessageWindow(); //messageBox.ShowDialog(); notifyTray.Dispose(); //MainWindow.imMagr.LogOut(MainWindow.currentUser); //MainWindow.imMagr.Exit(); }