public void RemoveEqualizer(Equalizer equalizer) { equalizers.Remove(equalizer); equalizer_container_record.Remove(equalizer.EqualizerRecord); }
public void RemoveEqualizer(Equalizer equalizer) { equalizers.Remove (equalizer); equalizer_container_record.Remove (equalizer.EqualizerRecord); }
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); } } }
public Equalizer CreateEqualizer() { if (equalizers == null) { LoadEqualizers (); } EqualizerRecord record = new EqualizerRecord (); Equalizer equalizer = new Equalizer (record); equalizer_container_record.Add (record); equalizers.Add (equalizer); return equalizer; }