Exemplo n.º 1
0
 public static bool DoAction(Action<ProgressData> action, string title, bool isCancelEnabled)
 {
     ProgressWindow wnd = new ProgressWindow();
     wnd.Title = title;
     wnd.AttachAction(action, isCancelEnabled);
     return wnd.ShowDialog() ?? false;
 }