示例#1
0
        public Restore RecordDockingRestore()
        {
            // Remove any existing Restore object
            _dockingRestore = null;

            // Do we have a parent window we are inside?
            if (_parentWindowContent != null)
            {
                // Ask the parent to provide a Restore object for us
                _dockingRestore = _parentWindowContent.RecordRestore(this);
            }

            // If we cannot get a valid Restore object from the parent then we have no choice
            // but to use the default restore which is less accurate but better than nothing
            if (_dockingRestore == null)
            {
                _dockingRestore = _defaultRestore;
            }

            return(_dockingRestore);
        }