/// <summary> /// Quietly close conversations. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void TabConsole_OnTabRemoved(object sender, TabEventArgs e) { System.Windows.Forms.Control sTabControl = e.Tab.Control; if (sTabControl is InventoryConsole) RemoveConversation(inventory.Title); else if (sTabControl is ChatConsole) RemoveConversation(chat.Title); else if (sTabControl is FriendsConsole) RemoveConversation(friends.Title); else if (sTabControl is VoiceConsole) RemoveConversation(voice.Title); else if (sTabControl is ConferenceIMTabWindow) RemoveConversation(((ConferenceIMTabWindow)e.Tab.Control).SessionName); else if (sTabControl is GroupIMTabWindow || sTabControl is IMTabWindow) RemoveConversation(sTabControl.Name); // TODO wrong name }
/// <summary> /// Create conversations as tabs are created. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void TabConsole_OnTabAdded(object sender, TabEventArgs e) { CreateConversationFromTab(e.Tab, true); }
void TC_OnTabRemoved(object sender, TabEventArgs e) { RefreshGroups(); }
/// <summary> /// Switch active conversation as tab focus moves. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void OnTabChange(object sender, TabEventArgs e) { ActivateConversationFromTab(e.Tab); }
void TC_OnTabAdded(object sender, TabEventArgs e) { if (e.Tab.Control is GroupIMTabWindow) RefreshGroups(); }