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(); }
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(); }