Example #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);
        }
Example #2
0
 /// <summary>
 /// Creates a new <see cref="TelnetHelper"/> instance.
 /// </summary>
 /// <param name="m">The parent form</param>
 internal TelnetHelper(FrmMain m)
 {
     main = m;
 }
Example #3
0
        private static void Main(string[] args)
        {
            SplashScreen ss = new SplashScreen(typeof (FrmSplash));

            //Long running Init stuff
            FrmMain frm = new FrmMain();

            ss.Close(frm, 300);

            if (args.Length == 2)
            {
                int port = -1;
                try
                {
                    port = int.Parse(args[1]);

                    if (port > 0 && port < 65535)
                    {
                        frm.pendingHost = args[0];
                        frm.pendingPort = port;
                    }
                }
                catch
                {

                }
            }

            Application.Run(frm);
        }
Example #4
0
        private static void Main()
        {
            SplashScreen ss = new SplashScreen(typeof (FrmSplash));

            //Long running Init stuff
            FrmMain frm = new FrmMain();

            ss.Close(frm, 300);

            Application.Run(frm);
        }