Ejemplo n.º 1
0
        public WelcomeView(IInstallerViewModel model)
        {
            this.model       = model;
            this.DataContext = model;

            InitializeComponent();
        }
Ejemplo n.º 2
0
        public InstallView(IInstallerViewModel model)
        {
            viewModel   = model;
            DataContext = viewModel;

            InitializeComponent();
        }
Ejemplo n.º 3
0
        public FinishedView(IInstallerViewModel viewModel)
        {
            DataContext    = viewModel;
            this.viewModel = viewModel;

            InitializeComponent();
        }
Ejemplo n.º 4
0
        public MainWindow(IInstallerViewModel viewModel, bool showPrompts)
        {
            this.viewModel             = viewModel;
            this.viewModel.ShowPrompts = showPrompts;

            InitializeComponent();
        }
Ejemplo n.º 5
0
        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/");
            }
        }
Ejemplo n.º 6
0
 public IpcWindow(UpdateIPCServer server, IInstallerViewModel viewModel, bool showPrompts)
 {
     this.server    = server;
     this.viewModel = viewModel;
 }