ANRTournament.MainWindow.mniSaveAs_Click C# (CSharp) Method

mniSaveAs_Click() private method

private mniSaveAs_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void
        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;
            }
        }
MainWindow