private void mniOpen_Click(object sender, RoutedEventArgs e)
{
OpenFileDialog openDialog = new OpenFileDialog()
{
Filter = StringTable.MainWindow_PlikiTurniejow + " (*.ant)|*.ant",
ValidateNames = true,
InitialDirectory = Directory.GetCurrentDirectory(),
AddExtension = true,
DefaultExt = ".ant",
CheckPathExists = true,
CheckFileExists = true,
};
if (openDialog.ShowDialog() == true)
{
this.BusyIndicator.IsBusy = true;
this.tournamentFilePath = openDialog.FileName;
this.tournament = Tournament.Load(openDialog.FileName);
this.RefreshTournamentDataContexts();
this.BusyIndicator.IsBusy = false;
}
}