Esempio n. 1
0
        private ExecutedConfiguration Build(Configuration configuration)
        {
            var export = new ExecutedConfiguration
            {
                Name        = configuration.Name,
                Description = configuration.Description
            };

            foreach (var item in configuration.ConfigurationItems)
            {
                var eci = new ExecutedConfigurationItem
                {
                    Name = item.Name
                };

                foreach (var configurationItemOption in item.ConfigurationItemOptions)
                {
                    eci.ConfigurationItemOptions.Add(new ExecutedConfigurationItemOption
                    {
                        Name        = configurationItemOption.Name,
                        Description = configurationItemOption.Description,
                        IsSelected  = configurationItemOption.IsSelected
                    });
                }

                export.ConfigurationItems.Add(eci);
            }

            return(export);
        }
        private ExecutedConfiguration Build(Configuration configuration)
        {
            var export = new ExecutedConfiguration
            {
                Name = configuration.Name,
                Description = configuration.Description
            };

            foreach (var item in configuration.ConfigurationItems)
            {
                var eci = new ExecutedConfigurationItem
                {
                    Name = item.Name
                };

                foreach (var configurationItemOption in item.ConfigurationItemOptions)
                {
                    eci.ConfigurationItemOptions.Add(new ExecutedConfigurationItemOption
                    {
                        Name = configurationItemOption.Name,
                        Description = configurationItemOption.Description,
                        IsSelected = configurationItemOption.IsSelected
                    });
                }

                export.ConfigurationItems.Add(eci);
            }

            return export;
        }