private async void openButton_Click(object sender, RoutedEventArgs e) { FileOpenPicker picker = new FileOpenPicker(); picker.ViewMode = PickerViewMode.List; picker.FileTypeFilter.Add(".WAR"); StorageFile file = await picker.PickSingleFileAsync(); if (file != null) { var stream = await file.OpenAsync(FileAccessMode.Read); WarFile.LoadResourcesFromStream(stream.AsStreamForRead()); } UpdateStatusText(); PopulateListBox(); listBox.Visibility = Visibility.Visible; closeButton.IsEnabled = true; }