Beispiel #1
0
        public virtual void Dispose()
        {
            _isDisposed = true;
            _controller = new WeakReference(null);
            _renderer?.Dispose();
            var imgSource = _d3dCanvas?.Source as D3D10ImageSource;

            _d3dCanvas.Source = null;
            imgSource?.Dispose();
            _scene      = null;
            _mouseState = null;
        }
Beispiel #2
0
        /// <summary>
        /// Set the member variables to default values. Intended only for use in constructors and deserialization code.
        /// </summary>
        protected virtual void SetMemberVariablesToDefault()
        {
            _nonPageAreaColor = Color.Gray;

            _pageGroundBrush = new BrushX(Color.LightGray);

            _graphAreaBrush = new BrushX(Color.Snow);

            _horizontalResolution = 300;

            _verticalResolution = 300;

            // A instance of a mouse handler class that currently handles the mouse events..</summary>
            _mouseState = new ObjectPointerMouseHandler(this._view);



            // This holds a frozen image of the graph during the moving time
            _cachedGraphImage = null;
        }