コード例 #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);
     }
 }