Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            var psd = new PlayerSelectionDialog(_ps.Where(player => !top10PlayersNames.Contains(player.player.FullName)));

            if (psd.ShowDialog() == DialogResult.OK)
            {
                ManuallyAddedPlayers.Add(psd.SelectedPlayer);
            }
        }
Exemplo n.º 2
0
        private void exclude_btn_Click(object sender, EventArgs e)
        {
            var psd = new PlayerSelectionDialog(_sps);

            if (psd.ShowDialog() == DialogResult.OK)
            {
                _excluded.Add(_sps.Where(p => p.Name == psd.SelectedPlayer).First());
            }
            foreach (DataGridViewRow row in dataGridView1.Rows)
            {
                if ((string)row.Cells[0].Value == psd.SelectedPlayer)
                {
                    row.DefaultCellStyle.BackColor = Color.LightSalmon;
                }
            }
        }