string result = task.State["WizardResult"].ToString();
Microsoft.Practices.CompositeUI.EventBroker.EventBrokerException saying a method signature is wrong. Cause: Your subscriber method must have exactly (object sender, EventArgs e) signature. If you use a custom ItemEventArgs , CAB will reject it. Fix: Wrap your custom args inside a lambda or switch to WorkItem.EventTopics[name].AddSubscription . string result = task
private void dataGridView1_SelectionChanged(object sender, EventArgs e) string result = task.State["WizardResult"].ToString()
This abstraction allows a developer to write a View (a User Control) and have it displayed in a tab during development, but switched to a separate window later without changing a single line of code in the View itself. string result = task