/// <summary>
        /// Creates the dto for.
        /// </summary>
        /// <param name="container">The container.</param>
        /// <returns></returns>
        public WindsorContainerData CreateDtoFor(WindsorContainer container)
        {
            IList<RegistrationDto> registrations = new List<RegistrationDto>();

            if (container != null)
            {
                foreach (var node in container.Kernel.GraphNodes)
                {
                    var componentModel = (ComponentModel)node;

                    registrations.Add(new RegistrationDto
                                          {
                                              InterfaceName = componentModel.Service.ToString(),
                                              ImplementationName = componentModel.Implementation.ToString(),
                                              Name = componentModel.Name
                                          } );
                }
            }

            var dto = new WindsorContainerData { Registrations = registrations };

            return dto;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ContainerViewForm"/> class.
 /// </summary>
 /// <param name="windsorContainerData">The windsor container data.</param>
 public ContainerViewForm(WindsorContainerData windsorContainerData)
     : this()
 {
     _windsorContainerData = windsorContainerData;
 }