Exemplo n.º 1
0
 public void ReloadImages()
 {
     Console.WriteLine($"Loading images..");
     if (FigmaImages != null && FigmaImages.Count > 0)
     {
         FigmaImages.LoadFromLocalImageResources();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Reload the specified includeImages.
 /// </summary>
 public void Reload()
 {
     Console.WriteLine($"Loading views..");
     try
     {
         FigmaImages.Clear();
         fileService.Start(file, ContentView);
         rendererService.Start();
     }
     catch (Exception ex)
     {
         Console.WriteLine($"Error reading resource");
         Console.WriteLine(ex);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Reload the specified includeImages.
        /// </summary>
        public void Reload()
        {
            LoggingService.LogInfo($"Loading views..");
            try
            {
                FigmaImages.Clear();
                rendererService.Start(file, ContentView);

                var mainNodes = rendererService.NodesProcessed
                                .Where(s => s.ParentView == null)
                                .ToArray();

                new StoryboardLayoutManager().Run(ContentView, rendererService);
            }
            catch (Exception ex)
            {
                LoggingService.LogError($"[FIGMA.FILE] Error reading resource", ex);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// Reload the specified includeImages.
        /// </summary>
        public void Reload()
        {
            Console.WriteLine($"Loading views..");
            try
            {
                FigmaImages.Clear();
                rendererService.Start(file, ContentView);

                var mainNodes = rendererService.NodesProcessed
                                .Where(s => s.ParentView == null)
                                .ToArray();

                new StoryboardLayoutManager().Run(ContentView, rendererService);
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Error reading resource");
                Console.WriteLine(ex);
            }
        }