private async void btnRipGame_Click(object sender, EventArgs e) { if (Settings.Default.CreateIRDWhileRipping) { // Call create Ird method await CreateIrd(IrdCreator.Create(theODD, true)); } else { cancellation = new CancellationTokenSource(); currentTask = TaskEx.Run(async() => await theODD.DoRip(cancellation.Token)); await currentTask; } }
private async void btnCreateIrdFromDrive_Click(object sender, EventArgs e) { await CreateIrd(IrdCreator.Create(theODD)); }
private async void btnCreateIrdFile_Click(object sender, EventArgs e) { await CreateIrd(IrdCreator.Create()); }