public void Dispose()
 {
     if (this._communicator != null)
     {
         this._communicator.Dispose();
         this._communicator = null;
     }
     saveFavoriteStations(this._favoriteStations.ToList());
 }
 public MainContext()
 {
     this._communicator         = new DirbleCommunicator();
     this.commandGetAllStations = new RelayCommand(param => getAllStations());
     this.commandSearchStations = new RelayCommand(param => searchStations());
     this.commandAddRecorder    = new RelayCommand(param => addRecorder());
     this.favoriteStations      = new ObservableCollection <Station>(loadFavoriteStations());
     this.recorderList          = new ObservableCollection <Recorder> {
         new Recorder(this.favoriteStations)
     };
     this.volume = 50;
 }