public IMTabWindow AddIMTab(UUID target, UUID session, string targetName) { IMTabWindow imTab = new IMTabWindow(instance, target, session, targetName); METAboltTab tab = AddTab(session.ToString(), "IM: " + targetName, imTab); imTab.SelectIMInput(); return(imTab); }
bool TryFindIMTab(UUID friendID, out IMTabWindow console) { console = null; string tabID = (client.Self.AgentID ^ friendID).ToString(); if (instance.TabConsole.TabExists(tabID)) { console = (IMTabWindow)instance.TabConsole.Tabs[tabID].Control; return(true); } return(false); }
public void DisplayOnIM(IMTabWindow imTab, InstantMessageEventArgs e) { if (this.InvokeRequired) { this.BeginInvoke(new MethodInvoker(delegate() { DisplayOnIM(imTab, e); })); return; } imTab.TextManager.ProcessIM(e); }
public IMTabWindow AddIMTab(UUID target, UUID session, string targetName) { IMTabWindow imTab = new IMTabWindow(instance, target, session, targetName); imTab.Dock = DockStyle.Fill; toolStripContainer1.ContentPanel.Controls.Add(imTab); string tname = targetName; if (tname.Length > 9) { tname = tname.Substring(0, 7) + "..."; } //METAboltTab tab = AddTab(targetName, "IM: " + tname, imTab); imTab.SelectIMInput(); return imTab; }