private void CardTitle_OnClick(object sender, RoutedEventArgs e) { var studentPackBlock = new StudentPackBlockPreview(_group, _navigateService); var studentPackTab = new StudentPackTab(studentPackBlock, _group); _navigateService.AddToViewList(_studentGroupTitle, studentPackTab); _navigateService.OpenView(studentPackTab); }
private void CardTitle_OnClick(object sender, RoutedEventArgs e) { string packTitle = CardTitle.DataContext.ToString(); ProblemsPack pack = _group.ProblemsPacks.Find(p => p.Title == packTitle); var resultGridBlock = new ResultGridBlock(_group.Users, pack); _navigateService.AddToViewList(CardTitle.DataContext.ToString(), resultGridBlock); _navigateService.OpenView(resultGridBlock); }