protected void RemoveDropinBtn_Click(object sender, EventArgs e) { if (!IsSuperAdmin()) { return; } String playerId = this.DropinListbox.SelectedValue; CurrentPool.RemoveDropin(playerId); foreach (Game game in CurrentPool.Games) { if (game.Date >= DateTime.Today) { if (game.Dropins.Exists(playerId)) { game.Dropins.Remove(playerId); } if (game.WaitingList.Exists(playerId)) { game.WaitingList.Remove(playerId); } } } //Save DataAccess.Save(Manager); this.DropinListbox.DataSource = GetPlayers(CurrentPool.Dropins); this.DropinListbox.DataBind(); //Response.Redirect(Request.RawUrl); }