示例#1
0
 /// <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
 }
示例#2
0
 /// <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);
 }
示例#3
0
 void TC_OnTabRemoved(object sender, TabEventArgs e)
 {
     RefreshGroups();
 }
示例#4
0
 /// <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);
 }
示例#5
0
 void TC_OnTabAdded(object sender, TabEventArgs e)
 {
     if (e.Tab.Control is GroupIMTabWindow)
         RefreshGroups();
 }