Пример #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);
        }
Пример #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);
        }
Пример #3
0
 private void ShowUserControl(object sender, RoutedEventArgs e)
 {
     _navigateService.OpenView(CurrentControl);
 }