コード例 #1
0
        /// <summary>
        /// Update the context sensitive data, related to this view.
        /// </summary>
        private void UpdateContextSensitiveData()
        {
            if (_propertiesViewModel == null)
            {
                _propertiesViewModel = _contextualViewModelManager.GetViewModelForContextSensitiveView <DataGridPropertiesViewModel>();
            }

            if (_propertiesViewModel != null && Items != null)
            {
                _propertiesViewModel.NumberOfRows = Items == null ? 0 : Items.Count;
            }
        }
コード例 #2
0
        /// <summary>
        /// Update the context sensitive data, related to this view.
        /// </summary>
        private void UpdateContextSensitiveData()
        {
            if (_propertiesViewModel == null)
            {
                _propertiesViewModel = _contextualViewModelManager.GetViewModelForContextSensitiveView <PropertiesViewModel>();
            }

            if (_propertiesViewModel != null)
            {
                _propertiesViewModel.Url = Url;
            }
        }
コード例 #3
0
        /// <summary>
        /// Update the context sensitive data, related to current view.
        /// Everytime the View is changed
        /// the activeview source is parsed in MethodsCollection and sent to the _propertiesViewModel
        /// to update the document map
        /// </summary>
        private void UpdateContextSensitiveData()
        {
            if (_propertiesViewModel == null)
            {
                _propertiesViewModel = _contextualViewModelManager.GetViewModelForContextSensitiveView <PropertiesViewModel>();
            }
            else
            {
                if (_propertiesViewModel.MethodSignatureCollection != null)
                {
                    _propertiesViewModel.MethodSignatureCollection.Clear();
                }

                _propertiesViewModel.MethodSignatureCollection        = MethodsCollection();
                _propertiesViewModel.CurrentViewModelUniqueIdentifier = this.UniqueIdentifier;
            }
        }