void bgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            CollectionViewSource ResultCollection = (CollectionViewSource)FindResource("ResultData");

            ResultCollection.Source = Results.ToList();
            MessageBox.Show("Analysis done", "Info");
            try
            {
                BillingDataDataContext db = new BillingDataDataContext();
                db.ExecuteCommand("delete from invoiceanalyzeresult");
            }
            catch (Exception)
            { }
        }