static void CheckNavigation () { if (!Helper.CheckAccess ()) throw new UnauthorizedAccessException (); if (!Settings.EnableNavigation) throw new InvalidOperationException ("enabledNavigation is set to false"); }