public static void GraspProgress(string word) { if (GetProgress(word) < AppInfoHelper.GetReciteNumber()) { int newprogress = AppInfoHelper.GetReciteNumber(); SetProgress(word, newprogress); StatisticsHelper.AddWordLog(word, StatisticsHelper.WordLogType.grasp); } }
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); }