private void ResetTimer() { try { (Window.GetWindow(this) as TopWindow).ResetTimer(); } catch (NullReferenceException) { } }