示例#1
0
        public void DisplayOnIMGroup(IMTabWindowGroup imTab, InstantMessageEventArgs e)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new MethodInvoker(delegate()
                {
                    DisplayOnIMGroup(imTab, e);
                }));

                return;
            }

            imTab.TextManager.ProcessIM(e);
        }
示例#2
0
        public IMTabWindowGroup AddIMTabGroup(UUID target, UUID session, string targetName, Group grp)
        {
            IMTabWindowGroup imTab = new IMTabWindowGroup(instance, session, target, targetName, grp);
            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, "GIM: " + targetName, imTab);
            imTab.SelectIMInput();

            return imTab;
        }