protected virtual void btnDeleteTournament_Click(object sender, EventArgs e) { string sIDs = GetCheckedValues(Config.MainCheckboxName); ApiControl oTourn = Config.GetApIEngine(); string [] ss = sIDs.Split(new char[] { ',' }); int k = 0; for (k = 0; k < ss.Length; k++) { int iid = Utils.GetInt(ss[k]); if (iid > 0) { oTourn.DropTournament(iid); } } ModifySetOfRecordsFromCombo(sIDs, sDbDeleteQuery); BindGrid(); oTourn = null; }