Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }