private void MainForm_Shown(object sender, EventArgs e) { ObjectDatabase.LoadFallback(); try { ObjectDatabase.Load(); } catch { } if (!Properties.Settings.Default.AutoUpdateODB) { return; } ObjectDatabase.m_WebClient.DownloadProgressChanged += new System.Net.DownloadProgressChangedEventHandler(this.ODBDownloadProgressChanged); //ObjectDatabase.m_WebClient.DownloadFileCompleted += new AsyncCompletedEventHandler(this.ODBDownloadDone); ObjectDatabase.m_WebClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(this.ODBDownloadDone); ObjectDatabase.Update(false); }
private void btnUpdateODB_Click(object sender, EventArgs e) { ObjectDatabase.Update(true); }