void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (ShowCompleteMessage) { if (!e.Cancelled) { MessageBox.Show(this, "下载完成! => " + ((int)e.Result).ToString() + " / " + all); } else { MessageBox.Show(this, "取消下载! => " + ((int)e.Result).ToString() + " / " + all); } } list.Clear(); GMaps.Instance.UseMemoryCache = true; GMaps.Instance.CacheOnIdleRead = true; GMaps.Instance.BoostCacheEngine = false; worker.Dispose(); this.Close(); db.关闭数据库(); }
public void 结束() { if (!载中) { return; } 载中 = false; GMaps.Instance.UseMemoryCache = true; _存储.关闭数据库(); }