public State(StudyFilterComponent component, IEnumerable <string> paths, bool recursive) { this.Component = component; this.Paths = paths; this.SynchronizationContext = SynchronizationContext.Current; this.Recursive = recursive; }
public SortPredicateRoot(StudyFilterComponent owner) { _owner = owner; _predicates.ItemAdded += Predicates_Changed; _predicates.ItemChanged += Predicates_Changed; _predicates.ItemRemoved += Predicates_Changed; _predicates.EnableEvents = true; }
public static bool Load(StudyFilterComponent component, IDesktopWindow desktopWindow, bool allowCancel, IEnumerable<string> paths, bool recursive) { bool success = false; BackgroundTask task = new BackgroundTask(LoadWorker, allowCancel, new State(component, paths, recursive)); task.Terminated += delegate(object sender, BackgroundTaskTerminatedEventArgs e) { success = e.Reason == BackgroundTaskTerminatedReason.Completed; }; ProgressDialog.Show(task, desktopWindow, true, ProgressBarStyle.Continuous); return success; }
public static bool Load(StudyFilterComponent component, IDesktopWindow desktopWindow, bool allowCancel, IEnumerable <string> paths, bool recursive) { bool success = false; BackgroundTask task = new BackgroundTask(LoadWorker, allowCancel, new State(component, paths, recursive)); task.Terminated += delegate(object sender, BackgroundTaskTerminatedEventArgs e) { success = e.Reason == BackgroundTaskTerminatedReason.Completed; }; ProgressDialog.Show(task, desktopWindow, true, ProgressBarStyle.Continuous); return(success); }
public static bool Load(StudyFilterComponent component, IDesktopWindow desktopWindow, bool allowCancel, IEnumerable<string> paths, bool recursive) { BackgroundTaskTerminatedEventArgs evArgs = null; try { using (var task = new BackgroundTask(LoadWorker, allowCancel, new State(component, paths, recursive))) { task.Terminated += (s, e) => evArgs = e; ProgressDialog.Show(task, desktopWindow, true, ProgressBarStyle.Continuous); } } catch (Exception ex) { ExceptionHandler.Report(ex, desktopWindow); return false; } if (evArgs.Reason == BackgroundTaskTerminatedReason.Exception && evArgs.Exception != null) ExceptionHandler.Report(evArgs.Exception, desktopWindow); return evArgs.Reason == BackgroundTaskTerminatedReason.Completed; }
public static bool Load(StudyFilterComponent component, IDesktopWindow desktopWindow, bool allowCancel, IEnumerable <string> paths, bool recursive) { BackgroundTaskTerminatedEventArgs evArgs = null; try { using (var task = new BackgroundTask(LoadWorker, allowCancel, new State(component, paths, recursive))) { task.Terminated += (s, e) => evArgs = e; ProgressDialog.Show(task, desktopWindow, true, ProgressBarStyle.Continuous); } } catch (Exception ex) { ExceptionHandler.Report(ex, desktopWindow); return(false); } if (evArgs.Reason == BackgroundTaskTerminatedReason.Exception && evArgs.Exception != null) { ExceptionHandler.Report(evArgs.Exception, desktopWindow); } return(evArgs.Reason == BackgroundTaskTerminatedReason.Completed); }
public FilterPredicateRoot(StudyFilterComponent owner) { _enabled = true; _owner = owner; _predicate.Changed += Predicates_Changed; }
public StudyFilterToolContext(StudyFilterComponent component) { _component = component; }
public StudyFilterColumnCollection(StudyFilterComponent owner) { _owner = owner; }
public State(StudyFilterComponent component, IEnumerable<string> paths, bool recursive) { this.Component = component; this.Paths = paths; this.SynchronizationContext = SynchronizationContext.Current; this.Recursive = recursive; }