private void LoadEqualizers() { equalizers = new List <Equalizer> (); equalizer_container_record = new EqualizerContainerRecord(); if (!File.Exists(EqualizerDatabasePath)) { return; } using (BinaryReader reader = new BinaryReader(File.Open(EqualizerDatabasePath, FileMode.Open))) { equalizer_container_record.Read(reader); foreach (EqualizerRecord eqrec in equalizer_container_record.EqualizerRecords) { Equalizer eq = new Equalizer(eqrec); equalizers.Add(eq); } } }
private void LoadEqualizers() { equalizers = new List<Equalizer> (); equalizer_container_record = new EqualizerContainerRecord (); if (!File.Exists (EqualizerDatabasePath)) { return; } using (BinaryReader reader = new BinaryReader (File.Open (EqualizerDatabasePath, FileMode.Open))) { equalizer_container_record.Read (reader); foreach (EqualizerRecord eqrec in equalizer_container_record.EqualizerRecords) { Equalizer eq = new Equalizer (eqrec); equalizers.Add (eq); } } }