Exemple #1
0
 public override bool update()
 {
     if (!isValid())
         return false;
     string sqlCommand = String.Format(@"update Label set pID={0},lContent='{1}',lMapLayerName='{2}',lIsChoosed={3} where lID={4}"
         , pID, lContent, lMapLayerName, lIsChoosed ? 1 : 0, lID);
     Sql sql = new Sql();
     return sql.updateLabel(sqlCommand);
 }