public override void Clear(bool isNotify = true)
 {
     lock (Items)
     {
         CashPresenterManager.RemoveAll(Items);
     }
     base.Clear(isNotify);
 }
예제 #2
0
        private bool _disposedValue = false; // To detect redundant calls

        private void Dispose(bool disposing)
        {
            if (!_disposedValue)
            {
                if (disposing)
                {
                    lock (Items)
                    {
                        CashPresenterManager.RemoveAll(Items);
                    }
                }

                // free unmanaged resources (unmanaged objects) and override a finalizer below.
                // set large fields to null.

                _disposedValue = true;
            }
        }