Exemplo n.º 1
0
        protected override LoadResult OnLoadData(object sender, LoadDataArgs args)
        {
            // load resource from SciterArchive
            _archive?.GetItem(args.Uri, (result) =>
            {
                if (result.IsSuccessful)
                {
                    _api.SciterDataReady(_window.Handle, result.Path, result.Data, (uint)result.Size);
                }
            });

            return(base.OnLoadData(sender: sender, args: args));
        }
Exemplo n.º 2
0
        protected override LoadResult OnLoadData(object sender, LoadDataArgs args)
        {
            //_logger?.LogDebug(args.Uri.ToString());

            // load resource from SciterArchive
            _archive?.GetItem(args.Uri, (res) =>
            {
                if (res.IsSuccessful)
                {
                    _api.SciterDataReady(Window.Handle, res.Path, res.Data, (uint)res.Size);
                }
            });

            // call base to ensure LibConsole is loaded
            return(base.OnLoadData(sender: sender, args: args));
        }