Example #1
0
 static IEnumerable GetEnumerable(Map map)
 {
     //return new MapEnumerator(this);
     int x, y;
     x = y = 0;
     while (y != map._adr.Rows)
     {
         yield return map[x++, y];
         if (x == map._adr.Columns)
         {
             y++;
             x = 0;
         }
     }
 }
Example #2
0
 public FormGraph3D(Map map)
 {
     InitializeComponent();
     this._map = map;
     Init();
 }
Example #3
0
 public FRomGrid(Map map)
     : base()
 {
     DataSource = map;
 }
Example #4
0
 /// <summary>
 /// Взять массив карт
 /// </summary>
 /// <returns>Массив карт</returns>
 public Map[] GetAllMaps()
 {
     Map[] arr = new Map[_stringToAdressMap.Count];
     int i = 0;
     foreach (var addr in _stringToAdressMap.Values)
         arr.SetValue(new Map(this, addr), i++);
     return arr;
 }