public bool ShouldSplitOn(string map)
        {
            if (!IsAutoSplitEnabled())
            {
                return(false);
            }

            if (SplitOnHL1ChaptersCheckbox.Checked && hl1_chapter_maps.Contains(map))
            {
                return(true);
            }
            if (SplitOnOP4ChaptersCheckbox.Checked && op4_chapter_maps.Contains(map))
            {
                return(true);
            }
            if (SplitOnBSChaptersCheckbox.Checked && bs_chapter_maps.Contains(map))
            {
                return(true);
            }
            if (SplitOnGMCChaptersCheckbox.Checked && gmc_chapter_maps.Contains(map))
            {
                return(true);
            }

            if (SplitOnMapsCheckbox.Checked && SplitOnMapsList.GetValues().Contains(map))
            {
                return(true);
            }

            return(false);
        }
        public bool ShouldSplitOn(string map)
        {
            if (!IsAutoSplitEnabled())
            {
                return(false);
            }

            if (SplitOnMapChangeCheckbox.Checked /*&& mapnames.Contains(map)*/)
            {
                return(true);
            }

            if (SplitOnMapsCheckbox.Checked && SplitOnMapsList.GetValues().Contains(map))
            {
                return(true);
            }

            return(false);
        }
        public XmlNode GetSettings(XmlDocument document)
        {
            XmlElement settingsNode = document.CreateElement("Settings");

            AppendElement(document, settingsNode, "Version", Assembly.GetExecutingAssembly().GetName().Version);

            AppendElement(document, settingsNode, "EnableAutoSplit", EnableAutoSplitCheckbox.Checked);
            AppendElement(document, settingsNode, "SplitOnMapChange", SplitOnMapChangeCheckbox.Checked);
            AppendElement(document, settingsNode, "SplitOnGameEnd", SplitOnGameEndCheckbox.Checked);
            AppendElement(document, settingsNode, "SplitOnMaps", SplitOnMapsCheckbox.Checked);
            AppendElement(document, settingsNode, "SplitOnMapsList", string.Join("|", SplitOnMapsList.GetValues()));

            AppendElement(document, settingsNode, "EnableAutoReset", EnableAutoResetCheckbox.Checked);
            AppendElement(document, settingsNode, "EnableAutoStart", EnableAutoStartCheckbox.Checked);

            return(settingsNode);
        }