Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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;
        }