Exemple #1
0
        internal Preference(GLPanel target)
        {
            _target = target;

            _tolerance = 0.2f;
            _aliased   = true;
        }
Exemple #2
0
        public virtual bool Dispose()
        {
            if (IsUpdating)
            {
                NeedDispose = true;
                return(false);
            }

            if (_isDisposed)
            {
                return(false);
            }
            _isDisposed = true;
            NeedDispose = false;

            _DisposeModels();
            _context1?.Dispose();
            _context1 = null;
            _context2?.Dispose();
            _context2 = null;
            _panel    = null;
            return(true);
        }
Exemple #3
0
 public void Dispose()
 {
     _target = null;
 }