示例#1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
示例#2
0
        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);
        }
示例#3
0
 protected override void OnDeactivate(bool close)
 {
     _model.Dispose();
     base.OnDeactivate(close);
 }
 public void Dispose()
 {
     _model.Dispose();
 }