Exemplo n.º 1
0
        void MyTeam_Navigate(NavigationEventHandler obj)
        {
            if (obj.PageViewModel == typeof(MyEventViewModel))
            {
                //StaticValues.Dispatcher.BeginInvoke(() =>
                //{

                Messenger.Default.Send<Event>((Event)obj.Parameter, "SelectedEvent");
                var navigation = new NavigationService();
                navigation.Navigate<MyEventViewModel>(null);
                //});
            }
        }
Exemplo n.º 2
0
        void Login_Navigate(NavigationEventHandler obj)
        {
            if (obj.PageViewModel == typeof(MainViewModel))
            {
                StaticValues.Dispatcher.BeginInvoke(() =>
                {
                    StaticValues.CurrentUser = (User)obj.Parameter;

                    var navigation = new NavigationService();
                    navigation.Navigate<MainViewModel>(null);
                });
            }
        }
Exemplo n.º 3
0
 void Main_Navigate(NavigationEventHandler obj)
 {
     if (obj.PageViewModel == typeof(MyTeamViewModel))
     {
         Messenger.Default.Send<Team>((Team)obj.Parameter, "SelectedTeam");
         var navigation = new NavigationService();
         navigation.Navigate<MyTeamViewModel>(null);
     }
 }
Exemplo n.º 4
0
 protected virtual void OnNavigate(NavigationEventHandler obj)
 {
     Action<NavigationEventHandler> handler = Navigate;
     if (handler != null) handler(obj);
 }