private void AddProblemsClick(object sender, RoutedEventArgs e)
        {
            var packWindow = new ProblemPackWindow(_pack, _group);

            packWindow.Show();

            _updateParentView();
        }
        public ProblemTaskPreview(ProblemPackWindow problemPackWindow, string number)
        {
            InitializeComponent();

            NumberTask.Content = number;
            _problemPackWindow = problemPackWindow;
            _problemPackWindow.PanelViewer.ScrollToEnd();
        }
        public ProblemTaskPreview(ProblemPackWindow problemPackWindow, Problem problem, string number)
        {
            InitializeComponent();

            NumberTask.Content = number;

            TaskNumberInput.Text      = problem.Title;
            TaskNumberInput.IsEnabled = false;

            DomainBox.Text      = problem.Type.ToUiString();
            DomainBox.IsEnabled = false;

            _problemPackWindow = problemPackWindow;
            _problemPackWindow.PanelViewer.ScrollToEnd();
        }