예제 #1
0
        private void WatchPropertyOfButton(PanelButton button)
        {
            //for now, only handles Boolean properties
            BoolPropertyChoice choice = button.Tag as XCore.BoolPropertyChoice;

            if (choice != null)
            {
                m_propertiesToWatch.Add(choice.BoolPropertyName, button);
            }
        }
예제 #2
0
        /// <summary>
        /// is what we are displaying affected by this XCore property?
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public bool IsRelatedProperty(string name)
        {
            //for now, only handles Boolean properties
            BoolPropertyChoice choice = this.Tag as XCore.BoolPropertyChoice;

            if (choice == null)
            {
                return(false);
            }

            return(choice.BoolPropertyName == name);
        }