Beispiel #1
0
        public void OnNavigating(RoutingEventArgs routingEvent)
        {
            var search = routingEvent.To.ViewModel as SearchViewModel;

            if (search == null)
            {
                return;
            }

            if (!String.IsNullOrEmpty(_ApplicationConfiguration.Token))
            {
                return;
            }

            routingEvent.RedirectToroute("authentication");

            var first = routingEvent.From.ViewModel == null;

            var confirmationMessage = BuildEmptyTokenMessage(first);

            _MessageBox.ShowInformation(confirmationMessage);
        }