示例#1
0
		/// <summary>
		/// Creates a new <see cref="Connection"/> instance.
		/// </summary>
		/// <param name="t">T.</param>
		public Connection(TabPage t)
		{
			tabPage = t;
			ansi = new AnsiEdit();
			ansi.Dock = DockStyle.Fill;
			ansi.BackColor = Color.Black;
			tabPage.Controls.Add(ansi);
			frmMain = (FrmMain) t.Parent.Parent;
			ansi.CurrentFont = frmMain.Config.ClientFont;

			timer = new Timer();
			timer.Interval = 100;
			timer.Tick += new EventHandler(timer_Tick);

			frmMain.Config.ConfigChanged += new ConfigChangedEventHandler(Config_ConfigChanged);

			telnet = new TelnetHelper(frmMain);
		}
示例#2
0
        /// <summary>
        /// Creates a new <see cref="Connection"/> instance.
        /// </summary>
        /// <param name="t">T.</param>
        public Connection(TabPage t)
        {
            tabPage = t;
            ansi = new AnsiEdit();
            ansi.Dock = DockStyle.Fill;
            ansi.BackColor = Color.Black;
            tabPage.Controls.Add(ansi);
            frmMain = (FrmMain) t.Parent.Parent;
            ansi.CurrentFont = frmMain.Config.ClientFont;

            timer = new Timer();
            timer.Interval = 100;
            timer.Tick += new EventHandler(timer_Tick);

            frmMain.Config.ConfigChanged += new ConfigChangedEventHandler(Config_ConfigChanged);

            telnet = new TelnetHelper(frmMain);
        }