Пример #1
0
        public async Task <UpdateStatus> DoManualCheck()
        {
            var result = await _sparkle.CheckForUpdatesAtUserRequest();

            if (result == null)
            {
                return(UpdateStatus.CouldNotDetermine);
            }

            if (result.Status == UpdateStatus.UpdateAvailable)
            {
                MainWindow.Instance.UpdatePage.SetUpdate(result.Updates, false);
            }

            return(result.Status);
        }
Пример #2
0
 private void ExplicitUserRequestCheckButton_Click(object sender, EventArgs e)
 {
     _sparkleUpdateDetector.CheckForUpdatesAtUserRequest();
 }
 public void CheckForUpdates()
 {
     Internal_SetupSparkle();
     _sparkle.CheckForUpdatesAtUserRequest();
 }
Пример #4
0
 private void ManualUpdateCheck_Click(object sender, RoutedEventArgs e)
 {
     _sparkle.CheckForUpdatesAtUserRequest();
 }
Пример #5
0
 public async void ManualUpdateCheck_Click(object sender, RoutedEventArgs e)
 {
     await _sparkle.CheckForUpdatesAtUserRequest();
 }