protected override void OnNavigatedFrom(NavigationEventArgs e) { switch (tipoOperacao) { case etipoOperacao.cadastro: pageCadastro = e.Content as AlunosPageCadastro; if (pageCadastro != null) { pageCadastro.disciplina = disciplina; } break; case etipoOperacao.stars: pageStars = e.Content as AlunosPageStars; if (pageStars != null) { pageStars.aluno = aluno; } break; default: break; } lstAlunos.SelectionChanged -= lstAlunos_SelectionChanged; }
protected override void OnNavigatedFrom(NavigationEventArgs e) { switch (tipoOperacao) { case etipoOperacao.cadastro: pageCadastro = e.Content as AlunosPageCadastro; if (pageCadastro != null) pageCadastro.disciplina = disciplina; break; case etipoOperacao.stars: pageStars = e.Content as AlunosPageStars; if (pageStars != null) pageStars.aluno = aluno; break; default: break; } lstAlunos.SelectionChanged -= lstAlunos_SelectionChanged; }