Диплом: Автоматизация процесса контроля знаний учащихся ГОУ СОШ №17

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам
135
if (String::Format("{0}", Таблица->Rows[2]-
>ItemArray[НомерВопросаТБ]) == "") { return; }
else
{
radioButton1->Visible = true;
radioButton1->Text = String::Format("{0}", Таблица->Rows[2]-
>ItemArray[НомерВопросаТБ]);
if (String::Format("{0}", Таблица->Rows[3]-
>ItemArray[НомерВопросаТБ]) == "")
{
return;
}
else
{
radioButton2->Visible = true;
radioButton2->Text = String::Format("{0}", Таблица-
>Rows[3]->ItemArray[НомерВопросаТБ]);
if (String::Format("{0}", Таблица->Rows[4]-
>ItemArray[НомерВопросаТБ]) == "") { return; }
else
{
radioButton3->Visible = true;
radioButton3->Text = String::Format("{0}",
Таблица->Rows[4]->ItemArray[НомерВопросаТБ]);
if (String::Format("{0}", Таблица->Rows[5]-
>ItemArray[НомерВопросаТБ]) == "")
136
{
return;
}
else
{
radioButton4->Visible = true;
radioButton4->Text = String::Format("{0}",
Таблица->Rows[5]->ItemArray[НомерВопросаТБ]);
if (String::Format("{0}", Таблица->Rows[6]-
>ItemArray[НомерВопросаТБ]) == "") {
return;
}
else
{
radioButton5->Visible = true;
radioButton5->Text =
String::Format("{0}", Таблица->Rows[6]->ItemArray[НомерВопросаТБ]);
if (String::Format("{0}", Таблица-
>Rows[7]->ItemArray[НомерВопросаТБ]) == "") {
return;
}
else
{
radioButton6->Visible = true;
137
radioButton6->Text =
String::Format("{0}", Таблица->Rows[7]->ItemArray[НомерВопросаТБ]);
if (String::Format("{0}",
Таблица->Rows[8]->ItemArray[НомерВопросаТБ]) == "") {
return;
}
else
{
radioButton7->Visible =
true;
radioButton7->Text =
String::Format("{0}", Таблица->Rows[8]->ItemArray[НомерВопросаТБ]);
if (String::Format("{0}",
Таблица->Rows[9]->ItemArray[НомерВопросаТБ]) == "") {
return;
}
else
{
radioButton8-
>Visible = true;
radioButton8-
>Text = String::Format("{0}", Таблица->Rows[9]->ItemArray[НомерВопросаТБ]);
}
}
}
138
}
}
}
}
}
}
catch (Exception ^ Ситуация)
{
// Отчет о других ошибках:
MessageBox::Show(Ситуация->Message, "Ошибка",
MessageBoxButtons::OK, MessageBoxIcon::Exclamation);
}
}
private: System::Void listBox1_SelectedIndexChanged(System::Object^ sender,
System::EventArgs^ e) {
int ЛистБоксИндекс = listBox1->SelectedIndex;
//Заполняем лабел3 Вопросом из Таблицы:
label3->Text = String::Format("{0}", Таблица->Rows[0]-
>ItemArray[ЛистБоксИндекс]);
//Просто временный код
label4->Text = String::Format("{0}", (ЛистБоксИндекс + 1));
//изменяем название переменной номеравопроса
НомерВопроса = ЛистБоксИндекс+1;
139
НомерВопросаТБ = ЛистБоксИндекс;
//убираем видимость радиобатенов
radioButton1->Visible = false;
radioButton2->Visible = false;
radioButton3->Visible = false;
radioButton4->Visible = false;
radioButton5->Visible = false;
radioButton6->Visible = false;
radioButton7->Visible = false;
radioButton8->Visible = false;
//убираем активные флажки
radioButton1->Checked = false;
radioButton2->Checked = false;
radioButton3->Checked = false;
radioButton4->Checked = false;
radioButton5->Checked = false;
radioButton6->Checked = false;
radioButton7->Checked = false;
radioButton8->Checked = false;
button3->Enabled = false;
button4->Enabled = false;
//Выбор уже имеющегося ответа
String^ ОтветВТаблице = String::Format("{0}", dataGridView1[1,
ЛистБоксИндекс]->Value);
140
if (radioButton1->Name == "radioButton" + ОтветВТаблице)
{
radioButton1->Checked = true;
}
if (radioButton2->Name == "radioButton" + ОтветВТаблице)
{
radioButton2->Checked = true;
}
if (radioButton3->Name == "radioButton" + ОтветВТаблице)
{
radioButton3->Checked = true;
}
if (radioButton4->Name == "radioButton" + ОтветВТаблице)
{
radioButton4->Checked = true;
}
if (radioButton5->Name == "radioButton" + ОтветВТаблице)
{
radioButton5->Checked = true;
}
if (radioButton6->Name == "radioButton" + ОтветВТаблице)
{
radioButton6->Checked = true;
}
141
if (radioButton7->Name == "radioButton" + ОтветВТаблице)
{
radioButton7->Checked = true;
}
if (radioButton8->Name == "radioButton" + ОтветВТаблице)
{
radioButton8->Checked = true;
}
Порядок();
Смеситель();
if (String::Format("{0}", Таблица->Rows[2]->ItemArray[ЛистБоксИндекс])
== "") { return; }
else
{
radioButton1->Visible = true;
radioButton1->Text = String::Format("{0}", Таблица->Rows[2]-
>ItemArray[ЛистБоксИндекс]);
//2
if (String::Format("{0}", Таблица->Rows[3]-
>ItemArray[ЛистБоксИндекс]) == "")
{
return;
}
else
{
142
radioButton2->Visible = true;
radioButton2->Text = String::Format("{0}", Таблица->Rows[3]-
>ItemArray[ЛистБоксИндекс]);
//3
if (String::Format("{0}", Таблица->Rows[4]-
>ItemArray[ЛистБоксИндекс]) == "") { return; }
else
{
radioButton3->Visible = true;
radioButton3->Text = String::Format("{0}", Таблица-
>Rows[4]->ItemArray[ЛистБоксИндекс]);
//4
if (String::Format("{0}", Таблица->Rows[5]-
>ItemArray[ЛистБоксИндекс]) == "")
{
return;
}
else
{
radioButton4->Visible = true;
radioButton4->Text = String::Format("{0}",
Таблица->Rows[5]->ItemArray[ЛистБоксИндекс]);
//5
if (String::Format("{0}", Таблица->Rows[6]-
>ItemArray[ЛистБоксИндекс]) == "") { return; }
143
else
{
radioButton5->Visible = true;
radioButton5->Text = String::Format("{0}",
Таблица->Rows[6]->ItemArray[ЛистБоксИндекс]);
//6
if (String::Format("{0}", Таблица->Rows[7]-
>ItemArray[ЛистБоксИндекс]) == "") {
return;
}
else
{
radioButton6->Visible = true;
radioButton6->Text =
String::Format("{0}", Таблица->Rows[7]->ItemArray[ЛистБоксИндекс]);
//7
if (String::Format("{0}", Таблица-
>Rows[8]->ItemArray[ЛистБоксИндекс]) == "") {
return;
}
else
{
radioButton7->Visible = true;
radioButton7->Text =
String::Format("{0}", Таблица->Rows[8]->ItemArray[ЛистБоксИндекс]);
144
//8
if (String::Format("{0}",
Таблица->Rows[9]->ItemArray[ЛистБоксИндекс]) == "") {
return;
}
else
{
radioButton8->Visible =
true;
radioButton8->Text =
String::Format("{0}", Таблица->Rows[9]->ItemArray[ЛистБоксИндекс]);
}
}
}
}
}
}
}
}
}
public: System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e)
{
Секунды = Секунды - 1;
//минуты = Секунды / 60;

Смотрите также:

"Автоматизация обработки заявок ООО "Проектно-Строительная Компания"
"Автоматизация процесса аттестации персонала для ООО "Нэт Бай Нэт Холдинг"
"Анализ интернет-активности конкурентов ( на примере конкурентов "Газпром нефть")
"Бухгалтерский учёт и аудит расчётов с подотчётними лицами в организации на примере ООО "ЛОЦ 10""
«Психологическое сопровождение персонала в организации на примере ООО «Крокус»
Cовершенствование деловой оценки персонала в организации (на примере ООО "Даймонд кейтеринг развитие")
IPO - инструмент финансирования деятельности организации. На примере ПАО «Нефтяная компания «Лукойл»
PR как средство продвижения организации (на примере ПАО "Тамбовский завод "Комсомолец им. Н.С. Артемова")
PR-коммуникации в сфере общественного питания (на примере кафе-кондитерской «Cream Cheese»)
SMM как средство повышения эффективности работы учреждений социокультурной сферы (на примере Малого театра)