private async void OpenFileButton_Click(object sender, RoutedEventArgs e) { StorageFile file = await ParquetUwp.GetFromFilePickerAsync(); if (file != null && FileDragged != null) { await FileDragged(file); } }
private async void HamburgerMenu_ItemClick(object sender, ItemClickEventArgs e) { MenuItem mi = e.ClickedItem as MenuItem; if (mi == null) { return; } if (mi.Action == "open") { await LoadAndDisplay(await ParquetUwp.GetFromFilePickerAsync()); } else if (mi.Action == "issue") { await Windows.System.Launcher.LaunchUriAsync(new Uri("https://github.com/aloneguid/parquet-viewer-uwp/issues/new")); } else if (mi.Action == "about") { await Windows.System.Launcher.LaunchUriAsync(new Uri("https://github.com/aloneguid/parquet-viewer-uwp")); } HamburgerMenu.SelectedItem = null; }