Exemplo n.º 1
0
 private void SetSettings(UpdaterActionSetting settings)
 {
     progressBar.Visibility       = settings.Progress1Visible ? Visibility.Visible : Visibility.Hidden;
     progressBar2.Visibility      = settings.Progress2Visible ? Visibility.Visible : Visibility.Hidden;
     progressBar.IsIndeterminate  = settings.Progress1IsIndeterminate;
     progressBar2.IsIndeterminate = settings.Progress2IsIndeterminate;
 }
Exemplo n.º 2
0
        private void StartAction(IUpdaterAction a)
        {
            UpdaterActionSetting settings = a.GetSettings();

            SetSettings(settings);
            a.OnEndUpdateAction += A_OnEndUpdateAction;

            Task task = new Task(() => a.Start(downloadPath));

            task.Start();
        }