Exemplo n.º 1
0
        /// <summary>
        /// This menu item is turned off if a slash already exists in the environment string.
        /// </summary>
        /// <param name="commandObject"></param>
        /// <param name="display"></param>
        /// <returns></returns>
        public bool OnDisplayInsertSlash(object commandObject,
                                         ref UIItemDisplayProperties display)
        {
            CheckDisposed();
            PhoneEnvReferenceLauncher rl   = (PhoneEnvReferenceLauncher)this.Control;
            PhoneEnvReferenceView     view = (PhoneEnvReferenceView)rl.MainControl;

            display.Enabled = view.CanInsertSlash();
            return(true);
        }