Exemple #1
0
        public static void Main()
        {
            var html_context = new context();

            html_context.load_master_stylesheet(master_css);
            //var win = new browser_window(html_context);
        }
Exemple #2
0
        public void create()
        {
            var css = Resources.master_css;

            _context.load_master_stylesheet(css);
            _toolbar.create();
            _view.create(_context);
            _console.create();
            OnResize(null);
        }
Exemple #3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var html_context = new context();

            html_context.load_master_stylesheet(Resources.master_css);

            Application.Run(new BrowserForm(html_context));
        }
        public void create()
        {
            _context.load_master_stylesheet("html,div,body { display: block; } head,style { display: none; }");
            string html;

            using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Browser.Unity.console.console.html"))
                using (var reader = new StreamReader(stream))
                    html = reader.ReadToEnd();
            _doc = document.createFromString(html, this, new DefaultScriptEngine(_window), _context);
            render_console((int)_size.x);
        }
Exemple #5
0
        public void create()
        {
            _context.load_master_stylesheet("html,div,body { display: block; } head,style { display: none; }");
            string html;

            using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Browser.Windows.toolbar.toolbar.html"))
                using (var reader = new StreamReader(stream))
                    html = reader.ReadToEnd();
            _doc = document.createFromString(html, this, null, _context);
            render_toolbar(Width);
            //MoveWindow(x, y, Width, _doc.height, true);
        }
Exemple #6
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var ctx = new context();

            ctx.load_master_stylesheet(Resources.master_css);

            var frm = new BrowserForm(ctx);

            frm.open(args?.Length != 0 ? args[0] : "http://www.litehtml.com/");
            Application.Run(frm);
        }