Ejemplo n.º 1
0
 public static void GraspProgress(string word)
 {
     if (GetProgress(word) < AppInfoHelper.GetReciteNumber())
     {
         int newprogress = AppInfoHelper.GetReciteNumber();
         SetProgress(word, newprogress);
         StatisticsHelper.AddWordLog(word, StatisticsHelper.WordLogType.grasp);
     }
 }
Ejemplo n.º 2
0
        public static void AutoSubtractProgress(string word)
        {
            int newprogress = GetProgress(word) - 3;

            if (newprogress < -2)
            {
                newprogress = -2;
            }
            SetProgress(word, newprogress);
            Console.WriteLine(newprogress);
            StatisticsHelper.AddWordLog(word, StatisticsHelper.WordLogType.ungrasp);
        }