Ejemplo n.º 1
0
 public void FixSourceID(int length)
 {
     try
     {
         if (SourceID != null || SourceID.Length > 0)
         {
             SourceID = SourceID.Substring(0, 1) + SourceID.Substring(1).PadLeft(length, '0');
         }
     }
     catch (Exception)
     { // don't error if SourceID is not of format Sxxxx
     }
 }
Ejemplo n.º 2
0
 public void FixSourceID(int length)
 {
     try
     {
         if (!string.IsNullOrEmpty(SourceID))
         {
             SourceID = SourceID.Substring(0, 1) + SourceID.Substring(1).PadLeft(length, '0');
         }
     }
     catch (Exception)
     { // don't error if SourceID is not of format Sxxxx
     }
 }