private async void AddDataSource_Click(object sender, RoutedEventArgs e) { DataFrameView dfv = await ParquetUniversal.OpenFromFilePickerAsync(); NotYetLoaded.Visibility = Visibility.Collapsed; DataSourcesList.Items.Add(dfv); if (DataSourcesList.Items.Count == 1) { DataSourcesList.SelectedIndex = 0; DataFrameViewChanged?.Invoke(DataSourcesList.SelectedItem as DataFrameView); } }
private async void OpenFileButton_Click(object sender, RoutedEventArgs e) { DataFrameView f = await ParquetUniversal.OpenFromFilePickerAsync(); SetDataset(f.Df); }