コード例 #1
0
ファイル: JingYing.cs プロジェクト: junbao520/AndroidApp
 protected override async Task InitModuleAsync(IMapSet map)
 {
     Module = new ExamModule();
     await Module.InitAsync(new ExamInitializationContext(map)).ContinueWith(task =>
     {
     });
 }
コード例 #2
0
 public ExamContext(ExamTimeMode timeMode, IMapSet map, double examDistance)
     : this()
 {
     ExamTimeMode = timeMode;
     Map          = map;
     ExamDistance = examDistance;
 }
コード例 #3
0
ファイル: HuaZhong.cs プロジェクト: junbao520/AndroidApp
 protected virtual async Task InitModuleAsync(IMapSet map)
 {
     Module = new ExamModule();
     await Module.InitAsync(new ExamInitializationContext(map)).ContinueWith(task =>
     {
         //wcf //wcf //wcf //wcf.....//wcf......
     });
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 public static bool IsEmpty(this IMapSet map)
 {
     return(map.MapPoints == null || map == MapSet.Empty || map.MapPoints.Length == 0);
 }
コード例 #6
0
 public ExamInitializationContext(IMapSet map)
 {
     MapSet = map;
 }