SetupNavigationHandler() public method

public SetupNavigationHandler ( System.Windows.Navigation.NavigationService ns ) : void
ns System.Windows.Navigation.NavigationService
return void
        private void createEventBtn_Click(object sender, RoutedEventArgs e)
        {
            EventView editEventScreen = new EventView();

            editEventScreen.SetupNavigationHandler(this.NavigationService);
            this.NavigationService.Navigate(editEventScreen);
        }
        public void EditEventByID(int id)
        {
            // Redirect user to EditEventScreen to edit their event.
            SessionModel.GetInstance().EditEventID = id;

            EventView editEventScreen = new EventView();
            editEventScreen.SetupNavigationHandler(this.NavigationService);
            this.NavigationService.Navigate(editEventScreen);
        }
        public void EditEventByID(int id)
        {
            // Redirect user to EditEventScreen to edit their event.
            SessionModel.GetInstance().EditEventID = id;

            EventView editEventScreen = new EventView();

            editEventScreen.SetupNavigationHandler(this.NavigationService);
            this.NavigationService.Navigate(editEventScreen);
        }
 private void createEventBtn_Click(object sender, RoutedEventArgs e)
 {
     EventView editEventScreen = new EventView();
     editEventScreen.SetupNavigationHandler(this.NavigationService);
     this.NavigationService.Navigate(editEventScreen);
 }