public WelcomeViewmodel(IBootstrapperController bootstrapperController, IView view) : base(bootstrapperController, view) { var runningDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); this.LicenseFile = Path.Combine(runningDirectory, DefaultLicenseFilename); }
public ViewActivator(Type pageType, IView view, IBootstrapperController bootstrapperController, bool maintainInstance = false) { this.MaintainInstance = maintainInstance; if (pageType == null) { throw new ArgumentNullException(nameof(pageType)); } else if (view == null) { throw new ArgumentNullException(nameof(view)); } else if (bootstrapperController == null) { throw new ArgumentNullException(nameof(bootstrapperController)); } else if (pageType.IsInterface || pageType.IsAbstract) { throw new ArgumentException("Must be a concrete implementation", nameof(pageType)); } else if (!typeof(IViewmodel).IsAssignableFrom(pageType)) { throw new ArgumentException("Must implement " + nameof(IViewmodel), nameof(pageType)); } else { this.ConcretePageType = pageType; this.view = view; } }
public ViewmodelBase(IBootstrapperController bootstrapperController, IView view) { this.BootstrapperController = bootstrapperController; this.View = view; this.View.Viewmodel = this; }
public MainWindow(IBootstrapperController bootstrapperController) { this.bootstrapperController = bootstrapperController; this.Viewmodel = new BootstrapperMainWindowViewmodel(bootstrapperController); this.InitializeViewController(); this.InitializeComponent(); }
public BootstrapperMainWindowViewmodel(IBootstrapperController bootstrapperController) { this.BootstrapperController = bootstrapperController; this.Title = this.BootstrapperController.WixBootstrapper.Engine.StringVariables["WixBundleName"]; BootstrapperController.ViewController.ViewChange += (view) => { this.NotifyPropertyChanged(nameof(CurrentView)); }; }
public static void SetDefaultSequences(this IViewController viewController, IBootstrapperController bootstrapperController) { SetDefaultStartPage(viewController, bootstrapperController); SetDefaultCancelPage(viewController, bootstrapperController); SetDefaultErrorPage(viewController, bootstrapperController); SetDefaultInstallSequence(viewController, bootstrapperController); SetDefaultUninstallSequence(viewController, bootstrapperController); SetDefaultUpgradeSequence(viewController, bootstrapperController); SetDefaultModifySequence(viewController, bootstrapperController); SetDefaultRepairSequence(viewController, bootstrapperController); }
public WelcomePage(IBootstrapperController bootstrapperController) : base(bootstrapperController) { this.WelcomeView = new WelcomeView(new WelcomeViewmodel(bootstrapperController)); }
public ProgressViewmodel(IBootstrapperController bootstrapperController, IView view) : base(bootstrapperController, view) { }
public FeaturesViewmodel(IBootstrapperController bootstrapperController, IView view) : base(bootstrapperController, view) { this.Packages = this.BootstrapperController.PackageManager.Packages.Select( package => new PackageViewmodel(package)); }
public CancelPage(IBootstrapperController bootstrapperController) : base(bootstrapperController) { this.CancelView = new CancelView(new CancelViewmodel(bootstrapperController)); }
public CancelViewmodel(IBootstrapperController bootstrapperController, IView view) : base(bootstrapperController, view) { this.CancelledText = "Installation was cancelled by the user"; }
public ProgressPage(IBootstrapperController bootstrapperController) : base(bootstrapperController) { this.ProgressView = new ProgressView(new ProgressViewmodel(bootstrapperController)); }
public ConfigurationPage(IBootstrapperController bootstrapperController, IEnumerable <ConfigurationItem> configurationItems) : base(bootstrapperController) { this.ConfigurationView = new ConfigurationView(new ConfigurationViewmodel(bootstrapperController, configurationItems)); }
public OptionsViewmodel(IBootstrapperController bootstrapperController, IView view) : base(bootstrapperController, view) { }
public static void SetDefaultRepairSequence(this IViewController viewController, IBootstrapperController bootstrapperController) { viewController.ViewCollection.RegisterView <CommitViewmodel>(new CommitViewmodel(bootstrapperController, new CommitView())); viewController.ViewCollection.RegisterView <ProgressViewmodel>(new ProgressViewmodel(bootstrapperController, new ProgressView())); viewController.ViewCollection.RegisterView <FinishViewmodel>(new FinishViewmodel(bootstrapperController, new FinishView())); viewController.ViewCollection.SetRepairSequence(new List <string>() { nameof(ProgressViewmodel), nameof(FinishViewmodel) }); }
public BootstrapperMainWindowViewmodel(IBootstrapperController bootstrapperController) { this.BootstrapperController = bootstrapperController; }
public static void SetDefaultErrorPage(this IViewController viewController, IBootstrapperController bootstrapperController) { viewController.ViewCollection.RegisterView <ErrorViewmodel>(new ErrorViewmodel(bootstrapperController, new ErrorView())); viewController.ViewCollection.ErrorPage = nameof(ErrorViewmodel); }
public static void SetDefaultCancelPage(this IViewController viewController, IBootstrapperController bootstrapperController) { viewController.ViewCollection.RegisterView <CancelViewmodel>(new CancelViewmodel(bootstrapperController, new CancelView())); viewController.ViewCollection.CancelPage = nameof(CancelViewmodel); }
public static void SetDefaultStartPage(this IViewController viewController, IBootstrapperController bootstrapperController) { viewController.ViewCollection.RegisterView <WelcomeViewmodel>(new WelcomeViewmodel(bootstrapperController, new WelcomeView())); viewController.ViewCollection.StartPage = nameof(WelcomeViewmodel); }
public FinishViewmodel(IBootstrapperController bootstrapperController, IView view) : base(bootstrapperController, view) { }
public ErrorPage(IBootstrapperController bootstrapperController) : base(bootstrapperController) { this.ErrorView = new ErrorView(new ErrorViewmodel(bootstrapperController)); }
public CommitViewmodel(IBootstrapperController bootstrapperController, IView view) : base(bootstrapperController, view) { this.CommitMessage = "Error: Viewmodel not activated!"; }
public OptionPage(IBootstrapperController bootstrapperController) : base(bootstrapperController) { this.OptionView = new OptionView(new OptionViewmodel(bootstrapperController)); }
public ConfigurationViewmodel(IBootstrapperController bootstrapperController, IView view, IEnumerable <ConfigurationItem> configurationItems) : base(bootstrapperController, view) { this.ConfigurationItems = configurationItems; }
public FinishPage(IBootstrapperController bootstrapperController) : base(bootstrapperController) { this.FinishView = new FinishView(new FinishViewmodel(bootstrapperController)); }
public FeaturePage(IBootstrapperController bootstrapperController) : base(bootstrapperController) { this.FeatureView = new FeatureView(new FeatureViewmodel(bootstrapperController)); }
public ErrorViewmodel(IBootstrapperController bootstrapperController, IView view) : base(bootstrapperController, view) { }