public BackgroundTask(StructorianAction action, Action callback) { Action = action; Callback = callback; }
private void RunBackgroundAction(StructorianAction action, Action callback) { tslProgress.Text = action.Text; backgroundWorker1.RunWorkerAsync(new BackgroundTask(action, callback)); }