protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
protected override void OnDeactivate(bool close) { _model.PropertyChanged -= _model_PropertyChanged; foreach (var devCashier in _model.DeviceCashiers) { devCashier.Cashier.PropertyChanged -= Cashier_PropertyChanged; devCashier.PropertyChanged -= DevCashierOnPropertyChanged; } _model.Listener.PropertyChanged -= Listener_PropertyChanged; _model.SoundQueue.PropertyChanged -= SoundQueue_PropertyChanged; _model.Dispose(); base.OnDeactivate(close); }
protected override void OnDeactivate(bool close) { _model.Dispose(); base.OnDeactivate(close); }
public void Dispose() { _model.Dispose(); }