public static bool TryProcessFiles(IEnumerable <FileActionInfo> actions, Action beforeShowForm) { if (Try(actions)) { return(true); } beforeShowForm(); using (FileRetryForm form = new FileRetryForm(actions)) { return(form.ShowDialog() == DialogResult.OK); } }
public static bool TryProcessFiles(IEnumerable<FileActionInfo> actions, Action beforeShowForm) { if (Try(actions)) { return true; } beforeShowForm(); using (FileRetryForm form = new FileRetryForm(actions)) { return (form.ShowDialog() == DialogResult.OK); } }