public MainWindow()
        {
            // Set the applicaton's culture info settings to British English, used for the spell check.
            Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.GetCultureInfo("en-GB");
            LanguageProperty.OverrideMetadata(typeof(FrameworkElement),
                                              new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(Thread.CurrentThread.CurrentCulture.Name)));

            // New briefing object is created with the country set to Germany by default. This can be changed by the user in the UI later.
            briefing = new Briefing(Country.Germany);
            fw       = new FileWriter();

            InitializeComponent();

            this.Title = $"The Awesome Amazing Briefing Maker 2000 ({Properties.Resources.VersionNumber})";
        }
        //public void SaveMainWindowContents(List<TextBox> textBoxes, List<RadioButton> radioButtons)
        //{
        //    string fileName = previousBriefingsPath + Utilities.CreateDatetimeSeed() + ".txt";
        //    Directory.CreateDirectory(previousBriefingsPath);
        //    var file = File.Create(fileName);
        //    file.Close();

        //    using (TextWriter tw = new StreamWriter(fileName))
        //    {
        //        foreach (var rb in radioButtons)
        //            tw.WriteLine(string.Format("{0}|{1}", rb.Name, rb.IsChecked));
        //        foreach (var tb in textBoxes)
        //            tw.WriteLine(string.Format("{0}|{1}", tb.Name, tb.Text));
        //    }
        //}

        /// <summary>
        /// Generates a briefing.sqf file from scratch, and edits an existing endConditions.sqf file.
        /// </summary>
        /// <param name="briefing"></param>
        public void GenerateBriefing(Briefing briefing)
        {
            if (File.Exists(briefingFilePath) == false)
            {
                var file = File.Create(briefingFilePath);
                file.Close();
            }

            using (TextWriter tw = new StreamWriter(briefingFilePath))
            {
                tw.WriteLine($"// Created with The Awesome Amazing Briefing Maker 2000 - v{Properties.Resources.VersionNumber}");
                tw.WriteLine("#include \"core\\briefingCore.sqf\"");

                foreach (Tab tab in briefing.Tabs)
                {
                    WriteTab(tab, tw);
                }

                tw.WriteLine("DISPLAYBRIEFING();");
                tw.WriteLine("#include \"orbat.sqf\"");
            }

            EditEndConditions(briefing.EndingMessages);
        }