Ejemplo n.º 1
0
        public TabWindow(string title) : base()
        {
            InitializeComponent();

            nicks        = new Hashtable();
            channelModes = new Hashtable();

            windowName = title;

            textTopic.NoEmoticons = true;
            textTopic.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.Text             = title;

            lastMessageType = FormMain.ServerMessageType.Default;
        }
Ejemplo n.º 2
0
        public TabWindow(string title)
            : base()
        {
            InitializeComponent();

            nicks = new Hashtable();
            channelModes = new Hashtable();

            windowName = title;

            textTopic.NoEmoticons = true;
            textTopic.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.Text = title;

            lastMessageType = FormMain.ServerMessageType.Default;
        }
Ejemplo n.º 3
0
        public IceTabPage(WindowType windowType, string sCaption)
        {
            if (windowType == WindowType.Channel)
            {
                InitializeChannel();
                textTopic.NoEmoticons = true;
                textTopic.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
                this.textTopic.AppendText("Topic:", 3);
            }
            else if (windowType == WindowType.Query)
            {
                InitializeChannel();
                panelTopic.Visible = false;
            }
            else if (windowType == WindowType.Console)
            {
                InitializeConsole();
            }
            else if (windowType == WindowType.ChannelList)
            {
                InitializeChannelList();
            }
            else if (windowType == WindowType.DCCChat)
            {
                InitializeChannel();
                panelTopic.Visible = false;
            }
            else if (windowType == WindowType.Window)
            {
                InitializeChannel();
                panelTopic.Visible = false;
                textWindow.NoEmoticons = true;
            }
            else if (windowType == WindowType.Debug)
            {
                InitializeChannel();
                panelTopic.Visible = false;
                textWindow.NoEmoticons = true;
            }

            _tabCaption = sCaption;
            this.WindowStyle = windowType;

            nicks = new Hashtable();
            channelModes = new Hashtable();

            _flashTab = false;
            _flashValue = 0;

            lastMessageType = FormMain.ServerMessageType.Default;
        }