public LongRunningFunctionWindow(BackgroundAction action, string title) { InitializeComponent(); Title = title; Action = action; Worker.DoWork += worker_DoWork; Worker.WorkerSupportsCancellation = true; Action.Bind(Worker); Worker.RunWorkerCompleted += worker_RunWorkerCompleted; }
public virtual void ApplyTemplateInfo(ActionTemplateInfo ati, BackgroundAction action) { // default implementation: do nothing }