Мультиагентная обучающая система по медицинской диагностике

textBox7.Font = iFont;

//////////////////////\

//Вкладка ВЫБОР ТЕМЫ// \

////////////////////// \

label10.Font = new Font(Font.Name, (float)(iWidth * 3.8 / 100), System.Drawing.FontStyle.Italic, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);

label10.Location = new Point((iWidth - label10.Width) / 2, (iHeight - label10.Height) / 2);

////////////////////\

//Вкладка

ОБУЧЕНИЕ// \

//////////////////// \

label11.Font = new Font(Font.Name, (float)(iWidth * 3.8 / 100), System.Drawing.FontStyle.Italic, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);

label11.Location = new Point((iWidth - label11.Width) / 2, (iHeight - label11.Height) / 2);

/////////////////////\

//Вкладка РЕЗУЛЬТАТ// \

///////////////////// \

label12.Font = new Font(Font.Name, (float)(iWidth * 3.8 / 100), System.Drawing.FontStyle.Italic, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);

label12.Location = new Point((iWidth - label11.Width) / 2, (iHeight - label11.Height) / 2);

int ResultVerticalInterval;

int ResultHorizontalInterval = (int)(iWidth * 3.34 / 100);

Font resultFont = new Font(Font.Name, (float)(iWidth / 42), System.Drawing.FontStyle.Italic, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);

label22.Font = resultFont;

ResultVerticalInterval = (iHeight - (label22.Height * 9)) / 10 + label22.Height;

label22.Location = new Point(iWidth * 1 / 100, iHeight - ResultVerticalInterval);

label30.Font = resultFont;

label30.Location = new Point(label22.Location.X + label22.Width + ResultHorizontalInterval, label22.Location.Y);

label31.Font = resultFont;

label31.Location = new Point(iWidth * 1 / 100, label22.Location.Y - ResultVerticalInterval);

label32.Font = resultFont;

label32.Location = new Point(label31.Location.X + label31.Width + ResultHorizontalInterval, label31.Location.Y);

label29.Font = resultFont;

label29.Location = new Point(label32.Location.X, label32.Location.Y - ResultVerticalInterval);

label21.Font = resultFont;

label21.Location = new Point(label29.Location.X - ResultHorizontalInterval - label21.Width, label29.Location.Y);

label28.Font = resultFont;

label28.Location = new Point(label32.Location.X, label29.Location.Y - ResultVerticalInterval);

label20.Font = resultFont;

label20.Location = new Point(label28.Location.X - ResultHorizontalInterval - label20.Width, label28.Location.Y);

label27.Font = resultFont;

label27.Location = new Point(label32.Location.X, label28.Location.Y - ResultVerticalInterval);

label19.Font = resultFont;

label19.Location = new Point(label27.Location.X - ResultHorizontalInterval - label19.Width, label27.Location.Y);

label26.Font = resultFont;

label26.Location = new Point(label32.Location.X, label27.Location.Y - ResultVerticalInterval);

label18.Font = resultFont;

label18.Location = new Point(label26.Location.X - ResultHorizontalInterval - label18.Width, label26.Location.Y);

label25.Font = resultFont;

label25.Location = new Point(label32.Location.X, label26.Location.Y - ResultVerticalInterval);

label17.Font = resultFont;

label17.Location = new Point(label25.Location.X - ResultHorizontalInterval - label17.Width, label25.Location.Y);

label24.Font = resultFont;

label24.Location = new Point(label32.Location.X, label25.Location.Y - ResultVerticalInterval);

label16.Font = resultFont;

label16.Location = new Point(label24.Location.X - ResultHorizontalInterval - label16.Width, label24.Location.Y);

label23.Font = resultFont;

label23.Location = new Point(label32.Location.X, label24.Location.Y - ResultVerticalInterval);

label15.Font = resultFont;

label15.Location = new Point(label23.Location.X - ResultHorizontalInterval - label15.Width, label23.Location.Y);

////////////////////\

//Вкладка ОБУЧЕНИЕ// \

//////////////////// \

label9.Location = new Point((iWidth - label9.Width) / 2, button8.Location.Y + button8.Height + (int)(iHeight*4.7/100));

listBox2.Location = new Point(listBox2.Location.X, label9.Location.Y + label9.Height);

listBox2.Size = new Size(listBox2.Size.Width, button10.Location.Y - listBox2.Location.Y);

label13.Location = new Point(listBox2.Location.X, button8.Location.Y);

vopros.Location = new Point(vopros.Location.X, label13.Location.Y + label13.Height + label13.Height/2);

vopros.Height = label13.Height * 2 + 5;

listBox3.Location = new Point(listBox3.Location.X, vopros.Location.Y + vopros.Height + label13.Height);

listBox3.Height = label13.Height * 5 + 5;

button9.Location = new Point(button9.Location.X, listBox3.Location.Y + listBox3.Height + label13.Height/2);

int ObuchenieVerticalInterval = (button10.Location.Y - (button9.Location.Y + button9.Height)) / 2;

label13.Location = new Point(label13.Location.X, label13.Location.Y + ObuchenieVerticalInterval);

vopros.Location = new Point(vopros.Location.X, vopros.Location.Y + ObuchenieVerticalInterval);

listBox3.Location = new Point(listBox3.Location.X, listBox3.Location.Y + ObuchenieVerticalInterval);

button9.Location = new Point(button9.Location.X, button9.Location.Y + ObuchenieVerticalInterval);

}

//КНОПКА АВТОРИЗАЦИИ ПРЕПОДАВАТЕЛЯ

private void button6_Click(object sender, EventArgs e)

{

label33.Visible = true;

label34.Visible = true;

textBox8.Visible = true;

textBox9.Visible = true;

button13.Visible = false;

/*

if (textBox8.Text == "Иванов" || textBox9.Text == "123")

{

autorizPrepod = true;

label33.Visible = false;

label34.Visible = false;

textBox8.Visible = false;

textBox9.Visible=false;

button6.Visible = false;

label14.Visible = true;

label14.Text = "Преподаватель:" + textBox8.Text;

label35.Visible = true;

}

*/

string l;

StreamReader fs1 = new StreamReader(new FileStream("UCHITEL.TXT", FileMode.Open), Encoding.GetEncoding(866));

while ((l = fs1.ReadLine()) != null)

{

if (l == textBox8.Text + ";" + textBox9.Text)

{

autorizPrepod = true;

label33.Visible = false;

label34.Visible = false;

textBox8.Visible = false;

textBox9.Visible = false;

button6.Visible = false;

label14.Visible = true;

label14.Text = "Преподаватель:" + textBox8.Text;

label35.Visible = true;

break;

}

}

fs1.Close();

}

private void tabPage1_Enter(object sender, EventArgs e)

{

resultPrepodu = false;

textBox8.Text = "";

textBox9.Text = "";

if (temaVybrana)

{

label35.Visible = false;

label36.Visible = true;

label37.Visible = true;

textBox10.Visible = true;

button12.Visible = true;

}

}

//Найти тесты студента

private void button12_Click(object sender, EventArgs e)

{

string l;

StreamWriter sw111 = new StreamWriter(new FileStream("ZACHTEMA.TXT", FileMode.Create), Encoding.GetEncoding(866));

Страница:  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15 
 16  17  18  19  20  21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40  41  42  43  44  45 
 46  47  48 


Другие рефераты на тему «Педагогика»:

Поиск рефератов

Последние рефераты раздела

Copyright © 2010-2024 - www.refsru.com - рефераты, курсовые и дипломные работы