Esempio n. 1
0
 protected override async Task InitModuleAsync(IMapSet map)
 {
     Module = new ExamModule();
     await Module.InitAsync(new ExamInitializationContext(map)).ContinueWith(task =>
     {
     });
 }
Esempio n. 2
0
 public ExamContext(ExamTimeMode timeMode, IMapSet map, double examDistance)
     : this()
 {
     ExamTimeMode = timeMode;
     Map          = map;
     ExamDistance = examDistance;
 }
Esempio n. 3
0
 protected virtual async Task InitModuleAsync(IMapSet map)
 {
     Module = new ExamModule();
     await Module.InitAsync(new ExamInitializationContext(map)).ContinueWith(task =>
     {
         //wcf //wcf //wcf //wcf.....//wcf......
     });
 }
 /// <summary>
 /// Gets the specified map group by its id
 /// </summary>
 /// <param name="set"></param>
 /// <param name="id"></param>
 /// <returns></returns>
 public static IMapGroup GetGroupById(this IMapSet set, string id)
 {
     Check.NotNull(set, "set"); //NOXLATE
     foreach (var group in set.MapGroups)
     {
         if (group.id.Equals(id))
         {
             return(group);
         }
     }
     return(null);
 }
Esempio n. 5
0
 public static bool IsEmpty(this IMapSet map)
 {
     return(map.MapPoints == null || map == MapSet.Empty || map.MapPoints.Length == 0);
 }
 public ExamInitializationContext(IMapSet map)
 {
     MapSet = map;
 }