Skip to content

Commit

Permalink
Revert extra change to App.xaml.cs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Jul 22, 2020
1 parent fa9a7c9 commit 39899eb
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions WinUIDesktopSample/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,9 @@ protected override void OnLaunched(LaunchActivatedEventArgs args)
myWindow = window;
}

private async void Button_Click(object sender, RoutedEventArgs e)
private void Button_Click(object sender, RoutedEventArgs e)
{
const string _root = "https://api.github.com";
const string _repoName = "WindowsCommunityToolkit";
const string _repoOwner = "Microsoft";
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.TryAppendWithoutValidation("User-Agent", "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko");

var uri = $"{_root}/repos/{_repoOwner}/{_repoName}/releases";
var result = await client.GetStringAsync(new Uri(uri));
}
myWindow.Content = new MainPage();
}
}

Expand Down

0 comments on commit 39899eb

Please sign in to comment.