示例#1
0
 /// <summary>
 /// Adds something to the Remarks value. If Remarks is currently empty, the new text is
 /// set. Otherwise, a "more errors" text is added (only once).
 /// </summary>
 /// <param name="str">Remarks text to add</param>
 public void AddRemarks(string str)
 {
     if (Remarks != str)
     {
         if (string.IsNullOrEmpty(Remarks))
         {
             Remarks = str;
         }
         else if (!Remarks.EndsWith(Tx.T("validation.more")))
         {
             Remarks += Tx.T("validation.more");
         }
     }
 }