예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public void DisplayOnIM(IMTabWindow imTab, InstantMessageEventArgs e)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new MethodInvoker(delegate()
                {
                    DisplayOnIM(imTab, e);
                }));

                return;
            }

            imTab.TextManager.ProcessIM(e);
        }
예제 #4
0
        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;
        }