private void AttributeSelected(UtilityNetworkAttribute attribute) { _attributeButton.SetTitle(attribute.Name, UIControlState.Normal); _selectedAttribute = attribute; // Reset the value, this prevents invalid values being used to create expressions. _valueButton.SetTitle("Value", UIControlState.Normal); _selectedValue = null; }
private void AttributeSelected(object sender, DialogClickEventArgs e) { _selectedAttribute = _attributes.ElementAt(e.Which); _attributeButton.Text = _selectedAttribute.Name; // Reset the value, this prevents invalid values being used to create expressions. _valueButton.Text = "Value"; _selectedValue = null; }