private async void Window_Loaded(object sender, RoutedEventArgs e) { // set default values for the controls if (ComPortViewModel.ComPorts.Count > 0) { SelectedComPort = ComPortViewModel.ComPorts.LastOrDefault(); } await ReleaseChecker.RefreshReleaseInfo().ConfigureAwait(false); }
private async void LblDownloadUpdateLink_Click(object sender, MouseButtonEventArgs e) { e.Handled = true; if (HaveUpdate && UpdateDownloadUri != null) { Process.Start(UpdateDownloadUri.ToString()); } else { await ReleaseChecker.RefreshReleaseInfo().ConfigureAwait(false); } }