/// <summary> /// Tworzy sojusz z wybranym klanem /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonAllianceWith_Click(object sender, EventArgs e) { List <Tables.Clan> alliedClans = Alliances.GetAll().Where(clan => clan.Clan1Name == CurrentUser.ClanName).Select(clan => clan.Clan2).ToList(); alliedClans.AddRange(Alliances.GetAll().Where(clan => clan.Clan2Name == CurrentUser.ClanName).Select(clan => clan.Clan1)); dataGridViewTables.DataSource = alliedClans; }