Exemplo n.º 1
0
        // <summary>
        //     As long as we have an EditingContext, we can create our MappingDetailsInfo instance
        // </summary>
        private void InitializeView()
        {
            if (_editingContext == null)
            {
                _currentMappingDetailsInfo = null;
            }
            else
            {
                _currentMappingDetailsInfo = _editingContext.Items.GetValue <MappingDetailsInfo>();
                if (_currentMappingDetailsInfo.SelectionContainer == null)
                {
                    _currentMappingDetailsInfo.SetMappingDetailsInfo(
                        this,
                        _editingContext,
                        new EntityDesignSelectionContainer <MappingDetailsSelection>(this, _editingContext)
                        );
                }
            }

            ClearToolWindowContents(true);
        }
        // <summary>
        //     As long as we have an EditingContext, we can create our MappingDetailsInfo instance
        // </summary>
        private void InitializeView()
        {
            if (_editingContext == null)
            {
                _currentMappingDetailsInfo = null;
            }
            else
            {
                _currentMappingDetailsInfo = _editingContext.Items.GetValue<MappingDetailsInfo>();
                if (_currentMappingDetailsInfo.SelectionContainer == null)
                {
                    _currentMappingDetailsInfo.SetMappingDetailsInfo(
                        this,
                        _editingContext,
                        new EntityDesignSelectionContainer<MappingDetailsSelection>(this, _editingContext)
                        );
                }
            }

            ClearToolWindowContents(true);
        }