Пример #1
0
        private void NotifyViewsOnActivation(IView activatedView)
        {
            INotifiedView prevActiveWFView = prevActiveView as INotifiedView;

            if (prevActiveWFView != null)
            {
                prevActiveWFView.Activate(false);
            }
            INotifiedView winformsView = activatedView as INotifiedView;

            if (winformsView != null)
            {
                winformsView.Activate(true);
            }
            prevActiveView = activatedView;
        }
Пример #2
0
        /// <summary>
        /// A method used to notify views about their (de)activation.
        /// </summary>
        #endregion
        protected virtual void NotifyViewsOnActivation(IView activatedView)
        {
            INotifiedView prActiveNotifiedView = prevActiveView as INotifiedView;

            if (prActiveNotifiedView != null)
            {
                prActiveNotifiedView.Activate(false);
            }
            INotifiedView activatedNotifiedView = activatedView as INotifiedView;

            if (activatedNotifiedView != null)
            {
                activatedNotifiedView.Activate(true);
            }
            prevActiveView = activatedView;
        }