Example #1
0
        /// <summary>
        /// This method will be called when the window should hide an object.
        /// It raises the VisibleObjects.Changed event when necessary.
        /// </summary>
        /// <param name="domainObj">the object to hide</param>
        protected override void HideObjectCore(object domainObj)
        {
            if (!IsVisible(domainObj))
            {
                return;
            }

            // TODO: Add code to hide the object

            OnVisibleObjectsChanged(VisibilityChangedEventArgs.FromSingleObject(domainObj, VisibilityState.Hidden));
        }
Example #2
0
        /// <summary>
        /// This method will be called when the window should show an object.
        /// It raises the VisibleObjects.Changed event when necessary.
        /// </summary>
        /// <param name="domainObj">the object to show in the window</param>
        protected override void ShowObjectCore(object domainObj)
        {
            if (!CanShowObject(domainObj) || IsVisible(domainObj))
            {
                return;
            }

            // TODO: Add code to show the object in the window

            OnVisibleObjectsChanged(VisibilityChangedEventArgs.FromSingleObject(domainObj, VisibilityState.Visible));
        }