Esempio n. 1
0
 public SelectAccessPage(CreateTestHandlerPage ownerPage)
 {
     InitializeComponent();
     OwnerPage      = ownerPage;
     this.Unloaded += SelectAccessPage_Unloaded;
     this.Loaded   += SelectAccessPage_Loaded;
 }
Esempio n. 2
0
        public InputTestNamePage(CreateTestHandlerPage ownerPage)
        {
            InitializeComponent();
            OwnerPage = ownerPage;

            this.Unloaded += InputTestNamePage_Unloaded;
            this.Loaded   += InputTestNamePage_Loaded;

            PreviewText previewText = new PreviewText(NameInputBox, "Тестирование");
        }
Esempio n. 3
0
        public QuestionPage(CreateTestHandlerPage ownerPage, int number)
        {
            InitializeComponent();
            OwnerPage = ownerPage;

            Templates = new List <Page>()
            {
                new Template1(this)
            };

            this.Unloaded  += QuestionPage_Unloaded;
            this.Loaded    += QuestionPage_Loaded;
            TemplateIsSet   = false;
            PageIsValidated = false;
            PageNavigator   = new PageNavigator(QuestionPageFrame);

            UpdateQuestionIndex(number);

            OwnerPage.CompliteButton.Visibility = Visibility.Collapsed;
        }
Esempio n. 4
0
        public SelectEvaluationPage(CreateTestHandlerPage ownerPage)
        {
            InitializeComponent();
            OwnerPage      = ownerPage;
            this.Unloaded += SelectEvaluationPage_Unloaded;
            this.Loaded   += SelectEvaluationPage_Loaded;

            PercentList.SizeChanged    += PercentList_SizeChanged;
            PointsList.SizeChanged     += PointsList_SizeChanged;
            MaxPointsInput.TextChanged += MaxPointsInput_TextChanged;

            NavigationWorker navigationWorker = new NavigationWorker(EvaluationSelect);

            EvaluationSelect percent = new EvaluationSelect("Проценты");

            navigationWorker.AddButton(percent, SelectPercent);

            EvaluationSelect points = new EvaluationSelect("Баллы");

            navigationWorker.AddButton(points, SelectPoints);

            navigationWorker.NavigateTo(0);
            OwnerPage.NextPageButton.IsEnabled = false;
        }