コード例 #1
0
        public async Task ReloadAsync(IView contentView, string file, ViewRenderServiceOptions options)
        {
            try
            {
                await rendererService.StartAsync(file, contentView, options);

                distributionService.Run(contentView, rendererService);

                ReloadFinished?.Invoke(this, EventArgs.Empty);
            }
            catch (DirectoryNotFoundException ex)
            {
                Console.WriteLine("[FIGMA.RENDERER] Resource directory not found ({0}). Images will not load", ex.Message);
            }
            catch (System.Exception ex)
            {
                Console.WriteLine(ex);
            }
        }