private void mniSaveAs_Click(object sender, RoutedEventArgs e)
{
SaveFileDialog saveDialog = new SaveFileDialog()
{
Filter = StringTable.MainWindow_PlikiTurniejow + " (*.ant)|*.ant",
ValidateNames = true,
InitialDirectory = Directory.GetCurrentDirectory(),
OverwritePrompt = true,
AddExtension = true,
DefaultExt = ".ant",
CheckPathExists = true,
};
if (saveDialog.ShowDialog() == true)
{
this.BusyIndicator.IsBusy = true;
this.tournamentFilePath = saveDialog.FileName;
Tournament.Save(this.tournament, saveDialog.FileName);
this.BusyIndicator.IsBusy = false;
}
}