private void BtnAddStateChainClick(object sender, EventArgs e)
        {
            var newStateChain = new StateChain {
                Name = GetStateChainNewName()
            };

            CurrentStateChainCollection.StateChains.Add(newStateChain);

            UpdateToCurrentStateChainCollection();

            lbStateChains.SelectedItem = newStateChain;

            SaveToProperty();
        }
        private void BtnAddStateChainClick(object sender, EventArgs e)
        {
            var newStateChain = new StateChain {Name = GetStateChainNewName()};

            CurrentStateChainCollection.StateChains.Add(newStateChain);

            UpdateToCurrentStateChainCollection();

            lbStateChains.SelectedItem = newStateChain;

            SaveToProperty();
        }