示例#1
0
        private async void startBtn_Click(object sender, EventArgs e)
        {
            try
            {
                DataTask task = new DataTask(LinksFile, !skipCheckBox.Checked);
                task.Log += ProgressChanged;

                await Task.Run(async() =>
                {
                    await task.Execute();
                });
            }
            catch (IOException ex)
            {
                MessageBox.Show("Hiba: " + ex.Message);
            }
        }