public WelcomeView(IInstallerViewModel model) { this.model = model; this.DataContext = model; InitializeComponent(); }
public InstallView(IInstallerViewModel model) { viewModel = model; DataContext = viewModel; InitializeComponent(); }
public FinishedView(IInstallerViewModel viewModel) { DataContext = viewModel; this.viewModel = viewModel; InitializeComponent(); }
public MainWindow(IInstallerViewModel viewModel, bool showPrompts) { this.viewModel = viewModel; this.viewModel.ShowPrompts = showPrompts; InitializeComponent(); }
public LicenseView(IInstallerViewModel model) { InitializeComponent(); DataContext = model; viewModel = model; try { Assembly assembly = Assembly.GetExecutingAssembly(); using (var stream = assembly.GetManifestResourceStream("CloudVeilInstallerUI.Resources.MOZILLA_PUBLIC_LICENSE.rtf")) { LicenseBox.SelectAll(); LicenseBox.Selection.Load(stream, DataFormats.Rtf); } } catch { this.LicenseBox.Document.Blocks.Clear(); this.LicenseBox.AppendText("Failed to load license file. A copy of the license file may be found at https://www.mozilla.org/en-US/MPL/2.0/"); } }
public IpcWindow(UpdateIPCServer server, IInstallerViewModel viewModel, bool showPrompts) { this.server = server; this.viewModel = viewModel; }