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;
        }
Exemple #2
0
        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;
        }