示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }