protected void OnCloseChatActionActivated(object sender, EventArgs e)
{
Trace.Call(sender, e);
try {
ChatViewManager.CurrentChatView.Close();
if (Frontend.IsMacOSX && ChatViewManager.Chats.Count == 1)
{
ChatViewManager.Minimize();
}
} catch (Exception ex) {
Frontend.ShowException(Parent, ex);
}
}