private void OverwriteExecute(OverwritePromptInfo aInfo) { DialogResult dr; using (var form = new OverwriteForm( aInfo.dest.FullName, aInfo.dest.Length.ToFormattedSize(), aInfo.entry.Name, aInfo.entry.Size.ToFormattedSize() )) { form.Owner = this; dr = form.ShowDialog(); aInfo.Action = form.Action; } switch (dr) { case DialogResult.Retry: aInfo.task.Action = aInfo.Action; break; case DialogResult.Abort: actionRemembered = aInfo.Action; break; default: break; } }