Exemple #1
0
 public void PopulateMapInfos(MapInfos infos)
 {
     try
     {
         //read a List from MapInfos.rxdata
         List <dynamic> mapInfoList = ToList(rbhelper.load_map_infos());
         foreach (dynamic d in mapInfoList)
         {
             List <dynamic> entry = ToList(d);
             infos.AddMap((int)entry[0], entry[1].ToString(), (int)entry[2], (int)entry[3], (bool)entry[4], (int)entry[5], (int)entry[6], entry[7]);
         }
     }
     catch (Exception e)
     {
         System.Windows.Forms.MessageBox.Show(e.Message);
     }
 }
Exemple #2
0
 public void PopulateMapInfos(MapInfos infos)
 {
     try
     {
         //read a List from MapInfos.rxdata
         List <dynamic> mapInfoList = ToList(rbhelper.load_map_infos());
         foreach (dynamic d in mapInfoList)
         {
             List <dynamic> entry = ToList(d);
             infos.AddMap((int)entry[0], entry[1].ToString(), (int)entry[2], (int)entry[3], (bool)entry[4], (int)entry[5], (int)entry[6], entry[7]);
         }
         //todo: temporary, last editor map id
         int lastMap = rbhelper.get_last_map_id();
         Editor.SelectMap(lastMap);
     }
     catch (Exception e)
     {
         System.Windows.Forms.MessageBox.Show(e.Message);
     }
 }