public int Delete() { int result = TableData.DeleteByColumnValues("Group", "StudentProgressDB", new List<string>() { "GroupID" }, new List<string>() { this.Id.ToString() }); if (result > 0) Group.Items.Remove(this.Id); return result; }
public int Delete() { int result = TableData.DeleteByColumnValues("Student", "StudentProgressDB", new List <string>() { "StudentID" }, new List <string>() { this.Id.ToString() }); if (result > 0) { Subject.Items.Remove(this.Id); } return(result); }