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; }
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; }