<commit_before>﻿using FactorioModBuilder.Models;
using FactorioModBuilder.Models.ProjectItems;
using FactorioModBuilder.Models.SolutionItems;
using FactorioModBuilder.ViewModels.ProjectItems;
using FactorioModBuilder.ViewModels.Base;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WpfUtils;

namespace FactorioModBuilder.ViewModels
{
    public class SolutionVM : TreeItemVM<Solution>
    {      
        public SolutionVM(Solution sol, IEnumerable<ProjectVM> projects)
            : base(sol, projects)
        {

        }
    }
}<commit_msg>Changed SolutionVM to display Solution 'My Solution' (# Projects) instead of just My Solution<commit_after>﻿using FactorioModBuilder.Models;
using FactorioModBuilder.Models.ProjectItems;
using FactorioModBuilder.Models.SolutionItems;
using FactorioModBuilder.ViewModels.ProjectItems;
using FactorioModBuilder.ViewModels.Base;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WpfUtils;

namespace FactorioModBuilder.ViewModels
{
    public class SolutionVM : TreeItemVM<Solution>
    {      
        public SolutionVM(Solution sol, IEnumerable<ProjectVM> projects)
            : base(sol, projects)
        {
            this.Children.CollectionChanged += Children_CollectionChanged;
        }

        void Children_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            this.NotifyPropertyChanged("Name");
        }

        protected override string OnGetName(string name)
        {
            var res = "Solution '" + name + "' (" + this.Children.Count + " ";
            if (this.Children.Count == 1)
                res += " project)";
            else
                res += " projects)";
            return res;
        }
    }
}
{'fraction_non_alphanumeric': 0.08519269776876268, 'fraction_numerical': 0.0005070993914807302, 'mean_word_length': 3.279826464208243, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6644149', 'n_tokens_mistral': 533, 'n_tokens_neox': 508, 'n_words': 114}