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);
}
}
}