Exemplo n.º 1
0
        /// <summary>
        /// The create main view.
        /// </summary>
        /// <returns>
        /// The <see cref="Window"/>.
        /// </returns>
        protected override IWindow CreateMainView()
        {
            HostRuntime.EnsureNativeHostFileExists(HostConfig);

            _mainWindow = new Window(this, HostConfig);
            return(_mainWindow);
        }
Exemplo n.º 2
0
        /// <summary>
        /// The create main view.
        /// </summary>
        /// <returns>
        /// The <see cref="Window"/>.
        /// </returns>
        protected override IWindow CreateMainView()
        {
            HostRuntime.EnsureNativeHostFileExists(_config);

            if (_mainWindow == null)
            {
                _mainWindow = new Window(_nativeHost, _container, _config, _commandTaskRunner, BrowserMessageRouter);
            }

            return(_mainWindow);
        }
Exemplo n.º 3
0
 /// <summary>
 /// The platform initialize.
 /// </summary>
 protected override void Initialize()
 {
     HostRuntime.LoadNativeHostFile(_config);
 }
Exemplo n.º 4
0
 /// <summary>
 /// The platform initialize.
 /// </summary>
 protected override void Initialize()
 {
     HostRuntime.LoadNativeGuiFile(HostConfig.Platform);
 }