Exemple #1
0
        /// <summary>
        /// Update object with settings. Used if the running application is the only application to be updated without an settings file
        /// </summary>
        /// <param name="position">position where the pop up window should be displayed</param>
        /// <param name="updaterSettings"></param>
        public UpdaterView(Point position, updaterSettingsData updaterSettings)
        {
            this.windowStartPosistion = position;

            InitializeComponent();
            viewModel        = new UpdaterViewModel(updaterSettings);
            this.DataContext = viewModel;
        }
Exemple #2
0
        /// <summary>
        /// Update object with settings. Used if the running application is the only application to be updated without an settings file
        /// </summary>
        /// <param name="position">position where the pop up window should be displayed</param>
        /// <param name="updaterSettings"></param>
        public UpdaterView(Point position, updaterSettingsData updaterSettings, BitmapImage windowIcon)
        {
            this.windowStartPosistion = position;

            InitializeComponent();
            viewModel        = new UpdaterViewModel(updaterSettings);
            this.DataContext = viewModel;

            // Change the icon if teh window icon is transmitted
            if (windowIcon != null)
            {
                this.Icon = windowIcon;
            }
        }