/// <summary>
            /// Initializes a new instance of the <see cref="DataUpdateDownloadControl"/> class.
            /// </summary>
            /// <param name="datafile">The datafile.</param>
            internal DataUpdateDownloadControl(SerializableDatafile datafile)
            {
                InitializeComponent();

                m_datafile = datafile;
                m_label.Text = $"{datafile.Name}";
                m_progressLabel.Text = @"Downloading update...";
                m_tempFilename = Path.Combine(EveMonClient.EVEMonDataDir, $"{datafile.Name}.tmp");

                WebClient = HttpWebClientService.GetWebClient();
            }
        /// <summary>
        /// Serializes the data files info for the patch file.
        /// </summary>
        /// <param name="datafiles"></param>
        /// <returns></returns>
        private void ExportDatafiles(ICollection<SerializableDatafile> datafiles)
        {
            string url = $"{rtbDatafileUrl.Text}{tbExpansion.Text}{Path.AltDirectorySeparatorChar}{tbExpRevision.Text}";

            foreach (Datafile datafile in s_datafiles)
            {
                SerializableDatafile serialDatafile = new SerializableDatafile();
                datafiles.Add(serialDatafile);

                foreach (DatafileControl dfControl in gbDatafiles.Controls.OfType<DatafileControl>().Where(
                    x => x != null && x.gbDatafile.Text == datafile.Filename))
                {
                    serialDatafile.Name = dfControl.gbDatafile.Text;
                    serialDatafile.Date = dfControl.dtpDatafiles.Value.ToString(DateTimeFormat, s_enUsCulture);
                    serialDatafile.MD5Sum = dfControl.lblMD5Sum.Text;
                    serialDatafile.Address = url;
                    serialDatafile.Message = dfControl.rtbDatafileMessage.Text.Trim();

                    if (!serialDatafile.Message.Contains(CompatibilityMessage))
                        serialDatafile.Message += CompatibilityMessage;
                }
            }
        }