public override bool delete() { if (!isValid(new List<string>() { "pID", "lContent", "lMapLayerName", "lIsChoosed"})) return false; string sqlCommand = String.Format(@"delete from Label where lID={0}", lID); Sql sql = new Sql(); return sql.deleteLabel(sqlCommand); }