private void ProcessContent(string content, LogFileItem lfi)
        {
            BadgeManager.Load(lfi);
            DateTime startDateTime = lfi.StartDate;

            string[] lines = content.Split('\r');


            var badgesEntries = lines.Where(a => a.EndsWith(BadgeLine) || a.Contains(BadgeLine2));

            foreach (string badgeEntry in badgesEntries)
            {
                //"2019-12-28 12:37:03 " -- cut first 20
                string   date     = badgeEntry.Substring(0, 20);
                DateTime lineDate = DateTime.Parse(date);
                if (lineDate > startDateTime)
                {
                    string line = badgeEntry.Substring(20, badgeEntry.Length - 20);
                    if (line.EndsWith(BadgeLine))
                    {
                        line = line.Replace(BadgeLine, string.Empty);
                        BadgeManager.Add(new BadgeItem {
                            Name = line, Selected = true
                        });
                    }
                    if (line.Contains(BadgeLine2))
                    {
                        line = line.Replace(BadgeLine2, string.Empty);
                        line = line.Replace("badge.", string.Empty);
                        line = line.Trim();
                        BadgeManager.Add(new BadgeItem {
                            Name = line, Selected = true
                        });
                    }
                }
            }



            BadgeManager.Save();

            MessageBox.Show("Chat log file detection completed!");


            //LoadUI();

            LoadMatches();
        }
        public void LoadUI()
        {
            BadgeManager.Load(_lfi);

            List <RawDataItem> rdiList = BadgeRawData.Read();



            //Verif(rdiList);



            tabControlGrp.TabPages.Clear();


            foreach (RawDataItem rdi in rdiList)
            {
                tabControlGrp.TabPages.Add(new MyTabPage(rdi, tabControlGrp));
            }

            int count = BadgeManager.List.Count(a => a.Selected);

            lblTotalBadgeCount.Text = $"Total Badges:{count}";
        }