Exemple #1
0
        /// <summary>
        /// Temporary Method to create a NULL Connection for the Welcome Tab in the Console
        /// </summary>
        /// <param name="connection"></param>
        /// <param name="serverName"></param>
        internal void AddConsoleTab(string serverName)
        {
            //this is only used for now, to show the "Welcome" Tab
            ConsoleTab t = new ConsoleTab(serverName);

            TextWindow w = new TextWindow();

            w.Dock         = DockStyle.Fill;
            w.Font         = new System.Drawing.Font(FormMain.Instance.IceChatFonts.FontSettings[0].FontName, FormMain.Instance.IceChatFonts.FontSettings[0].FontSize);
            w.IRCBackColor = FormMain.Instance.IceChatColors.ConsoleBackColor;

            t.Controls.Add(w);
            consoleTab.TabPages.Add(t);
            consoleTab.SelectedTab = t;
        }
Exemple #2
0
        /// <summary>
        /// Add a new Tab/Connection to the Console Tab Control
        /// </summary>
        /// <param name="connection"></param>
        internal void AddConsoleTab(IRCConnection connection)
        {
            ConsoleTab t = new ConsoleTab(connection.ServerSetting.ServerName);

            t.Connection = connection;

            TextWindow w = new TextWindow();

            w.Dock         = DockStyle.Fill;
            w.Font         = new System.Drawing.Font(FormMain.Instance.IceChatFonts.FontSettings[0].FontName, FormMain.Instance.IceChatFonts.FontSettings[0].FontSize);
            w.IRCBackColor = FormMain.Instance.IceChatColors.ConsoleBackColor;
            w.NoEmoticons  = true;

            t.Controls.Add(w);
            if (FormMain.Instance.IceChatOptions.LogConsole)
            {
                w.SetLogFile(FormMain.Instance.LogsFolder + System.IO.Path.DirectorySeparatorChar + connection.ServerSetting.ServerName);
            }

            consoleTab.TabPages.Add(t);
            consoleTab.SelectedTab = t;
        }
        /// <summary>
        /// Add a new Tab/Connection to the Console Tab Control
        /// </summary>
        /// <param name="connection"></param>
        internal void AddConsoleTab(IRCConnection connection)
        {
            ConsoleTab t = new ConsoleTab(connection.ServerSetting.ServerName);
            t.Connection = connection;

            TextWindow w = new TextWindow();
            w.Dock = DockStyle.Fill;
            w.Font = new System.Drawing.Font(FormMain.Instance.IceChatFonts.FontSettings[0].FontName, FormMain.Instance.IceChatFonts.FontSettings[0].FontSize);
            w.IRCBackColor = FormMain.Instance.IceChatColors.ConsoleBackColor;
            w.NoEmoticons = true;

            t.Controls.Add(w);
            if (FormMain.Instance.IceChatOptions.LogConsole)
                w.SetLogFile(FormMain.Instance.LogsFolder + System.IO.Path.DirectorySeparatorChar + connection.ServerSetting.ServerName);

            consoleTab.TabPages.Add(t);
            consoleTab.SelectedTab = t;
        }
        /// <summary>
        /// Temporary Method to create a NULL Connection for the Welcome Tab in the Console
        /// </summary>
        /// <param name="connection"></param>
        /// <param name="serverName"></param>
        internal void AddConsoleTab(string serverName)
        {
            //this is only used for now, to show the "Welcome" Tab
            ConsoleTab t = new ConsoleTab(serverName);

            TextWindow w = new TextWindow();
            w.Dock = DockStyle.Fill;
            w.Font = new System.Drawing.Font(FormMain.Instance.IceChatFonts.FontSettings[0].FontName, FormMain.Instance.IceChatFonts.FontSettings[0].FontSize);
            w.IRCBackColor = FormMain.Instance.IceChatColors.ConsoleBackColor;

            t.Controls.Add(w);
            consoleTab.TabPages.Add(t);
            consoleTab.SelectedTab = t;
        }
Exemple #5
0
        public Logging(ConsoleTab consoleTab)
        {
            this._consoleTab = consoleTab;

            CreateConsoleLog();
        }
Exemple #6
0
        private void AddConsole(ConsoleTab tab, TextWindow window)
        {
            if (this.InvokeRequired)
            {
                AddConsoleDelegate add = new AddConsoleDelegate(AddConsole);
                this.Invoke(add, new object[] { tab, window });
            }
            else
            {
                tab.Controls.Add(window);
                if (FormMain.Instance.IceChatOptions.LogConsole)
                    window.SetLogFile();

                consoleTab.TabPages.Add(tab);
                consoleTab.SelectedTab = tab;
            }
        }
Exemple #7
0
 internal void SelectConsoleTab(ConsoleTab c)
 {
     _disableConsoleSelectChangedEvent = true;
     consoleTab.SelectedTab = c;
     StatusChange();
     _disableConsoleSelectChangedEvent = false;
 }
Exemple #8
0
        /// <summary>
        /// Add a new Tab/Connection to the Console Tab Control
        /// </summary>
        /// <param name="connection"></param>
        internal void AddConsoleTab(IRCConnection connection)
        {
            if (this.InvokeRequired)
            {
                AddConsoleTabDelegate act = new AddConsoleTabDelegate(AddConsoleTab);
                this.Invoke(act, new object[] { connection });
            }
            else
            {
                ConsoleTab t;
                if (connection.ServerSetting.UseBNC)
                    t = new ConsoleTab(connection.ServerSetting.BNCIP);
                else
                    t = new ConsoleTab(connection.ServerSetting.ServerName);

                t.Connection = connection;

                TextWindow w = new TextWindow();
                w.Dock = DockStyle.Fill;
                w.Font = new System.Drawing.Font(FormMain.Instance.IceChatFonts.FontSettings[0].FontName, FormMain.Instance.IceChatFonts.FontSettings[0].FontSize);
                w.IRCBackColor = FormMain.Instance.IceChatColors.ConsoleBackColor;
                w.NoEmoticons = true;

                AddConsole(t, w);
            }
        }
Exemple #9
0
        public Logging(ConsoleTab consoleTab)
        {
            this._consoleTab = consoleTab;

            CreateConsoleLog();
        }