Exemple #1
0
 private void DeleteGaps()
 {
     if (Habit.Length > 0)
     {
         if (Habit[0] == ' ')
         {
             int count = 1;
             int countDeleteSymbols = 1;
             while (count != Habit.Length && Habit[count] == ' ')
             {
                 countDeleteSymbols++;
                 count++;
             }
             Habit = Habit.Remove(0, countDeleteSymbols);
         }
     }
 }