Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
 private void ShowUserControl(object sender, RoutedEventArgs e)
 {
     _navigateService.OpenView(CurrentControl);
 }