/// <summary> /// Constructor /// </summary> /// <param name="updatableObject">collection of updatable files</param> public Updater(UpdateObject updatableObject) { this.UpdatableObject = updatableObject; // Check for Updates getVersionsAsynch(); }
/// <summary> /// Updater view model with updater settings directly handling over /// </summary> /// <param name="updaterSettings">Updater settings with all needed information to update the currently running application</param> public UpdaterViewModel(updaterSettingsData updaterSettings) { // Create a new observable collection UpdatableObject = new UpdateObject(updaterSettings); StatusBarBackground = Brushes.Orange; StatusBarText = "Checking for available updates"; updater = new Updater(UpdatableObject); updater.UpdateStateChanged += UpdaterStatusUpdate; }
/// <summary> /// Constructor /// </summary> /// <param name="settingsPath"></param> /// <param name="updatableObjects"></param> public Updater(string settingsPath, string localPath, UpdateObject updatableObject) { //this.UpdatableObject = updatableObject; //foreach (var _settings in UpdaterSettings.load(settingsPath, localPath)) //{ // UpdatableObjects.Add(new UpdateObject(_settings)); //} //// Check for Updates //getVersionsAsynch(); }