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