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