Beispiel #1
0
        private async void button1_Click(object sender, EventArgs e)
        {
            button1.Text    = "Downloading...";
            button1.Enabled = false;
            List <cn> List_cn = new List <cn>();

            List_cn = await GetList_cn();


            MessageBox.Show("Please wait,it may cost several minute.");
            Data.Clear();
            Data_unique.Clear();
            Data_Prophecy.Clear();
            await DownloadData_Async_Prophecy();
            await DownloadData_Async_Jewel();

            foreach (var cn in List_cn)
            {
                await DownloadData_Async(cn);

                await Task.Delay(500);
            }
            await DownloadData_Async_unique();

            await WriteToSqlite();

            button1.Text    = "從poedb取得資料";
            button1.Enabled = true;
            //物件序列化
        }
Beispiel #2
0
        private async void button1_Click(object sender, EventArgs e)
        {
            button1.Text    = "Downloading...";
            button1.Enabled = false;
            Data.Clear();
            Data_unique.Clear();
            Data_Prophecy.Clear();
            cancellationTokenSource = new CancellationTokenSource();
            ImageDownloadList.Clear();
            MessageBox.Show("Please wait,it may cost several minute.");

            await DownloadAllData();

            button1.Text    = "從poedb取得資料";
            button1.Enabled = true;
            //物件序列化
        }