private DataSearch()
{
Dictionary<string, string[]> tableCols = new Dictionary<string, string[]>();
tableCols.Add("downloads", new string[] { "name", "description" });
if (this.NeedRebuild(tableCols))
{
// Close & clean up the connection used for testing
dbConn.Close();
dbConn.Dispose();
dbConn = null;
using (Status status = new Status())
{
status.ShowDialog(delegate
{
this.RebuildIndex(status, tableCols);
});
}
}
Model.Download.Added += this.Download_Added;
Model.Download.Updated += this.Download_Updated;
Model.Download.Removed += this.Download_Removed;
DownloadManager.Progress += this.Download_Progress;
}