public static void ResetData()
{
CurrentWindow = null;
Error.Clear();
LastCmdlet = null;
LastResult = null;
// Events
LastEventSource = null;
LastEventType = string.Empty;
LastEventArgs = null;
LastEventInfoAdded = false;
// 20130109
try {
// 20140130
// TODO:
classic.Automation.RemoveAllEventHandlers();
Events.Clear();
}
catch {
}
// 20140109
// WizardCollection.ResetData();
// ExecutionPlan.DisposeHighlighers();
// 20140108
//
// try {
// AutomationFactory.Reset();
// }
// catch {}
//
}