/// <summary> /// Effectively closes the window by shutting down the dispatcher. /// </summary> static private object _QuitDispatcher() { try { GlobalLog.LogStatus("Calling SerializationHelper.CloseDisplayedTree..."); SerializationHelper.CloseDisplayedTree(); } catch (Exception err) { GlobalLog.LogStatus("Storing exception..."); SerializationHelper.StoreException(err); } return(null); }