Exemple #1
0
        public static void Load()
        {
            Clear();
            System.IO.FileStream file = new System.IO.FileStream("C:\\TPV\\plazas.dat", System.IO.FileMode.Open);
            newCod = Util.LoadInt(file);
            int l = Util.LoadInt(file);

            if (l != 0)
            {
                Plaza p;
                for (int i = 0; i < l; i++)
                {
                    p = new Plaza();
                    p.Load(file);
                    AddPlaza(p);
                }
            }
            file.Close();
        }
Exemple #2
0
 public static void Load()
 {
     Clear();
     System.IO.FileStream file = new System.IO.FileStream("C:\\TPV\\plazas.dat", System.IO.FileMode.Open);
     newCod = Util.LoadInt(file);
     int l = Util.LoadInt(file);
     if ( l != 0 )
     {
         Plaza p ;
         for ( int i = 0 ; i < l ; i++ )
         {
             p = new Plaza();
             p.Load(file);
             AddPlaza(p);
         }
     }
     file.Close();
 }