private void DisableLoadingWindow() { if (adLoadingWindow == null) { throw new NullReferenceException("adLoadingWindow"); } adLoadingWindow.TurnOff(); }