ANRTournament.MainWindow.mniPlayersImportGalakta_Click C# (CSharp) Method

mniPlayersImportGalakta_Click() private method

private mniPlayersImportGalakta_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void
        private void mniPlayersImportGalakta_Click(object sender, RoutedEventArgs e)
        {
            GalaktaPlayersWindow frmPlayers = new GalaktaPlayersWindow() { Owner = this };
            if (frmPlayers.ShowDialog() == true)
            {
                foreach (var item in GalaktaPlayersWindow.GalaktaPlayersList.Where(p => p.Selected == true))
                {
                    if (string.IsNullOrEmpty(item.Player.Alias))
                    {
                        item.Player.Alias = item.Player.NameSurname;
                    }

                    if (this.tournament.PointsTable.Where(p => p.Alias == item.Player.Alias).Count() > 0)
                    {
                        new PMW(StringTable.MainWindow_PlayerExists);
                        continue;
                    }

                    this.tournament.AddPlayer(item.Player);
                }
            }
        }
MainWindow