Пример #1
0
        /// <summary>
        /// Raises the <see cref="GetViewModels"/> event which is handled on the DocumentViewBase
        /// to get one or more view models based on settings in <see cref="FindDocumentViewModel"/>.
        /// </summary>
        /// <param name="e">The <see cref="FindDocumentViewModel"/>.</param>
        protected void OnGetViewModels(FindDocumentViewModel e)
        {
            var getViewModels = GetViewModels;

            if (getViewModels != null)
            {
                getViewModels(this, e);
            }
        }
Пример #2
0
        /// <summary>
        /// Raises the <see cref="GetViewModels"/> event which is handled on the DocumentViewBase
        /// to get one or more view models based on settings in <see cref="FindDocumentViewModel"/>.
        /// </summary>
        /// <param name="e">The <see cref="FindDocumentViewModel"/>.</param>
        protected void OnGetViewModels(FindDocumentViewModel e)
        {
            var getViewModels = GetViewModels;

            getViewModels?.Invoke(this, e);
        }