Beispiel #1
0
 public static void Loading(this IContainerComponent container, LoadingService loadingService)
 {
     EnsureComponentStatus(container);
     loadingService.Show(new LoadingOption()
     {
         Target = container.Container
     });
 }
Beispiel #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);
        }
Beispiel #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
     });
 }