public void AddNumberDefinition(INumberDefinition numberDefinition)
 {
     _numberDefinitions.Add(numberDefinition);
 }
        private void SaveButtonClicked()
        {
            if (!IsValid())
                return;

            _number = new NumberDefinition(_name, _minvalue, _maxvalue, _decimals);
            _window.Close();
        }