public static void StartDownload(string DownloadID)
        {
            var itemToResume = Downloads.DownloadEntries.Where(download => download.DownloadID == DownloadID).FirstOrDefault();

            itemToResume.Running = true;

            currentDownloads.Add(itemToResume.DownloadID, new Download());

            Task.Factory.StartNew(() => currentDownloads[itemToResume.DownloadID].DownloadFile(itemToResume.DownloadLink, itemToResume.SaveTo));
            var window = new Dialogs.DownloadProgress(itemToResume.DownloadID);

            window.Show();
        }
        //Main Menu functions
        public static void ResumeDownload(string[] DownloadIDs)
        {
            foreach (var DownloadID in DownloadIDs)
            {
                var itemToResume = Downloads.DownloadEntries.Where(download => download.DownloadID == DownloadID).FirstOrDefault();

                if (itemToResume.Running == false)
                {
                    itemToResume.Running = true;

                    if (!currentDownloads.ContainsKey(itemToResume.DownloadID))
                    {
                        currentDownloads.Add(itemToResume.DownloadID, new Download());
                    }

                    Task.Factory.StartNew(() => currentDownloads[itemToResume.DownloadID].DownloadFile(itemToResume.DownloadLink, itemToResume.SaveTo));
                    var window = new Dialogs.DownloadProgress(itemToResume.DownloadID);
                    window.Show();
                }
            }
        }
        //Main Menu functions
        public static void ResumeDownload(string[] DownloadIDs)
        {
            foreach (var DownloadID in DownloadIDs)
            {
                var itemToResume = Downloads.DownloadEntries.Where(download => download.DownloadID == DownloadID).FirstOrDefault();

                if (itemToResume.Running == false)
                {
                    itemToResume.Running = true;

                    if (!currentDownloads.ContainsKey(itemToResume.DownloadID))
                    {
                        currentDownloads.Add(itemToResume.DownloadID, new Download());
                    }

                    Task.Factory.StartNew(() => currentDownloads[itemToResume.DownloadID].DownloadFile(itemToResume.DownloadLink, itemToResume.SaveTo));
                    var window = new Dialogs.DownloadProgress(itemToResume.DownloadID);
                    window.Show();
                }
            }
        }
        public static void StartDownload(string DownloadID)
        {
            var itemToResume = Downloads.DownloadEntries.Where(download => download.DownloadID == DownloadID).FirstOrDefault();

            itemToResume.Running = true;

            currentDownloads.Add(itemToResume.DownloadID, new Download());

            Task.Factory.StartNew(() => currentDownloads[itemToResume.DownloadID].DownloadFile(itemToResume.DownloadLink, itemToResume.SaveTo));
            var window = new Dialogs.DownloadProgress(itemToResume.DownloadID);
            window.Show();
        }