private void UpdateModel(GroupCharacterViewModel model)
        {
            if (model == null) return;
            AddGroupCharacterView view = new AddGroupCharacterView(false, model.GetModel, repository) { ShowInTaskbar = false };
            view.ShowDialog();
            if (view.DialogResult != true) return;

            bool flag = repository.UpdateGroupCharacter(model.GetModel);
            if (!flag)
            {
                MessageBoxWPF.Show(StringProject.ErrorUpdRecort, StringProject.ErrorCaption, MessageBoxButton.OK, MessageBoxImage.Error);
                return;
            }
            model.RefreshModel();
        }