示例#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);
        }
示例#2
0
        static void Main()
        {
            CheckPreviousInstance();
            DependencySolver.Start();

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

            _frmMain = DependencySolver.GetInstance <FrmMain>();

            Application.Run(_frmMain);
        }