Exemplo n.º 1
0
        private void Save()
        {
            var newName = _deityEditControl.GetName();

            if (newName == "")
            {
                return;
            }
            if (_factory.CurrentDeity == null)
            {
                _factory.CreateDeity(newName);
            }
            else
            {
                _factory.UpdateDeity(newName);
            }

            Cancel();
        }