Пример #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            console = Config.ConfigSelector.Console;
            console.Hide();

            Font font = Config.ConfigSelector.Font;

            if (font != null)
            {
                Program.engine.Font = font;
            }

            demoFlowPanel1.Controls.Add(console);

            //            consoleTextBox1.engine = Program.engine;

            browser = Program.engine.Browser;
            browser.onChangeDirectory += new EventHandler(browser_onChangeDirectory);
            browserPanel.PageService   = browser;
            browser.onChangeCursor    += new EventHandler(browserPanel.onCursorChanged);

            browser.CurrentDir = new DirectoryInfo(Directory.GetCurrentDirectory());

            Timer timer = new Timer();

            timer.Interval = 1000;
            timer.Tick    += new EventHandler(timer_Tick);
            timer.Start();
        }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            console = Config.ConfigSelector.Console;
            console.Hide();

            Font font = Config.ConfigSelector.Font;
            if (font != null)
                Program.engine.Font = font;

            demoFlowPanel1.Controls.Add(console);

            //            consoleTextBox1.engine = Program.engine;

            browser = Program.engine.Browser;
            browser.onChangeDirectory += new EventHandler(browser_onChangeDirectory);
            browserPanel.PageService = browser;
            browser.onChangeCursor += new EventHandler(browserPanel.onCursorChanged);

            browser.CurrentDir = new DirectoryInfo(Directory.GetCurrentDirectory());

            Timer timer = new Timer();
            timer.Interval = 1000;
            timer.Tick += new EventHandler(timer_Tick);
            timer.Start();
        }