Exemple #1
0
        private void SaveNinja(Window window)
        {
            var message = ValidateName();

            if (message != null)
            {
                MessageBox.Show(message, "Input error", MessageBoxButton.OK, MessageBoxImage.Exclamation);
                return;
            }

            NinjaRepository.Instance.SaveNinja(Ninja.GetModel());

            window.Close();
        }