Exemple #1
0
 public void AddCommaIfNotExist()
 {
     if (!DisplayString.Contains(","))
     {
         DisplayString = DisplayString + ",";
     }
 }
Exemple #2
0
 public void TrimZeroes()
 {
     if (DisplayString.Contains(","))
     {
         while (DisplayString.EndsWith("0"))
         {
             DisplayString = DisplayString.Remove(DisplayString.Length - 1);
         }
     }
     if (DisplayString.EndsWith(","))
     {
         DisplayString = DisplayString.Remove(DisplayString.Length - 1);
     }
 }