public static void Undo(object switcherObject) { if (switcherObject != null) { HostExecutionContextManager currentHostExecutionContextManager = HostExecutionContextManager.GetCurrentHostExecutionContextManager(); if (currentHostExecutionContextManager != null) { currentHostExecutionContextManager.Revert(switcherObject); } } }
static public void Undo(Object switcherObject) { if (switcherObject == null) { return; } // otherwise call the host HostExecutionContextManager hostMgr = HostExecutionContextManager.GetCurrentHostExecutionContextManager(); if (hostMgr != null) { hostMgr.Revert(switcherObject); } }
public static void Undo(object switcherObject) { if (switcherObject == null) { return; } HostExecutionContextManager executionContextManager = HostExecutionContextManager.GetCurrentHostExecutionContextManager(); if (executionContextManager == null) { return; } executionContextManager.Revert(switcherObject); }