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); } }
/// <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); }