Exemplo n.º 1
0
 public static void Loading(this IContainerComponent container, LoadingService loadingService)
 {
     EnsureComponentStatus(container);
     loadingService.Show(new LoadingOption()
     {
         Target = container.Container
     });
 }
Exemplo n.º 2
0
        public static void Close(this IContainerComponent container, LoadingService loadingService)
        {
            EnsureComponentStatus(container);
            var option = loadingService.LoadingOptions.FirstOrDefault(x => x.Target.Id == container.Container.Id);

            if (option == null)
            {
                return;
            }
            loadingService.LoadingOptions.Remove(option);
        }
Exemplo n.º 3
0
 public static void Loading(this IContainerComponent container, LoadingService loadingService, string text, string iconClass, string background)
 {
     EnsureComponentStatus(container);
     loadingService.Show(new LoadingOption()
     {
         Text       = text,
         Target     = container.Container,
         IconClass  = iconClass,
         Background = background
     });
 }