Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
        }