Ejemplo n.º 1
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            var navObj = new NavigationObject(e.Parameter);

            viewModel.AppUser = navObj.Get <AppUser>();

            viewModel.Concert = navObj.Get <Concert>();

            viewModel.NewConcertButtonVisibility = viewModel.AppUser.IsInRole(Roles.Administrator);

            await viewModel.GetConcertDetails();

            base.OnNavigatedTo(e);
        }
Ejemplo n.º 2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var navObj = new NavigationObject(e.Parameter);

            viewModel.AppUser = navObj.Get <AppUser>();

            base.OnNavigatedTo(e);
        }
Ejemplo n.º 3
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            viewModel.Login.Reset();
            viewModel.Registration.Reset();

            var navObj = new NavigationObject(e.Parameter);

            viewModel.Login.UserName = navObj.Get <AppUser>().UserName;

            /// Temp ///
            viewModel.Login.UserName = "******";
            viewModel.Login.Password = "******";
            /// Temp ///

            base.OnNavigatedTo(e);
        }