/// <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 MultiUpdaterView(Point position, updaterSettingsData updaterSettings) { this.windowStartPosistion = position; InitializeComponent(); viewModel = new MultiUpdaterViewModel(updaterSettings); this.DataContext = viewModel; }
/// <summary> /// Update object with path to settings and own application name to update currently running application as well /// </summary> /// <param name="position">position where the pop up window should be displayed</param> /// <param name="settingsPath">path of the update configuration file</param> /// <param name="localPath">local path of the application</param> /// <param name="applicationName">name of the application called the lib. Only needed if this aopplication should also be updatable</param> public MultiUpdaterView(Point position, string settingsPath, string localPath, string applicationName) { this.windowStartPosistion = position; InitializeComponent(); viewModel = new MultiUpdaterViewModel(settingsPath, localPath, applicationName); this.DataContext = viewModel; }