예제 #1
0
 void ModuleProxyToCourseTree(ModuleData[] proxies) { foreach (ModuleData proxy in proxies) ModuleProxyToCourseTree(proxy); }
예제 #2
0
 public static LevelScore GetLevelScore(ModuleData mod) {
   double Correct = mod.Score.From == 0 ? 0.0 : (double)mod.Score.Correct / mod.Score.From * Weights(mod.Level);
   return GetLevelScore(mod.Level, Correct);
 }
예제 #3
0
 public void ModuleProxyToCourseTree(ModuleData proxy) {
   for (int i = 0; i < CourseTree.Count; i++) if (proxy.Id == CourseTree[i].Id) { CourseTree[i] = proxy; break; }
 }
예제 #4
0
 public static int GetGlobalScore(ModuleData mod) {
   double Correct = mod.Score.From == 0 ? 0.0 : (double)mod.Score.Correct / mod.Score.From * Weights(mod.Level);
   return (int)(Correct * 100);
 }