private async Task ShowAspectConfigurator(object obj) { var dialog = AspectConfiguratorFactory.Create(Config.AspectConfigurations, ProductGroups.Select(p => p.TypeName).ToArray()); dialog.DisplayName = "Configuration"; await DialogManager.ShowDialogAsync(dialog); AspectConfiguratorFactory.Destroy(dialog); }
private async Task ShowAspectConfigurator(object obj) { var typeTree = await ResourceServiceModel.GetTypeTree(); var allTypes = typeTree.DerivedTypes.Flatten(t => t.DerivedTypes); var dialog = AspectConfiguratorFactory.Create(Config.AspectConfigurations, allTypes.Select(p => p.Name).ToArray()); dialog.DisplayName = "Configuration"; await DialogManager.ShowDialogAsync(dialog); AspectConfiguratorFactory.Destroy(dialog); }