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

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

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