Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string response = ApiRequests.PassingFinishPost(testID);

            if (Parser.ResultParse(response))
            {
                isDecrementing = false;
                passingUC.updateSlide(response);
            }
            else
            {
                MessageBox.Show("Не удалось завершить опрос ", "Ошибка", MessageBoxButtons.OK);
            }
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)  // prev
        {
            string response = ApiRequests.PassingPrevPut(testID);

            if (Parser.ResultParse(response))
            {
                isDecrementing = false;
                passingUC.updateSlide(response);
            }
            else
            {
                MessageBox.Show("Возможно тест уже удалён или неактивен", "Ошибка", MessageBoxButtons.OK);
            }
        }
Пример #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            string response = ApiRequests.PassingNextPost(testID, null);

            if (Parser.ResultParse(response))
            {
                passingUC.updateSlide(response);
            }
            else
            {
                MessageBox.Show("Ошибка начала прохождения. Возможно тест удалён или неактивен",
                                "Ошибка", MessageBoxButtons.OK);
            }
        }