Exemplo n.º 1
0
        private void Form_Load(object sender, EventArgs e)
        {
            var blazorwebview = new BlazorWebView()
            {
                Dock     = DockStyle.Fill,
                HostPage = "wwwroot/index.html",
                Services = DependencySolver.GetProvider(),
            };

            Controls.Add(blazorwebview);
        }
Exemplo n.º 2
0
        static void Main()
        {
            CheckPreviousInstance();
            DependencySolver.Start();

            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            _frmMain = DependencySolver.GetInstance <FrmMain>();

            Application.Run(_frmMain);
        }