// This constructor is used for the design view only
 public InstallerWindowViewModel()
 {
     installControlViewModel  = new InstallControlViewModel();
     featuresControlViewModel = new FeaturesControlViewModel();
     Pages = (ViewPage[])Enum.GetValues(typeof(ViewPage));
     OnCurrentPageChanged(); // notify the UI what page we're starting on
 }
        public InstallerWindowViewModel(BootstrapperEntry bootstrapper)
        {
            this.bootstrapper        = bootstrapper;
            installControlViewModel  = new InstallControlViewModel(bootstrapper);
            featuresControlViewModel = new FeaturesControlViewModel(bootstrapper);
            Pages = (ViewPage[])Enum.GetValues(typeof(ViewPage));
            OnCurrentPageChanged(); // notify the UI what page we're starting on

            bootstrapper.Detect();
        }