ANRTournament.MainWindow.mniSaveAs_Click C# (CSharp) Метод

mniSaveAs_Click() приватный Метод

private mniSaveAs_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Результат 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