private void OnEditCategoriesOk(CategoryManagementDialogViewModel categoryManagement)
        {
            foreach (var currentCategory in categoryManagement.Categories.SelectableValues)
            {
                if (!string.IsNullOrEmpty(currentCategory.EntityId))
                {
                    Application.Repository.UpdateCategory(currentCategory.EntityId, currentCategory.Name);
                }
                else
                {
                    Application.Repository.CreateCategory(currentCategory.Name);
                }
            }

            foreach (var categoryToDelete in categoryManagement.CategoriesToDelete)
            {
                Application.Repository.DeleteCategory(categoryToDelete.EntityId);
            }

            UpdateCurrentMonth();
        }
        private void OnEditCategoriesOk(CategoryManagementDialogViewModel categoryManagement)
        {
            foreach (var currentCategory in categoryManagement.Categories.SelectableValues)
            {
                if (!string.IsNullOrEmpty(currentCategory.EntityId))
                {
                    Application.Repository.UpdateCategory(currentCategory.EntityId, currentCategory.Name);
                }
                else
                {
                    Application.Repository.CreateCategory(currentCategory.Name);
                }
            }

            foreach (var categoryToDelete in categoryManagement.CategoriesToDelete)
            {
                Application.Repository.DeleteCategory(categoryToDelete.EntityId);
            }

            UpdateCurrentMonth();
        }