Автор Анна Евкова
Преподаватель который помогает студентам и школьникам в учёбе.

«Работа с файлами в MS Visual C++»

Содержание:

Введение

Представленная курсовая работа посвящена теме «Работа с файлами в MS Visual C++».

С момента появления первых больших ЭВМ и по сей день, интенсивно изучаются проблемы разработки и проектирования системного и прикладного программного обеспечения. В настоящее время развиваются новые направления исследований в данной области, в частности, системные исследования в области компьютерных технологий и систем, методологии анализа и синтеза новых информационных решений.

В C++ предусмотрен классический способ работы с файлами, основанный на библиотеке stdio.h и доступе к данным через структуру FILE. Существует также альтернативный механизм работы с файлами в языке C++ на основе потоков и библиотек <fstream>, <ifstream>, <ofstream>. Однако в настоящее время является актуальным использование возможностей библиотеки компонентов Visual Studio для работы с текстовыми файлами, именно они и реализованы в курсовой работе.

Работа с файлами была реализована в ходе создания электронного учебного пособия по курсу JavaScript, что также является актуальной задачей.

В автоматизации обучения дисциплине «JavaScript» наиболее существенны следующие возможности:

- «одноразовый» ввод данных и многоцелевое их использование;

- многоаспектный поиск данных по различным признакам и их
сочетаниям без формирования дополнительных картотек и
указателей;

- сокращение затрат на обработку входных потоков документов.

На практике это означает освобождение преподавателей от ряда рутинных работ по подготовке лекций, вопросов, отчетной документации.

Цель курсовой работы – изучение основных аспектов организации работы с файлами в MS Visual C++ и реализация электронного учебного пособия по курсу JavaScript.

Для достижения цели поставлены следующие задачи:

- изучить теоретические аспекты работы с файлами в MS Visual C++;

-разработать концепцию ЭУ по курсу «JavaScript»;

- разработать программное обеспечение электронного учебного пособия.

В ходе написания курсовой работы были использованы труды следующих специалистов по программированию на языке С++: Баженова И. Ю., Николенко Д. В., Павловская Т.А., Пахомов Б. C., Холзнер, С. И др.

1 Теоретические основы организации работы с файлами в MS Visual C++

1.1 Организация работы с файлами средствами C++

Файлом называют способ хранения информации на физическом устройстве. Файл — это понятие, которое применимо ко всему — от файла на диске до терминала.

Файлы позволяют пользователю считывать большие объемы данных непосредственно с диска, не вводя их с клавиатуры. Существуют два основных типа файлов: текстовые и двоичные.

Текстовыми называются файлы, состоящие из любых символов. Они организуются по строкам, каждая из которых заканчивается символом «конца строки». Конец самого файла обозначается символом «конца файла». При записи информации в текстовый файл, просмотреть который можно с помощью любого текстового редактора, все данные преобразуются к символьному типу и хранятся в символьном виде.

В двоичных файлах информация считывается и записывается в виде блоков определенного размера, в которых могут храниться данные любого вида и структуры.

Для работы с файлами используются специальные типы данных, называемые потоками. Поток ifstream служит для работы с файлами в режиме чтения, а ofstream в режиме записи. Для работы с файлами в режиме как записи, так и чтения служит поток fstream.

В программах на C++ при работе с текстовыми файлами необходимо подключать библиотеки iostream иfstream.

Для того чтобы записывать данные в текстовый файл, необходимо [6]:

  1. описать переменную типа ofstream.
  2. открыть файл с помощью функции open.
  3. вывести информацию в файл.
  4. обязательно закрыть файл.

Для считывания данных из текстового файла, необходимо [11]:

  1. описать переменную типа ifstream.
  2. открыть файл с помощью функции open.
  3. считать информацию из файла, при считывании каждой порции данных необходимо проверять, достигнут ли конец файла.
  4. закрыть файл.

Запись информации в текстовый файл

Как было сказано ранее, для того чтобы начать работать с текстовым файлом, необходимо описать переменную типа ofstream. Например, так:

ofstream F;

Будет создана переменная F для записи информации в файл. На следующим этапе файл необходимо открыть для записи. В общем случае оператор открытия потока будет иметь вид:

F.open(«file»mode);

Здесь F — переменная, описанная как ofstreamfile — полное имя файла на диске, mode — режим работы с открываемым файлом. Обратите внимание на то, что при указании полного имени файла нужно ставить двойной слеш. Для обращения, например, к файлу accounts.txt, находящемуся в папке sites на диске D, в программе необходимо указать: D:\\sites\\accounts.txt.

Файл может быть открыт в одном из следующих режимов:

  • ios::in — открыть файл в режиме чтения данных; режим является режимом по умолчанию для потоков ifstream;
  • ios::out — открыть файл в режиме записи данных (при этом информация о существующем файле уничтожается); режим является режимом по умолчанию для потоков ofstream;
  • ios::app — открыть файл в режиме записи данных в конец файла;
  • ios::ate — передвинуться в конец уже открытого файла;
  • ios::trunc — очистить файл, это же происходит в режиме ios::out;
  • ios::nocreate — не выполнять операцию открытия файла, если он не существует;
  • ios::noreplace — не открывать существующий файл.

Параметр mode может отсутствовать, в этом случае файл открывается в режиме по умолчанию для данного потока.

После удачного открытия файла (в любом режиме) в переменной F будет храниться true, в противном случае false. Это позволит проверить корректность операции открытия файла.

После открытия файла в режиме записи будет создан пустой файл, в который можно будет записывать информацию.

После открытия файла в режиме записи, в него можно писать точно так же, как и на экран, только вместо стандартного устройства вывода cout необходимо указать имя открытого файла.

Например, для записи в поток переменной a, оператор вывода будет иметь вид [8]:

F<<a;

Для последовательного вывода в поток G переменных bcd оператор вывода станет таким:

G<<b<<c<<d;

Закрытие потока осуществляется с помощью оператора:

F.close();

Чтение информации из текстового файла

Для того чтобы прочитать информацию из текстового файла, необходимо описать переменную типа ifstream. После этого нужно открыть файл для чтения с помощью оператора open.

После открытия файла в режиме чтения из него можно считывать информацию точно так же, как и с клавиатуры, только вместо cin нужно указать имя потока, из которого будет происходить чтение данных.

Например, для чтения данных из потока F в переменную a, оператор ввода будет выглядеть так:

F>>a;

Два числа в текстовом редакторе считаются разделенными, если между ними есть хотя бы один из символов: пробел, табуляция, символ конца строки. Хорошо, когда программисту заранее известно, сколько и какие значения хранятся в текстовом файле. Однако часто известен лишь тип значений, хранящихся в файле, при этом их количество может быть различным. Для решения данной проблемы необходимо считывать значения из файла поочередно, а перед каждым считыванием проверять, достигнут ли конец файла. А поможет сделать это функция F.eof(). Здесь — имя потока функция возвращает логическое значение: true или false, в зависимости от того достигнут ли конец файла.

1.2 Возможности компонента RichTextBox по работе с файлами

В разрабатываемом приложении в качестве компонента, в котором будут отображаться все учебные материалы, был выбран компонент RichTextBox.

Данный элемент управления дает возможность пользователю вводить и обрабатывать большие объемы информации (более 64 килобайт). Кроме того, RichTextBox позволяет редактировать цвет текста, шрифт, добавлять изображения. RichTextBox включает все возможности текстового редактора Microsoft Word [2].

Вводить текст в RichTextBox можно с помощью свойства Text данного элемента, которое предоставляет окно, в которое осуществляется ввод.

RichTextBox  предоставляет методы, которые предоставляют функциональные возможности для открытия и сохранения файлов [10]. 

В таблице (таб. 1) ниже приведены некоторые свойства доступные при использовании RichTextBox.

Таблица 1

Свойства компонента RichTextBox

BackColor

Возвращает или задает цвет фона элемента управления.

BorderStyle

Получает или задает тип границы элемента управления "Текстовое поле".

Font

Возвращает или задает шрифт текста, отображаемого элементом управления.

ForeColor

Возвращает или задает цвет элемента управления.

Lines

Получает или задает строки текста в элементе управления "Текстовое поле".

ReadOnly

Получает или задает значение, указывающее, является ли текст в текстовом поле доступным только для чтения.

ScrollBars

Получает или задает тип полос прокрутки, отображающихся в элементе управления RichTextBox.

SelectedText

Получает или задает выделенный в элементе управления RichTextBoxтекст.

Size

Возвращает или задает высоту и ширину элемента управления.

Tag

Возвращает или задает объект, содержащий данные об элементе управления.

Text

Получает или задает текущий текст в поле форматированного текста.

Visible

Возвращает или задает значение, указывающее, отображаются ли элемент управления и все его дочерние элементы управления.

WordWrap

Показывает, переносятся ли автоматически в начало следующей строки слова текста по достижении границы многострочного текстового поля.

В таблице 2 представлены Методы компонента RichTextBox

Таблица 2

Методы компонента RichTextBox

Clear()

Удаляет весь текст из элемента управления "Текстовое поле".

Copy()

Копирует текущий выбор из текстового поля в буфер обмена.

Cut()

Перемещает текущий выбор из текстового поля в буфер обмена.

DeselectAll()

Указывает, что значение свойства SelectionLength равно нулю для отмены выделения символов в элементе управления.

Find(Char[])

Осуществляет поиск первого экземпляра символа из списка символов по тексту элемента управления RichTextBox.

LoadFile(Stream, RichTextBoxStreamType)

Загружает в элемент управления RichTextBox содержимое существующего потока данных.

LoadFile(String)

Загружает файл в формате RTF или стандартный текстовый файл в кодировке ASCII в элемент управления RichTextBox.

LoadFile(String, RichTextBoxStreamType)

Загружает в элемент управления RichTextBox определенный тип файла.

Paste()

Заменяет текущее выделение в текстовом поле содержимым буфера обмена.

(Inherited from TextBoxBase)

SaveFile(Stream, RichTextBoxStreamType)

Сохраняет содержимое элемента управления RichTextBox в открытый поток данных.

SaveFile(String)

Сохраняет содержимое элемента управления RichTextBox в RTF-файл.

SaveFile(String, RichTextBoxStreamType)

Сохраняет содержимое элемента управления RichTextBox в файл определенного типа.

Select()

Активирует элемент управления.

Таким образом, в C++ отсутствуют операторы для работы с файлами. Все необходимые действия выполняются с помощью функций, включенных в стандартную библиотеку. Они позволяют работать с различными устройствами, такими, как диски, принтер, коммуникационные каналы и т.д. Эти устройства сильно отличаются друг от друга. Однако файловая система преобразует их в единое абстрактное логическое устройство, называемое потоком.

В разрабтываемом приложении будет использован компонент RichTextBox – расширенное поле ввода, который предоставляет возможность пользователю вводить и обрабатыать большие объемы информации (более 64 кБт). Кроме того, RichTextBox позволяет редактировать цвет текста, шрифт, добавлять изображения. 

RichTextBox включает     все возможности текстового редактора Microsoft Word, в том числе, возможность работать с текстовыми файлами.

2 Разработка электронного учебника по курсу JavaScript

2.1 Логическая структура приложения

Структура электронного учебника дисциплины должна состоять из следующих обязательных компонентов:

1. Конспекты лекций. С помощью этого элемента курса можно реализовать процесс программированного обучения. Учебный материал можно выдавать по частям, в конце каждой части задавать вопросы и, в зависимости от ответов, направлять процесс обучения по той или иной ветви изучения материала.

2. Тестовые задания. Тестовые задания являются основным средством проверки знаний студентов, они позволяют с минимальными затратами времени преподавателя объективно оценить знания большого количества студентов. В системе используются различные типы тестовых вопросов.

3. Указания к выполнению практических заданий.

Пользовательский интерфейс имеет иерархическую структуру: на первом уровне располагается главное меню, на втором – выпадающее меню, на третьем – экраны для работы с приложением.

Главное меню обеспечивает выбор групп функций:

- просмотр теоретического материала;

- проверка знаний по, а именно –тестирование;

- просмотр заданий для практическихработ.

В качестве метода разработки программного обеспечения был выбран метод нисходящего программирования, который подразумевает первоначальное создание главного меню, а затем – программных модулей, выполняющих отдельные функции из этого меню.

Структура приложения приведена на рисунке 1.

Теория

Практика

Тесты

Электронный учебник

Изучение теории

Выполнение практических работ

Прохождение

теста

Рис. 1 Структура приложения

2.2 Алгоритм решения задачи

Алгоритм работы программы связан с выбором пользователем раздела ЭУ, выбором параметров тестирования, и с ответами пользователя на вопросы. Приблизительный алгоритм работы с программой представлен на рисунке 2. Алгоритм тестирования представлен на рисунке 3.

Теория

Тест

Выход

Практика

Начало

Конец

Вывод меню

Выбор

пункта меню

Выбор темы

Вывод лекции

Тест

Вывод результата

Выбор темы

Вывод указаний

Рис. 2 Блок–схема алгоритма программы

Начало

Ввод n

Oc:=0

I=1; n; 1

Вывод Oc/n*100

Вывод вопроса

Ввод ответа

Конец

Ответ правильный

НЕТ

ДА

oc:=oc+1

Рис. 3 Блок–схема алгоритма тестирования

2.3 Проектирование интерфейса

При создании нового приложения WindowsForms с помощью Visual С++, решение приложения Windows появляется в окне Обозревателя решений (рисунок 4).

Рис. 4 Обозреватель решений приложения

Основная форма приложения представлена на Рисунке 5.

При разработке интерфейса электронного учебника по курсу «JavaScript» автор руководствовался принципом простоты и удобства использования программы.

На форме размещены компоненты: Меню программы, ряд кнопок, которые образуют оглавление учебника и используются для перехода по его разделам.

В программе задействован ряд окон. Функции первого окна (рисунок 6): просмотр лекционного материала.

Рис. 5 Основная форма приложения

Рис. 6 Форма просмотра лекционного материала

На форме размещены компоненты: Меню программы, текстовая область – в ней будет отображаться теоретический материал.

В меню Теория пользователь может выбрать тему теоретического курса для изучения. Меню «Тесты» содержит команды для выбора теста, меню «Практика» позволяет перейти к выполнению практических работ, меню «О программе» выводит диалоговое окно с информацией о программе, Меню «Выход» – используется для завершения работы с приложением.

Вторая форма – тестовая. Она необходима для реализации функции тестирования студентов (Рисунок 7).

Рис. 7 Форма тестирования студентов

На форме размещены компоненты: Меню программы, текстовая область – в ней будет отображаться вопрос при тестировании. Для выбора варианта ответа использовался компонент Radiobutton.

При выборе пункта меню Тесты – Тест № 1 пользователь начинает отвечать на предлагаемые вопросы.

Вопросы программа выбирает случайным образом из файла вопросов.

В конце теста выдается число правильных ответов.

Третья форма нужна для практических работ (Рисунок 8). Студент прошедший лекционный материал смело может приступать к выполнению практических заданий.

Рис. 8 Форма просмотра методических указаний к практическим работам

На Рисунке 9 представлена форма окна «О программе»

Рис. 9 Форма окна «О программе»

2.4 Разработка программного кода

Процесс написания программного кода начинается с написания процедур для пунктов меню. Рассмотрим пункты меню «Теория».

Лекционный материал хранится в текстовых файлах. При выборе соответствующего пункта меню происходит открытие файла и вывод его содержимого в компоненте RichEdit.

this–>richTextBox1–>LoadFile(L"Data/Lection7.rtf");

Для написания процедуры, которая будет выполняться при выборе пункта меню следует дважды щелкнуть по этому пункту в редакторе меню и в появившемся окне редактора исходного кода набрать текст процедуры (рисунок 10), при этом шапка процедуры генерируется системой автоматически.

Рис. 10 Написание программного кода, соответствующего выбору пункту меню «Теория/Лекция по JavaScript№ 1».

Аналогично производится обработка событий выбора дргих пунктов меню. Вывод методических указаний к практическим работам осуществляется процедурой вида:

private: System::VoidлабораторнаяРабота7ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this–>button2–>Visible=true;

this–>button3–>Visible=true;

this–>button2–>Enabled=true;

this–>button3–>Enabled=true;

num=16;

this–>richTextBox1–>Visible=true;

this–>richTextBox2–>Visible=false;

this–>button1–>Visible=false;

this–>radioButton1–>Visible=false;

this–>radioButton2–>Visible=false;

this–>radioButton3–>Visible=false;

this–>radioButton4–>Visible=false;

this–>label1–>Visible=false;

this–>richTextBox1–>LoadFile(L"Labs/Lr7.rtf");

}

При выборе пункта меню тестирование производится открытие файла с тестовыми вопросами, случайный выбор вопроса из списка при помощи генератора случайных чисел и отображение вопроса и вариантов ответов в компонентах RichEdit и radioButton.

i=0;

srand(time(NULL));

m=1+rand()%30;

n=m–1;

this–>richTextBox2–>Text=this–>richTextBox1–>Lines[6*n];

this–>radioButton1–>Text=this–>richTextBox1–>Lines[6*n+1];

this–>radioButton2–>Text=this–>richTextBox1–>Lines[6*n+2];

this–>radioButton3–>Text=this–>richTextBox1–>Lines[6*n+3];

this–>radioButton4–>Text=this–>richTextBox1–>Lines[6*n+4];

o=Convert::ToInt32(this–>richTextBox1–>Lines[6*n+5]);

При нажатии кнопки «Далее» происходит определение правильности ответа и подсчет (если надо) количества правильных ответов.

if ((radioButton1–>Checked )&&(o==1)) k=k+1;

if ((radioButton2–>Checked )&&(o==2)) k=k+1;

if ((radioButton3–>Checked )&&(o==3)) k=k+1;

if ((radioButton4–>Checked )&&(o==4)) k=k+1;

radioButton1–>Checked = false;

radioButton2–>Checked = false;

radioButton3–>Checked = false;

radioButton4–>Checked = false;

Если пользователь ответил на 10 вопросов, тестирование останавливается, и выводится результат.

if (i==9)

{

this–>richTextBox2–>Visible=false;

this–>radioButton1–>Visible=false;

this–>radioButton2–>Visible=false;

this–>radioButton3–>Visible=false;

this–>radioButton4–>Visible=false;

this–>button1–>Enabled=false;

this–>label1–>Text="Числоправильныхответов – "+Convert::ToString(k)+" из 10";

this–>label1–>Visible=true;

Программный код представлен в приложении.

2.5 Тестирование программного продукта

Основное окно приложение представлен на рисунке (рисунок 11).

Рис. 11 Основное окно приложения

Для изучения теоретического материала следует выбрать пункт меню Теория и соответствующую тему (рисунок 12).

Рис. 12 Просмотр теоретического материала

Для прохождения теста следует выбрать команду Тесты – номер соответствующего теста.

После этого вы перейдете в окно тестирования (рис. 13).

Рис. 13 Окно тестирования

Рис. 14 Окно тестирования

По окончании тестирования программа выведет результат (рисунок 15).

Рис. 15 Вывод результатов

Для просмотра методических указаний к практическим работам следует выбрать пункт меню «Практика» и соответствующую работу (рисунок 16).

Рис. 16 Выполнение практической работы

При выборе пункта меню «О программе» появится окно с информацией о разработчике (см. рисунок 17).

Рис.17 Вывод окна «О программе»

Как показали результаты проведенного тестирования, приложение работоспособно, ошибки обнаружены не были.

ЗАКЛЮЧЕНИЕ

Таким образом, в языке C++ отсутствуют операторы для работы с файлами. Все необходимые действия выполняются с помощью функций, включенных в стандартную библиотеку. Они позволяют работать с различными устройствами, такими, как диски, принтер, коммуникационные каналы и т.д. Эти устройства сильно отличаются друг от друга. Однако файловая система преобразует их в единое абстрактное логическое устройство, называемое потоком.

В среде Visual Studio C++ существует компонент RichTextBox – расширенное поле ввода – предоставляет возможность пользователю вводить и обрабатыать большие объемы информации (более 64 кБт). Кроме того, RichTextBox позволяет редактировать цвет текста, шрифт, добавлять изображения. RichTextBox включает     все возможности текстового редактора Microsoft Word.

Таким образом, результатом выполнения курсовой работы является электронное учебное пособие по курсу «JavaScript», которое содержит лекционную часть, систему проверки остаточных знаний, реализованную в виде тестирования, а также комплекс методических указаний к выполнению практических работ по дисциплине.

При помощи такого электронного комплекса обучающийся может изучать учебный материал в соответствии со своими возможностями. Кроме того, данный комплекс позволит совмещать производственную деятельность и обучение тем, кто не может ее прерывать. Также использование данного комплекса позволит облегчить для преподавателя процесс проверки остаточных знаний.

СПИСОК ЛИТЕРАТУРЫ

  1. Айвор Хортон Microsoft Visual C++: базовый курс – Beginning Visual C++ / Хорторн Айвор. – М.: «Диалектика», 2007.
  2. Баженова И. Ю. С++ && Visual Studio NET. Самоучитель программиста / И.Ю. Баженова. – М.: КУДИЦ–ОБРАЗ, 2003.
  3. Благодатских В.А. Стандартизация разработки программных средств.: Учеб. пос. для вузов /В.А. Благодатских, В.А. Володин, К.Ф. Поскакалов; Под ред. О.С. Разумова. – М.: Финансы и статистика, 2005.
  4. Вирт Н. Алгоритмы и структуры данных / Н. Вирт / Пер. с англ. М.: Мир, 2004.
  5. Мауэргауз Ю.Е. Информационные системы промышленного менеджмента / Ю.Е. Мауэргауз. – М.: ИНФРА–М, 2009.
  6. Николенко Д. В. Самоучитель по Visual C++ / Д.В. Николенко. – СПб: Наука и техника, 2001.
  7. Павловская Т.А. С/С++. Программирование на языке высокого уровня / Т.А. Павловская. – СПб.: Питер, 2003.
  8. Пахомов Б. C/C++ и ms visual c++ 2012 для начинающих / Б. Пахомов. – БВХ–Петербург, 2013.
  9. Перегудов Ф.И. Основы системного проектирования АСУ организационными комплексами / Ф.И. Перегудов. – Томск: Изд–во Томск. ун–та, 2004.
  10. Савич У. С++ во всей полноте / У. Савич. – СПб: Питер, 2005.
  11. Холзнер С. Visual C++: Учебный курс / С. Холзнер. – СПб: Питер, 2000.
  12. Шиманович Е.Л. C/C++ в примерах и задачах / Е.Л. Шиманович. – Минск: Новое знание, 2004,
  13. Шмидский Я. К. Программирование на языке С/С++. Самоучитель / Я.К. Шмидский. – М.: Вильямс, 2004.

Приложение

Программный код

#pragma once

#include <stdlib.h>

#include <time.h>

#include "About.h"

namespace UMK {

using namespace System;

using namespace System::ComponentModel;

using namespace System::Collections;

using namespace System::Windows::Forms;

using namespace System::Data;

using namespace System::Drawing;

</summary>

public ref class Form1 : public System::Windows::Forms::Form

{

public:

int o,i,k, num;

private: System::Windows::Forms::ToolStripMenuItem^ оПрограммеToolStripMenuItem;

private: System::Windows::Forms::RichTextBox^ richTextBox1;

private: System::Windows::Forms::ToolStripMenuItem^ тест2ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ тест3ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem1;

private: System::Windows::Forms::RichTextBox^ richTextBox2;

private: System::Windows::Forms::Button^ button1;

private: System::Windows::Forms::RadioButton^ radioButton4;

private: System::Windows::Forms::RadioButton^ radioButton3;

private: System::Windows::Forms::RadioButton^ radioButton2;

private: System::Windows::Forms::RadioButton^ radioButton1;

private: System::Windows::Forms::Label^ label1;

private: System::Windows::Forms::Button^ button2;

private: System::Windows::Forms::Button^ button3;

private: System::Windows::Forms::Button^ button4;

private: System::Windows::Forms::Button^ button5;

private: System::Windows::Forms::Button^ button6;

private: System::Windows::Forms::Button^ button7;

private: System::Windows::Forms::Button^ button8;

private: System::Windows::Forms::Button^ button9;

private: System::Windows::Forms::Button^ button10;

private: System::Windows::Forms::GroupBox^ groupBox1;

private: System::Windows::Forms::Button^ button19;

private: System::Windows::Forms::Button^ button18;

private: System::Windows::Forms::Button^ button17;

private: System::Windows::Forms::Button^ button16;

private: System::Windows::Forms::Button^ button25;

private: System::Windows::Forms::Button^ button15;

private: System::Windows::Forms::Button^ button24;

private: System::Windows::Forms::Button^ button14;

private: System::Windows::Forms::Button^ button23;

private: System::Windows::Forms::Button^ button13;

private: System::Windows::Forms::Button^ button22;

private: System::Windows::Forms::Button^ button12;

private: System::Windows::Forms::Button^ button21;

private: System::Windows::Forms::Button^ button11;

private: System::Windows::Forms::Button^ button20;

private: System::Windows::Forms::GroupBox^ groupBox2;

private: System::Windows::Forms::Button^ button28;

private: System::Windows::Forms::Button^ button27;

private: System::Windows::Forms::Button^ button26;

private: System::Windows::Forms::GroupBox^ groupBox3;

public:

private: System::Windows::Forms::ToolStripMenuItem^ выходToolStripMenuItem;

public:

Form1(void)

{

InitializeComponent();

}

protected:

~Form1()

{

if (components)

{

delete components;

}

}

private: System::Windows::Forms::MenuStrip^ menuStrip1;

protected:

private: System::Windows::Forms::ToolStripMenuItem^ теорияToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ основыЯзыкаHtmlToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ структураHtnlToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ контрольToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лекToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лекцияПоJavaScript2ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лекцияПоJavaScript3ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лекцияПоJavaScript4ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лекцияПоJavaScript5ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лекцияПоJavaScript6ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лекцияПоJavaScript7ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторныеToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота1ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота2ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота3ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота4ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота5ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота6ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота7ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота8ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота9ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота10ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота11ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота12ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота13ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота14ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ лабораторнаяРабота15ToolStripMenuItem;

private: System::Windows::Forms::ToolStripMenuItem^ тест1ToolStripMenuItem;

private:

System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code

void InitializeComponent(void)

{

this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());

this->toolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->теорияToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->основыЯзыкаHtmlToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->структураHtnlToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лекToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лекцияПоJavaScript2ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лекцияПоJavaScript3ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лекцияПоJavaScript4ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лекцияПоJavaScript5ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лекцияПоJavaScript6ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лекцияПоJavaScript7ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторныеToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота1ToolStripMenuItem=(gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота2ToolStripMenuItem=(gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота3ToolStripMenuItem= (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота4ToolStripMenuItem= (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота5ToolStripMenuItem= (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота6ToolStripMenuItem= (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота7ToolStripMenuItem= (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота8ToolStripMenuItem= (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота9ToolStripMenuItem= (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота10ToolStripMenuIte = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота11ToolStripMenuItem=(gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота12ToolStripMenuItem=(gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота13ToolStripMenuItem=(gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота14ToolStripMenuItem=(gcnew System::Windows::Forms::ToolStripMenuItem());

this->лабораторнаяРабота15ToolStripMenuItem=(gcnew System::Windows::Forms::ToolStripMenuItem());

this->контрольToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->тест1ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->тест2ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->тест3ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->оПрограммеToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->выходToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());

this->richTextBox1 = (gcnew System::Windows::Forms::RichTextBox());

this->richTextBox2 = (gcnew System::Windows::Forms::RichTextBox());

this->button1 = (gcnew System::Windows::Forms::Button());

this->radioButton4 = (gcnew System::Windows::Forms::RadioButton());

this->radioButton3 = (gcnew System::Windows::Forms::RadioButton());

this->radioButton2 = (gcnew System::Windows::Forms::RadioButton());

this->radioButton1 = (gcnew System::Windows::Forms::RadioButton());

this->label1 = (gcnew System::Windows::Forms::Label());

this->button2 = (gcnew System::Windows::Forms::Button());

this->button3 = (gcnew System::Windows::Forms::Button());

this->button4 = (gcnew System::Windows::Forms::Button());

this->button5 = (gcnew System::Windows::Forms::Button());

this->button6 = (gcnew System::Windows::Forms::Button());

this->button7 = (gcnew System::Windows::Forms::Button());

this->button8 = (gcnew System::Windows::Forms::Button());

this->button9 = (gcnew System::Windows::Forms::Button());

this->button10 = (gcnew System::Windows::Forms::Button());

this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());

this->button19 = (gcnew System::Windows::Forms::Button());

this->button18 = (gcnew System::Windows::Forms::Button());

this->button17 = (gcnew System::Windows::Forms::Button());

this->button16 = (gcnew System::Windows::Forms::Button());

this->button25 = (gcnew System::Windows::Forms::Button());

this->button15 = (gcnew System::Windows::Forms::Button());

this->button24 = (gcnew System::Windows::Forms::Button());

this->button14 = (gcnew System::Windows::Forms::Button());

this->button23 = (gcnew System::Windows::Forms::Button());

this->button13 = (gcnew System::Windows::Forms::Button());

this->button22 = (gcnew System::Windows::Forms::Button());

this->button12 = (gcnew System::Windows::Forms::Button());

this->button21 = (gcnew System::Windows::Forms::Button());

this->button11 = (gcnew System::Windows::Forms::Button());

this->button20 = (gcnew System::Windows::Forms::Button());

this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());

this->button28 = (gcnew System::Windows::Forms::Button());

this->button27 = (gcnew System::Windows::Forms::Button());

this->button26 = (gcnew System::Windows::Forms::Button());

this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());

this->menuStrip1->SuspendLayout();

this->groupBox1->SuspendLayout();

this->groupBox2->SuspendLayout();

this->groupBox3->SuspendLayout();

this->SuspendLayout();

this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(6) {this->toolStripMenuItem1,

this->теорияToolStripMenuItem, this->лабораторныеToolStripMenuItem, this->контрольToolStripMenuItem, this->оПрограммеToolStripMenuItem,

this->выходToolStripMenuItem});

this->menuStrip1->Location = System::Drawing::Point(0, 0);

this->menuStrip1->Name = L"menuStrip1";

this->menuStrip1->Size = System::Drawing::Size(775, 24);

this->menuStrip1->TabIndex = 0;

this->menuStrip1->Text = L"menuStrip1";

this->toolStripMenuItem1->Name = L"toolStripMenuItem1";

this->toolStripMenuItem1->Size = System::Drawing::Size(80, 20);

this->toolStripMenuItem1->Text = L"Оглавление";

this->toolStripMenuItem1->Click += gcnew System::EventHandler(this, &Form1::toolStripMenuItem1_Click);

this->теорияToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(9) {this->основыЯзыкаHtmlToolStripMenuItem,

this->структураHtnlToolStripMenuItem, this->лекToolStripMenuItem, this->лекцияПоJavaScript2ToolStripMenuItem, this->лекцияПоJavaScript3ToolStripMenuItem,

this->лекцияПоJavaScript4ToolStripMenuItem, this->лекцияПоJavaScript5ToolStripMenuItem, this->лекцияПоJavaScript6ToolStripMenuItem,

this->лекцияПоJavaScript7ToolStripMenuItem});

this->теорияToolStripMenuItem->Name = L"теорияToolStripMenuItem";

this->теорияToolStripMenuItem->Size = System::Drawing::Size(55, 20);

this->теорияToolStripMenuItem->Text = L"Теория";

this->основыЯзыкаHtmlToolStripMenuItem->Name = L"основыЯзыкаHtmlToolStripMenuItem";

this->основыЯзыкаHtmlToolStripMenuItem->Size = System::Drawing::Size(215, 22);

this->основыЯзыкаHtmlToolStripMenuItem->Text = L"Лекция по JavaScript № 1";

this->основыЯзыкаHtmlToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::основыЯзыкаHtmlToolStripMenuItem_Click);

this->структураHtnlToolStripMenuItem->Name = L"структураHtnlToolStripMenuItem";

this->структураHtnlToolStripMenuItem->Size = System::Drawing::Size(215, 22);

this->структураHtnlToolStripMenuItem->Text = L"Лекция по JavaScript № 2";

this->структураHtnlToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::структураHtnlToolStripMenuItem_Click);

this->лекToolStripMenuItem->Name = L"лекToolStripMenuItem";

this->лекToolStripMenuItem->Size = System::Drawing::Size(215, 22);

this->лекToolStripMenuItem->Text = L"Лекция по JavaScript № 3";

this->лекToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лекToolStripMenuItem_Click);

this->лекцияПоJavaScript2ToolStripMenuItem->Name = L"лекцияПоJavaScript2ToolStripMenuItem";

this->лекцияПоJavaScript2ToolStripMenuItem->Size = System::Drawing::Size(215, 22);

this->лекцияПоJavaScript2ToolStripMenuItem->Text = L"Лекция по JavaScript № 4";

this->лекцияПоJavaScript2ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лекцияПоJavaScript2ToolStripMenuItem_Click);

this->лекцияПоJavaScript3ToolStripMenuItem->Name = L"лекцияПоJavaScript3ToolStripMenuItem";

this->лекцияПоJavaScript3ToolStripMenuItem->Size = System::Drawing::Size(215, 22);

this->лекцияПоJavaScript3ToolStripMenuItem->Text = L"Лекция по JavaScript № 5";

this->лекцияПоJavaScript3ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лекцияПоJavaScript3ToolStripMenuItem_Click);

this->лекцияПоJavaScript4ToolStripMenuItem->Name = L"лекцияПоJavaScript4ToolStripMenuItem";

this->лекцияПоJavaScript4ToolStripMenuItem->Size = System::Drawing::Size(215, 22);

this->лекцияПоJavaScript4ToolStripMenuItem->Text = L"Лекция по JavaScript № 6";

this->лекцияПоJavaScript4ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лекцияПоJavaScript4ToolStripMenuItem_Click);

this->лекцияПоJavaScript5ToolStripMenuItem->Name = L"лекцияПоJavaScript5ToolStripMenuItem";

this->лекцияПоJavaScript5ToolStripMenuItem->Size = System::Drawing::Size(215, 22);

this->лекцияПоJavaScript5ToolStripMenuItem->Text = L"Лекция по JavaScript № 7";

this->лекцияПоJavaScript5ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лекцияПоJavaScript5ToolStripMenuItem_Click);

this->лекцияПоJavaScript6ToolStripMenuItem->Name = L"лекцияПоJavaScript6ToolStripMenuItem";

this->лекцияПоJavaScript6ToolStripMenuItem->Size = System::Drawing::Size(215, 22);

this->лекцияПоJavaScript6ToolStripMenuItem->Text = L"Лекция по JavaScript № 8";

this->лекцияПоJavaScript6ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лекцияПоJavaScript6ToolStripMenuItem_Click);

this->лекцияПоJavaScript7ToolStripMenuItem->Name = L"лекцияПоJavaScript7ToolStripMenuItem";

this->лекцияПоJavaScript7ToolStripMenuItem->Size = System::Drawing::Size(215, 22);

this->лекцияПоJavaScript7ToolStripMenuItem->Text = L"Лекция по JavaScript № 9";

this->лекцияПоJavaScript7ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лекцияПоJavaScript7ToolStripMenuItem_Click);

this->лабораторныеToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(15) {this->лабораторнаяРабота1ToolStripMenuItem,

this->лабораторнаяРабота2ToolStripMenuItem, this->лабораторнаяРабота3ToolStripMenuItem, this->лабораторнаяРабота4ToolStripMenuItem,

this->лабораторнаяРабота5ToolStripMenuItem, this->лабораторнаяРабота6ToolStripMenuItem, this->лабораторнаяРабота7ToolStripMenuItem,

this->лабораторнаяРабота8ToolStripMenuItem, this->лабораторнаяРабота9ToolStripMenuItem, this->лабораторнаяРабота10ToolStripMenuItem,

this->лабораторнаяРабота11ToolStripMenuItem, this->лабораторнаяРабота12ToolStripMenuItem, this->лабораторнаяРабота13ToolStripMenuItem,

this->лабораторнаяРабота14ToolStripMenuItem, this->лабораторнаяРабота15ToolStripMenuItem});

this->лабораторныеToolStripMenuItem->Name = L"лабораторныеToolStripMenuItem";

this->лабораторныеToolStripMenuItem->Size = System::Drawing::Size(68, 20);

this->лабораторныеToolStripMenuItem->Text = L"Практика";

this->лабораторнаяРабота1ToolStripMenuItem->Name = L"лабораторнаяРабота1ToolStripMenuItem";

this->лабораторнаяРабота1ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота1ToolStripMenuItem->Text = L"Задание № 1";

this->лабораторнаяРабота1ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота1ToolStripMenuItem_Click);

this->лабораторнаяРабота2ToolStripMenuItem->Name = L"лабораторнаяРабота2ToolStripMenuItem";

this->лабораторнаяРабота2ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота2ToolStripMenuItem->Text = L"Задание № 2";

this->лабораторнаяРабота2ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота2ToolStripMenuItem_Click);

this->лабораторнаяРабота3ToolStripMenuItem->Name = L"лабораторнаяРабота3ToolStripMenuItem";

this->лабораторнаяРабота3ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота3ToolStripMenuItem->Text = L"Задание № 3";

this->лабораторнаяРабота3ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота3ToolStripMenuItem_Click);

this->лабораторнаяРабота4ToolStripMenuItem->Name = L"лабораторнаяРабота4ToolStripMenuItem";

this->лабораторнаяРабота4ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота4ToolStripMenuItem->Text = L"Задание № 4";

this->лабораторнаяРабота4ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота4ToolStripMenuItem_Click);

this->лабораторнаяРабота5ToolStripMenuItem->Name = L"лабораторнаяРабота5ToolStripMenuItem";

this->лабораторнаяРабота5ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота5ToolStripMenuItem->Text = L"Задание № 5";

this->лабораторнаяРабота5ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота5ToolStripMenuItem_Click);

this->лабораторнаяРабота6ToolStripMenuItem->Name = L"лабораторнаяРабота6ToolStripMenuItem";

this->лабораторнаяРабота6ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота6ToolStripMenuItem->Text = L"Задание № 6";

this->лабораторнаяРабота6ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота6ToolStripMenuItem_Click);

this->лабораторнаяРабота7ToolStripMenuItem->Name = L"лабораторнаяРабота7ToolStripMenuItem";

this->лабораторнаяРабота7ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота7ToolStripMenuItem->Text = L"Задание № 7";

this->лабораторнаяРабота7ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота7ToolStripMenuItem_Click);

this->лабораторнаяРабота8ToolStripMenuItem->Name = L"лабораторнаяРабота8ToolStripMenuItem";

this->лабораторнаяРабота8ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота8ToolStripMenuItem->Text = L"Задание № 8";

this->лабораторнаяРабота8ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота8ToolStripMenuItem_Click);

this->лабораторнаяРабота9ToolStripMenuItem->Name = L"лабораторнаяРабота9ToolStripMenuItem";

this->лабораторнаяРабота9ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота9ToolStripMenuItem->Text = L"Задание № 9";

this->лабораторнаяРабота9ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота9ToolStripMenuItem_Click);

this->лабораторнаяРабота10ToolStripMenuItem->Name = L"лабораторнаяРабота10ToolStripMenuItem";

this->лабораторнаяРабота10ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота10ToolStripMenuItem->Text = L"Задание № 10";

this->лабораторнаяРабота10ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота10ToolStripMenuItem_Click);

this->лабораторнаяРабота11ToolStripMenuItem->Name = L"лабораторнаяРабота11ToolStripMenuItem";

this->лабораторнаяРабота11ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота11ToolStripMenuItem->Text = L"Задание № 11";

this->лабораторнаяРабота11ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота11ToolStripMenuItem_Click);

this->лабораторнаяРабота12ToolStripMenuItem->Name = L"лабораторнаяРабота12ToolStripMenuItem";

this->лабораторнаяРабота12ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота12ToolStripMenuItem->Text = L"Задание № 12";

this->лабораторнаяРабота12ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота12ToolStripMenuItem_Click);

this->лабораторнаяРабота13ToolStripMenuItem->Name = L"лабораторнаяРабота13ToolStripMenuItem";

this->лабораторнаяРабота13ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота13ToolStripMenuItem->Text = L"Задание № 13";

this->лабораторнаяРабота13ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота13ToolStripMenuItem_Click);

this->лабораторнаяРабота14ToolStripMenuItem->Name = L"лабораторнаяРабота14ToolStripMenuItem";

this->лабораторнаяРабота14ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота14ToolStripMenuItem->Text = L"Задание № 14";

this->лабораторнаяРабота14ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота14ToolStripMenuItem_Click);

this->лабораторнаяРабота15ToolStripMenuItem->Name = L"лабораторнаяРабота15ToolStripMenuItem";

this->лабораторнаяРабота15ToolStripMenuItem->Size = System::Drawing::Size(162, 22);

this->лабораторнаяРабота15ToolStripMenuItem->Text = L"Задание № 15";

this->лабораторнаяРабота15ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::лабораторнаяРабота15ToolStripMenuItem_Click);

this->контрольToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(3) {this->тест1ToolStripMenuItem,

this->тест2ToolStripMenuItem, this->тест3ToolStripMenuItem});

this->контрольToolStripMenuItem->Name = L"контрольToolStripMenuItem";

this->контрольToolStripMenuItem->Size = System::Drawing::Size(50, 20);

this->контрольToolStripMenuItem->Text = L"Тесты";

this->тест1ToolStripMenuItem->Name = L"тест1ToolStripMenuItem";

this->тест1ToolStripMenuItem->Size = System::Drawing::Size(133, 22);

this->тест1ToolStripMenuItem->Text = L"Тест № 1";

this->тест1ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::тест1ToolStripMenuItem_Click);

this->тест2ToolStripMenuItem->Name = L"тест2ToolStripMenuItem";

this->тест2ToolStripMenuItem->Size = System::Drawing::Size(133, 22);

this->тест2ToolStripMenuItem->Text = L"Тест № 2";

this->тест2ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::тест2ToolStripMenuItem_Click);

this->тест3ToolStripMenuItem->Name = L"тест3ToolStripMenuItem";

this->тест3ToolStripMenuItem->Size = System::Drawing::Size(133, 22);

this->тест3ToolStripMenuItem->Text = L"Тест № 3";

this->тест3ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::тест3ToolStripMenuItem_Click);

this->оПрограммеToolStripMenuItem->Name = L"оПрограммеToolStripMenuItem";

this->оПрограммеToolStripMenuItem->Size = System::Drawing::Size(83, 20);

this->оПрограммеToolStripMenuItem->Text = L"О программе";

this->оПрограммеToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::оПрограммеToolStripMenuItem_Click);

this->выходToolStripMenuItem->Name = L"выходToolStripMenuItem";

this->выходToolStripMenuItem->Size = System::Drawing::Size(52, 20);

this->выходToolStripMenuItem->Text = L"Выход";

this->выходToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::выходToolStripMenuItem_Click_1);

this->richTextBox1->BackColor = System::Drawing::Color::LightCyan;

this->richTextBox1->ForeColor = System::Drawing::Color::Maroon;

this->richTextBox1->Location = System::Drawing::Point(12, 31);

this->richTextBox1->Name = L"richTextBox1";

this->richTextBox1->ScrollBars = System::Windows::Forms::RichTextBoxScrollBars::Vertical;

this->richTextBox1->Size = System::Drawing::Size(751, 416);

this->richTextBox1->TabIndex = 1;

this->richTextBox1->Text = L"";

this->richTextBox1->LinkClicked += gcnew System::Windows::Forms::LinkClickedEventHandler(this, &Form1::richTextBox1_LinkClicked);

this->richTextBox2->BackColor = System::Drawing::Color::LightCyan;

this->richTextBox2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(204)));

this->richTextBox2->ForeColor = System::Drawing::Color::Maroon;

this->richTextBox2->Location = System::Drawing::Point(26, 53);

this->richTextBox2->Name = L"richTextBox2";

this->richTextBox2->Size = System::Drawing::Size(724, 102);

this->richTextBox2->TabIndex = 7;

this->richTextBox2->Text = L"";

this->button1->Location = System::Drawing::Point(616, 388);

this->button1->Name = L"button1";

this->button1->Size = System::Drawing::Size(123, 41);

this->button1->TabIndex = 6;

this->button1->Text = L"Далее";

this->button1->UseVisualStyleBackColor = true;

this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);

this->radioButton4->AutoSize = true;

this->radioButton4->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(204)));

this->radioButton4->ForeColor = System::Drawing::Color::Maroon;

this->radioButton4->Location = System::Drawing::Point(105, 303);

this->radioButton4->Name = L"radioButton4";

this->radioButton4->Size = System::Drawing::Size(14, 13);

this->radioButton4->TabIndex = 5;

this->radioButton4->TabStop = true;

this->radioButton4->UseVisualStyleBackColor = true;

this->radioButton3->AutoSize = true;

this->radioButton3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(204)));

this->radioButton3->ForeColor = System::Drawing::Color::Maroon;

this->radioButton3->Location = System::Drawing::Point(105, 264);

this->radioButton3->Name = L"radioButton3";

this->radioButton3->Size = System::Drawing::Size(14, 13);

this->radioButton3->TabIndex = 4;

this->radioButton3->TabStop = true;

this->radioButton3->UseVisualStyleBackColor = true;

this->radioButton2->AutoSize = true;

this->radioButton2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(204)));

this->radioButton2->ForeColor = System::Drawing::Color::Maroon;

this->radioButton2->Location = System::Drawing::Point(105, 227);

this->radioButton2->Name = L"radioButton2";

this->radioButton2->Size = System::Drawing::Size(14, 13);

this->radioButton2->TabIndex = 3;

this->radioButton2->TabStop = true;

this->radioButton2->UseVisualStyleBackColor = true;

this->radioButton1->AutoSize = true;

this->radioButton1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(204)));

this->radioButton1->ForeColor = System::Drawing::Color::Maroon;

this->radioButton1->Location = System::Drawing::Point(105, 190);

this->radioButton1->Name = L"radioButton1";

this->radioButton1->Size = System::Drawing::Size(14, 13);

this->radioButton1->TabIndex = 2;

this->radioButton1->TabStop = true;

this->radioButton1->UseVisualStyleBackColor = true;

this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(204)));

this->label1->Location = System::Drawing::Point(57, 348);

this->label1->Name = L"label1";

this->label1->Size = System::Drawing::Size(412, 37);

this->label1->TabIndex = 8;

this->button2->Location = System::Drawing::Point(22, 19);

this->button2->Name = L"button2";

this->button2->Size = System::Drawing::Size(206, 35);

this->button2->TabIndex = 9;

this->button2->Text = L"Лекция по JavaScript № 1";

this->button2->UseVisualStyleBackColor = true;

this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click_1);

this->button3->Location = System::Drawing::Point(22, 57);

this->button3->Name = L"button3";

this->button3->Size = System::Drawing::Size(206, 35);

this->button3->TabIndex = 10;

this->button3->Text = L"Лекция по JavaScript № 2";

this->button3->UseVisualStyleBackColor = true;

this->button3->Click += gcnew System::EventHandler(this, &Form1::button3_Click_1);

this->button4->Location = System::Drawing::Point(22, 95);

this->button4->Name = L"button4";

this->button4->Size = System::Drawing::Size(206, 35);

this->button4->TabIndex = 11;

this->button4->Text = L"Лекция по JavaScript № 3";

this->button4->UseVisualStyleBackColor = true;

this->button4->Click += gcnew System::EventHandler(this, &Form1::button4_Click);

this->button5->Location = System::Drawing::Point(22, 134);

this->button5->Name = L"button5";

this->button5->Size = System::Drawing::Size(206, 35);

this->button5->TabIndex = 12;

this->button5->Text = L"Лекция по JavaScript № 4";

this->button5->UseVisualStyleBackColor = true;

this->button5->Click += gcnew System::EventHandler(this, &Form1::button5_Click);

this->button6->Location = System::Drawing::Point(22, 175);

this->button6->Name = L"button6";

this->button6->Size = System::Drawing::Size(206, 35);

this->button6->TabIndex = 13;

this->button6->Text = L"Лекция по JavaScript № 5";

this->button6->UseVisualStyleBackColor = true;

this->button6->Click += gcnew System::EventHandler(this, &Form1::button6_Click);

this->button7->Location = System::Drawing::Point(22, 216);

this->button7->Name = L"button7";

this->button7->Size = System::Drawing::Size(206, 35);

this->button7->TabIndex = 14;

this->button7->Text = L"Лекция по JavaScript № 6";

this->button7->UseVisualStyleBackColor = true;

this->button7->Click += gcnew System::EventHandler(this, &Form1::button7_Click);

this->button8->Location = System::Drawing::Point(22, 257);

this->button8->Name = L"button8";

this->button8->Size = System::Drawing::Size(206, 35);

this->button8->TabIndex = 15;

this->button8->Text = L"Лекция по JavaScript № 7";

this->button8->UseVisualStyleBackColor = true;

this->button8->Click += gcnew System::EventHandler(this, &Form1::button8_Click);

this->button9->Location = System::Drawing::Point(22, 298);

this->button9->Name = L"button9";

this->button9->Size = System::Drawing::Size(206, 35);

this->button9->TabIndex = 16;

this->button9->Text = L"Лекция по JavaScript № 8";

this->button9->UseVisualStyleBackColor = true;

this->button9->Click += gcnew System::EventHandler(this, &Form1::button9_Click);

this->button10->Location = System::Drawing::Point(22, 339);

this->button10->Name = L"button10";

this->button10->Size = System::Drawing::Size(206, 35);

this->button10->TabIndex = 17;

this->button10->Text = L"Лекция по JavaScript № 9";

this->button10->UseVisualStyleBackColor = true;

this->button10->Click += gcnew System::EventHandler(this, &Form1::button10_Click);

this->groupBox1->Controls->Add(this->button10);

this->groupBox1->Controls->Add(this->button9);

this->groupBox1->Controls->Add(this->button8);

this->groupBox1->Controls->Add(this->button7);

this->groupBox1->Controls->Add(this->button6);

this->groupBox1->Controls->Add(this->button5);

this->groupBox1->Controls->Add(this->button4);

this->groupBox1->Controls->Add(this->button3);

this->groupBox1->Controls->Add(this->button2);

this->groupBox1->ForeColor = System::Drawing::Color::MediumBlue;

this->groupBox1->Location = System::Drawing::Point(26, 53);

this->groupBox1->Name = L"groupBox1";

this->groupBox1->Size = System::Drawing::Size(247, 394);

this->groupBox1->TabIndex = 10;

this->groupBox1->TabStop = false;

this->groupBox1->Text = L"Теория";

this->button19->Location = System::Drawing::Point(6, 19);

this->button19->Name = L"button19";

this->button19->Size = System::Drawing::Size(105, 35);

this->button19->TabIndex = 9;

this->button19->Text = L"Задание № 1";

this->button19->UseVisualStyleBackColor = true;

this->button19->Click += gcnew System::EventHandler(this, &Form1::button19_Click);

this->button18->Location = System::Drawing::Point(6, 57);

this->button18->Name = L"button18";

this->button18->Size = System::Drawing::Size(105, 35);

this->button18->TabIndex = 10;

this->button18->Text = L"Задание № 2";

this->button18->UseVisualStyleBackColor = true;

this->button18->Click += gcnew System::EventHandler(this, &Form1::button18_Click);

this->button17->Location = System::Drawing::Point(6, 96);

this->button17->Name = L"button17";

this->button17->Size = System::Drawing::Size(105, 35);

this->button17->TabIndex = 11;

this->button17->Text = L"Задание № 3";

this->button17->UseVisualStyleBackColor = true;

this->button17->Click += gcnew System::EventHandler(this, &Form1::button17_Click);

this->button16->Location = System::Drawing::Point(6, 135);

this->button16->Name = L"button16";

this->button16->Size = System::Drawing::Size(105, 35);

this->button16->TabIndex = 12;

this->button16->Text = L"Задание № 4";

this->button16->UseVisualStyleBackColor = true;

this->button16->Click += gcnew System::EventHandler(this, &Form1::button16_Click);

this->button25->Location = System::Drawing::Point(117, 57);

this->button25->Name = L"button25";

this->button25->Size = System::Drawing::Size(105, 35);

this->button25->TabIndex = 12;

this->button25->Text = L"Задание № 10";

this->button25->UseVisualStyleBackColor = true;

this->button25->Click += gcnew System::EventHandler(this, &Form1::button25_Click);

this->button15->Location = System::Drawing::Point(6, 177);

this->button15->Name = L"button15";

this->button15->Size = System::Drawing::Size(105, 35);

this->button15->TabIndex = 13;

this->button15->Text = L"Задание № 5";

this->button15->UseVisualStyleBackColor = true;

this->button15->Click += gcnew System::EventHandler(this, &Form1::button15_Click);

this->button24->Location = System::Drawing::Point(117, 96);

this->button24->Name = L"button24";

this->button24->Size = System::Drawing::Size(105, 35);

this->button24->TabIndex = 13;

this->button24->Text = L"Задание № 11";

this->button24->UseViмsualStyleBackColor = true;

this->button24->Click += gcnew System::EventHandler(this, &Form1::button24_Click);

this->button14->Location = System::Drawing::Point(6, 217);

this->button14->Name = L"button14";

this->button14->Size = System::Drawing::Size(105, 35);

this->button14->TabIndex = 14;

this->button14->Text = L"Задание № 6";

this->button14->UseVisualStyleBackColor = true;

this->button14->Click += gcnew System::EventHandler(this, &Form1::button14_Click);

this->button23->Location = System::Drawing::Point(117, 135);

this->button23->Name = L"button23";

this->button23->Size = System::Drawing::Size(105, 35);

this->button23->TabIndex = 14;

this->button23->Text = L"Задание № 12";

this->button23->UseVisualStyleBackColor = true;

this->button23->Click += gcnew System::EventHandler(this, &Form1::button23_Click);

this->button13->Location = System::Drawing::Point(6, 257);

this->button13->Name = L"button13";

this->button13->Size = System::Drawing::Size(105, 35);

this->button13->TabIndex = 15;

this->button13->Text = L"Задание № 7";

this->button13->UseVisualStyleBackColor = true;

this->button13->Click += gcnew System::EventHandler(this, &Form1::button13_Click);

this->button22->Location = System::Drawing::Point(117, 177);

this->button22->Name = L"button22";

this->button22->Size = System::Drawing::Size(105, 35);

this->button22->TabIndex = 15;

this->button22->Text = L"Задание № 13";

this->button22->UseVisualStyleBackColor = true;

this->button22->Click += gcnew System::EventHandler(this, &Form1::button22_Click);

this->button12->Location = System::Drawing::Point(6, 297);

this->button12->Name = L"button12";

this->button12->Size = System::Drawing::Size(105, 35);

this->button12->TabIndex = 16;

this->button12->Text = L"Задание № 8";

this->button12->UseVisualStyleBackColor = true;

this->button12->Click += gcnew System::EventHandler(this, &Form1::button12_Click);

this->button21->Location = System::Drawing::Point(117, 218);

this->button21->Name = L"button21";

this->button21->Size = System::Drawing::Size(105, 35);

this->button21->TabIndex = 16;

this->button21->Text = L"Задание № 14";

this->button21->UseVisualStyleBackColor = true;

this->button21->Click += gcnew System::EventHandler(this, &Form1::button21_Click);

this->button11->Location = System::Drawing::Point(117, 19);

this->button11->Name = L"button11";

this->button11->Size = System::Drawing::Size(105, 35);

this->button11->TabIndex = 17;

this->button11->Text = L"Задание № 9";

this->button11->UseVisualStyleBackColor = true;

this->button11->Click += gcnew System::EventHandler(this, &Form1::button11_Click);

this->button20->Location = System::Drawing::Point(117, 257);

this->button20->Name = L"button20";

this->button20->Size = System::Drawing::Size(105, 35);

this->button20->TabIndex = 17;

this->button20->Text = L"Задание № 15";

this->button20->UseVisualStyleBackColor = true;

this->button20->Click += gcnew System::EventHandler(this, &Form1::button20_Click);

this->groupBox2->Controls->Add(this->button20);

this->groupBox2->Controls->Add(this->button11);

this->groupBox2->Controls->Add(this->button21);

this->groupBox2->Controls->Add(this->button12);

this->groupBox2->Controls->Add(this->button22);

this->groupBox2->Controls->Add(this->button13);

this->groupBox2->Controls->Add(this->button23);

this->groupBox2->Controls->Add(this->button14);

this->groupBox2->Controls->Add(this->button24);

this->groupBox2->Controls->Add(this->button15);

this->groupBox2->Controls->Add(this->button25);

this->groupBox2->Controls->Add(this->button16);

this->groupBox2->Controls->Add(this->button17);

this->groupBox2->Controls->Add(this->button18);

this->groupBox2->Controls->Add(this->button19);

this->groupBox2->ForeColor = System::Drawing::Color::MediumBlue;

this->groupBox2->Location = System::Drawing::Point(279, 53);

this->groupBox2->Name = L"groupBox2";

this->groupBox2->Size = System::Drawing::Size(232, 394);

this->groupBox2->TabIndex = 11;

this->groupBox2->TabStop = false;

this->groupBox2->Text = L"Практика";

this->button28->Location = System::Drawing::Point(13, 28);

this->button28->Name = L"button28";

this->button28->Size = System::Drawing::Size(206, 35);

this->button28->TabIndex = 9;

this->button28->Text = L"Тест № 1";

this->button28->UseVisualStyleBackColor = true;

this->button28->Click += gcnew System::EventHandler(this, &Form1::button28_Click);

this->button27->Location = System::Drawing::Point(13, 76);

this->button27->Name = L"button27";

this->button27->Size = System::Drawing::Size(206, 35);

this->button27->TabIndex = 10;

this->button27->Text = L"Тест № 2";

this->button27->UseVisualStyleBackColor = true;

this->button27->Click += gcnew System::EventHandler(this, &Form1::button27_Click);

this->button26->Location = System::Drawing::Point(13, 121);

this->button26->Name = L"button26";

this->button26->Size = System::Drawing::Size(206, 35);

this->button26->TabIndex = 11;

this->button26->Text = L"Тест № 3";

this->button26->UseVisualStyleBackColor = true;

this->button26->Click += gcnew System::EventHandler(this, &Form1::button26_Click);

this->groupBox3->Controls->Add(this->button26);

this->groupBox3->Controls->Add(this->button27);

this->groupBox3->Controls->Add(this->button28);

this->groupBox3->ForeColor = System::Drawing::Color::MediumBlue;

this->groupBox3->Location = System::Drawing::Point(515, 53);

this->groupBox3->Name = L"groupBox3";

this->groupBox3->Size = System::Drawing::Size(233, 394);

this->groupBox3->TabIndex = 12;

this->groupBox3->TabStop = false;

this->groupBox3->Text = L"Тесты";

this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);

this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;

this->BackColor = System::Drawing::Color::SkyBlue;

this->ClientSize = System::Drawing::Size(775, 459);

this->Controls->Add(this->groupBox3);

this->Controls->Add(this->groupBox2);

this->Controls->Add(this->groupBox1);

this->Controls->Add(this->label1);

this->Controls->Add(this->richTextBox2);

this->Controls->Add(this->button1);

this->Controls->Add(this->radioButton4);

this->Controls->Add(this->radioButton3);

this->Controls->Add(this->radioButton2);

this->Controls->Add(this->radioButton1);

this->Controls->Add(this->richTextBox1);

this->Controls->Add(this->menuStrip1);

this->MainMenuStrip = this->menuStrip1;

this->Name = L"Form1";

this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;

this->Text = L"Вводный курс в JavaScript";

this->Activated += gcnew System::EventHandler(this, &Form1::Form1_Activated);

this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);

this->SizeChanged += gcnew System::EventHandler(this, &Form1::Form1_SizeChanged);

this->Leave += gcnew System::EventHandler(this, &Form1::Form1_Leave);

this->menuStrip1->ResumeLayout(false);

this->menuStrip1->PerformLayout();

this->groupBox1->ResumeLayout(false);

this->groupBox2->ResumeLayout(false);

this->groupBox3->ResumeLayout(false);

this->ResumeLayout(false);

this->PerformLayout();

}

#pragma endregion

private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=true;

this->groupBox2->Visible=true;

this->groupBox3->Visible=true;

this->richTextBox1->Visible=false;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

}

private: System::Void структураHtnlToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection2.rtf");

num=2;

}

private: System::Void выходToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

Close();

}

private: System::Void основыЯзыкаHtmlToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection1.rtf");

num=1;

}

private: System::Void лекToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection3.rtf");

num=3;

}

private: System::Void лекцияПоJavaScript2ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=4;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection4.rtf");

}

private: System::Void лекцияПоJavaScript3ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=5;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection5.rtf");

}

private: System::Void лекцияПоJavaScript4ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=6;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection6.rtf");

}

private: System::Void лекцияПоJavaScript5ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=7;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection7.rtf");

}

private: System::Void лекцияПоJavaScript6ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=8;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection8.rtf");

}

private: System::Void лекцияПоJavaScript7ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=9;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection9.rtf");

}

private: System::Void лабораторнаяРабота1ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 1 - 2","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr1.rtf");

}

private: System::Void лабораторнаяРабота2ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 1 - 2","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=11;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr2.rtf");

}

private: System::Void лабораторнаяРабота3ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 2 - 3","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=12;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr3.rtf");

}

private: System::Void лабораторнаяРабота4ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 2 - 3","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=13;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr4.rtf");

}

private: System::Void лабораторнаяРабота5ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 3 - 4","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=14;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr5.rtf");

}

private: System::Void лабораторнаяРабота6ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 3 - 4","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=15;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr6.rtf");

}

private: System::Void лабораторнаяРабота7ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 4 - 5","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=16;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr7.rtf");

}

private: System::Void лабораторнаяРабота8ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 4 - 5","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=17;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr8.rtf");

}

private: System::Void лабораторнаяРабота9ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 5 - 6","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=18;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr9.rtf");

}

private: System::Void лабораторнаяРабота10ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 5 - 6","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=19;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr10.rtf");

}

private: System::Void лабораторнаяРабота11ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 6 - 7","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=20;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr11.rtf");

}

private: System::Void лабораторнаяРабота12ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 6 - 7","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=21;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr12.rtf");

}

private: System::Void лабораторнаяРабота13ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 7 - 8","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=22;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr13.rtf");

}

private: System::Void лабораторнаяРабота14ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 7 - 8","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=23;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr14.rtf");

}

private: System::Void лабораторнаяРабота15ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 8 - 9","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=24;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr15.rtf");

}

private: System::Void тест1ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для прохождения теста должны быть изучены лекции 1 - 3","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

int m,n;

this->button1->Enabled=true;

k=0;

this->label1->Visible=false;

this->richTextBox1->Visible=false;

this->richTextBox2->Visible=true;

this->button1->Visible=true;

this->radioButton1->Visible=true;

this->radioButton2->Visible=true;

this->radioButton3->Visible=true;

this->radioButton4->Visible=true;

radioButton1->Checked = false;

radioButton2->Checked = false;

radioButton3->Checked = false;

radioButton4->Checked = false;

i=0;

srand(time(NULL));

m=1+rand()%20;

n=m-1;

this->richTextBox1->LoadFile(L"Test/Test1.rtf");

this->richTextBox2->Text=this->richTextBox1->Lines[6*n];

this->radioButton1->Text=this->richTextBox1->Lines[6*n+1];

this->radioButton2->Text=this->richTextBox1->Lines[6*n+2];

this->radioButton3->Text=this->richTextBox1->Lines[6*n+3];

this->radioButton4->Text=this->richTextBox1->Lines[6*n+4];

o=Convert::ToInt32(this->richTextBox1->Lines[6*n+5]);

}

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {

int n,m;

if ((radioButton1->Checked )&&(o==1)) k=k+1;

if ((radioButton2->Checked )&&(o==2)) k=k+1;

if ((radioButton3->Checked )&&(o==3)) k=k+1;

if ((radioButton4->Checked )&&(o==4)) k=k+1;

radioButton1->Checked = false;

radioButton2->Checked = false;

radioButton3->Checked = false;

radioButton4->Checked = false;

if (i==9)

{

this->richTextBox2->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->button1->Enabled=false;

this->label1->Text="Число правильных ответов - "+Convert::ToString(k)+" из 10";

this->label1->Visible=true;

}

if (i!=9)

{

i=i+1;

srand(time(NULL));

m=1+rand()%20;

n=m-1;

this->richTextBox2->Text=this->richTextBox1->Lines[6*n];

this->radioButton1->Text=this->richTextBox1->Lines[6*n+1];

this->radioButton2->Text=this->richTextBox1->Lines[6*n+2];

this->radioButton3->Text=this->richTextBox1->Lines[6*n+3];

this->radioButton4->Text=this->richTextBox1->Lines[6*n+4];

o=Convert::ToInt32(this->richTextBox1->Lines[6*n+5]);}

}

private: System::Void Form1_Activated(System::Object^ sender, System::EventArgs^ e) {

}

private: System::Void Form1_Leave(System::Object^ sender, System::EventArgs^ e) {

}

private: System::Void Form1_SizeChanged(System::Object^ sender, System::EventArgs^ e) {

this->richTextBox1->Width=this->Width-31;

this->richTextBox1->Height=this->Height-131;

}

private: System::Void выходToolStripMenuItem_Click_1(System::Object^ sender, System::EventArgs^ e) {

this->Close();

}

private: System::Void оПрограммеToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

About^ f = gcnew About();

f->ShowDialog();

}

private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {

if (num==1) {this->richTextBox1->LoadFile(L"Data/Lection2.rtf");}

if (num==2) {this->richTextBox1->LoadFile(L"Data/Lection3.rtf");}

if (num==3) {this->richTextBox1->LoadFile(L"Data/Lection4.rtf");}

if (num==4) {this->richTextBox1->LoadFile(L"Data/Lection5.rtf");}

if (num==5) {this->richTextBox1->LoadFile(L"Data/Lection6.rtf");}

if (num==6) {this->richTextBox1->LoadFile(L"Data/Lection7.rtf");}

if (num==7) {this->richTextBox1->LoadFile(L"Data/Lection8.rtf");}

if (num==8) {this->richTextBox1->LoadFile(L"Data/Lection9.rtf");}

if (num==10) {this->richTextBox1->LoadFile(L"Labs/Lr2.rtf");}

if (num==11) {this->richTextBox1->LoadFile(L"Labs/Lr3.rtf");}

if (num==12) {this->richTextBox1->LoadFile(L"Labs/Lr4.rtf");}

if (num==13) {this->richTextBox1->LoadFile(L"Labs/Lr5.rtf");}

if (num==14) {this->richTextBox1->LoadFile(L"Labs/Lr6.rtf");}

if (num==15) {this->richTextBox1->LoadFile(L"Labs/Lr7.rtf");}

if (num==16) {this->richTextBox1->LoadFile(L"Labs/Lr8.rtf");}

if (num==17) {this->richTextBox1->LoadFile(L"Labs/Lr9.rtf");}

if (num==18) {this->richTextBox1->LoadFile(L"Labs/Lr10.rtf");}

if (num==19) {this->richTextBox1->LoadFile(L"Labs/Lr11.rtf");}

if (num==20) {this->richTextBox1->LoadFile(L"Labs/Lr12.rtf");}

if (num==21) {this->richTextBox1->LoadFile(L"Labs/Lr13.rtf");}

if (num==22) {this->richTextBox1->LoadFile(L"Labs/Lr14.rtf");}

if (num==23) {this->richTextBox1->LoadFile(L"Labs/Lr15.rtf");}

num=num+1;

}

private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {

if (num==2) {this->richTextBox1->LoadFile(L"Data/Lection1.rtf");}

if (num==3) {this->richTextBox1->LoadFile(L"Data/Lection2.rtf");}

if (num==4) {this->richTextBox1->LoadFile(L"Data/Lection3.rtf");}

if (num==5) {this->richTextBox1->LoadFile(L"Data/Lection4.rtf");}

if (num==6) {this->richTextBox1->LoadFile(L"Data/Lection5.rtf");}

if (num==7) {this->richTextBox1->LoadFile(L"Data/Lection6.rtf");}

if (num==8) {this->richTextBox1->LoadFile(L"Data/Lection7.rtf");}

if (num==9) {this->richTextBox1->LoadFile(L"Data/Lection8.rtf");}

if (num==11) {this->richTextBox1->LoadFile(L"Labs/Lr1.rtf");}

if (num==12) {this->richTextBox1->LoadFile(L"Labs/Lr2.rtf");}

if (num==13) {this->richTextBox1->LoadFile(L"Labs/Lr3.rtf");}

if (num==14) {this->richTextBox1->LoadFile(L"Labs/Lr4.rtf");}

if (num==15) {this->richTextBox1->LoadFile(L"Labs/Lr5.rtf");}

if (num==16) {this->richTextBox1->LoadFile(L"Labs/Lr6.rtf");}

if (num==17) {this->richTextBox1->LoadFile(L"Labs/Lr7.rtf");}

if (num==18) {this->richTextBox1->LoadFile(L"Labs/Lr8.rtf");}

if (num==19) {this->richTextBox1->LoadFile(L"Labs/Lr9.rtf");}

if (num==20) {this->richTextBox1->LoadFile(L"Labs/Lr10.rtf");}

if (num==21) {this->richTextBox1->LoadFile(L"Labs/Lr11.rtf");}

if (num==22) {this->richTextBox1->LoadFile(L"Labs/Lr12.rtf");}

if (num==23) {this->richTextBox1->LoadFile(L"Labs/Lr13.rtf");}

if (num==24) {this->richTextBox1->LoadFile(L"Labs/Lr14.rtf");}

num=num-1;

}

private: System::Void тест2ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для прохождения теста должны быть изучены лекции 4 - 6","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

int m,n;

this->button1->Enabled=true;

k=0;

this->label1->Visible=false;

this->richTextBox1->Visible=false;

this->richTextBox2->Visible=true;

this->button1->Visible=true;

this->radioButton1->Visible=true;

this->radioButton2->Visible=true;

this->radioButton3->Visible=true;

this->radioButton4->Visible=true;

radioButton1->Checked = false;

radioButton2->Checked = false;

radioButton3->Checked = false;

radioButton4->Checked = false;

i=0;

srand(time(NULL));

m=1+rand()%20;

n=m-1;

this->richTextBox1->LoadFile(L"Test/Test2.rtf");

this->richTextBox2->Text=this->richTextBox1->Lines[6*n];

this->radioButton1->Text=this->richTextBox1->Lines[6*n+1];

this->radioButton2->Text=this->richTextBox1->Lines[6*n+2];

this->radioButton3->Text=this->richTextBox1->Lines[6*n+3];

this->radioButton4->Text=this->richTextBox1->Lines[6*n+4];

o=Convert::ToInt32(this->richTextBox1->Lines[6*n+5]);

}

private: System::Void тест3ToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для прохождения теста должны быть изучены лекции 7 - 9","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

int m,n;

this->button1->Enabled=true;

k=0;

this->label1->Visible=false;

this->richTextBox1->Visible=false;

this->richTextBox2->Visible=true;

this->button1->Visible=true;

this->radioButton1->Visible=true;

this->radioButton2->Visible=true;

this->radioButton3->Visible=true;

this->radioButton4->Visible=true;

radioButton1->Checked = false;

radioButton2->Checked = false;

radioButton3->Checked = false;

radioButton4->Checked = false;

i=0;

srand(time(NULL));

m=1+rand()%20;

n=m-1;

this->richTextBox1->LoadFile(L"Test/Test3.rtf");

this->richTextBox2->Text=this->richTextBox1->Lines[6*n];

this->radioButton1->Text=this->richTextBox1->Lines[6*n+1];

this->radioButton2->Text=this->richTextBox1->Lines[6*n+2];

this->radioButton3->Text=this->richTextBox1->Lines[6*n+3];

this->radioButton4->Text=this->richTextBox1->Lines[6*n+4];

o=Convert::ToInt32(this->richTextBox1->Lines[6*n+5]);

}

private: System::Void button2_Click_1(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection1.rtf");

num=1;

}

private: System::Void button3_Click_1(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection2.rtf");

num=1;

}

private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection3.rtf");

num=1;

}

private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection4.rtf");

num=1;

}

private: System::Void button6_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection5.rtf");

num=1;

}

private: System::Void button7_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection6.rtf");

num=1;

}

private: System::Void button8_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection7.rtf");

num=1;

}

private: System::Void button9_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection8.rtf");

num=1;

}

private: System::Void button10_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Data/Lection9.rtf");

num=1;

}

private: System::Void button19_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 1 - 2","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr1.rtf");

}

private: System::Void button18_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 1 - 2","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr2.rtf");

}

private: System::Void button17_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 2 - 3","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr3.rtf");

}

private: System::Void button16_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 2 - 3","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr4.rtf");

}

private: System::Void button15_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 3 - 4","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr5.rtf");

}

private: System::Void button14_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 3 - 4","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr6.rtf"); }

private: System::Void button13_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 4 - 5","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr7.rtf");

}

private: System::Void button12_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 4 - 5","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr8.rtf");

}

private: System::Void button11_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 5 - 6","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr9.rtf");

}

private: System::Void button25_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 5 - 6","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr10.rtf");

}

private: System::Void button24_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 6 - 7","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr11.rtf");

}

private: System::Void button23_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 6 - 7","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr12.rtf");

}

private: System::Void button22_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 7 - 8","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr13.rtf");

}

private: System::Void button21_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 7 - 8","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr14.rtf");

}

private: System::Void button20_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для выполнения задания должны быть изучены лекции 8 - 9","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

num=10;

this->richTextBox1->Visible=true;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

this->richTextBox1->LoadFile(L"Labs/Lr15.rtf");

}

private: System::Void button28_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для прохождения теста должны быть изучены лекции 1 - 3","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

int m,n;

this->button1->Enabled=true;

k=0;

this->label1->Visible=false;

this->richTextBox1->Visible=false;

this->richTextBox2->Visible=true;

this->button1->Visible=true;

this->radioButton1->Visible=true;

this->radioButton2->Visible=true;

this->radioButton3->Visible=true;

this->radioButton4->Visible=true;

radioButton1->Checked = false;

radioButton2->Checked = false;

radioButton3->Checked = false;

radioButton4->Checked = false;

i=0;

srand(time(NULL));

m=1+rand()%20;

n=m-1;

this->richTextBox1->LoadFile(L"Test/Test1.rtf");

this->richTextBox2->Text=this->richTextBox1->Lines[6*n];

this->radioButton1->Text=this->richTextBox1->Lines[6*n+1];

this->radioButton2->Text=this->richTextBox1->Lines[6*n+2];

this->radioButton3->Text=this->richTextBox1->Lines[6*n+3];

this->radioButton4->Text=this->richTextBox1->Lines[6*n+4];

o=Convert::ToInt32(this->richTextBox1->Lines[6*n+5]);

}

private: System::Void button27_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для прохождения теста должны быть изучены лекции 4 - 6","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

int m,n;

this->button1->Enabled=true;

k=0;

this->label1->Visible=false;

this->richTextBox1->Visible=false;

this->richTextBox2->Visible=true;

this->button1->Visible=true;

this->radioButton1->Visible=true;

this->radioButton2->Visible=true;

this->radioButton3->Visible=true;

this->radioButton4->Visible=true;

radioButton1->Checked = false;

radioButton2->Checked = false;

radioButton3->Checked = false;

radioButton4->Checked = false;

i=0;

srand(time(NULL));

m=1+rand()%20;

n=m-1;

this->richTextBox1->LoadFile(L"Test/Test2.rtf");

this->richTextBox2->Text=this->richTextBox1->Lines[6*n];

this->radioButton1->Text=this->richTextBox1->Lines[6*n+1];

this->radioButton2->Text=this->richTextBox1->Lines[6*n+2];

this->radioButton3->Text=this->richTextBox1->Lines[6*n+3];

this->radioButton4->Text=this->richTextBox1->Lines[6*n+4];

o=Convert::ToInt32(this->richTextBox1->Lines[6*n+5]);

}

private: System::Void button26_Click(System::Object^ sender, System::EventArgs^ e) {

MessageBox::Show("Для прохождения теста должны быть изучены лекции 7 - 9","Внимание!", MessageBoxButtons::OK,MessageBoxIcon::Question);

this->groupBox1->Visible=false;

this->groupBox2->Visible=false;

this->groupBox3->Visible=false;

int m,n;

this->button1->Enabled=true;

k=0;

this->label1->Visible=false;

this->richTextBox1->Visible=false;

this->richTextBox2->Visible=true;

this->button1->Visible=true;

this->radioButton1->Visible=true;

this->radioButton2->Visible=true;

this->radioButton3->Visible=true;

this->radioButton4->Visible=true;

radioButton1->Checked = false;

radioButton2->Checked = false;

radioButton3->Checked = false;

radioButton4->Checked = false;

i=0;

srand(time(NULL));

m=1+rand()%20;

n=m-1;

this->richTextBox1->LoadFile(L"Test/Test3.rtf");

this->richTextBox2->Text=this->richTextBox1->Lines[6*n];

this->radioButton1->Text=this->richTextBox1->Lines[6*n+1];

this->radioButton2->Text=this->richTextBox1->Lines[6*n+2];

this->radioButton3->Text=this->richTextBox1->Lines[6*n+3];

this->radioButton4->Text=this->richTextBox1->Lines[6*n+4];

o=Convert::ToInt32(this->richTextBox1->Lines[6*n+5]);

}

private: System::Void toolStripMenuItem1_Click(System::Object^ sender, System::EventArgs^ e) {

this->groupBox1->Visible=true;

this->groupBox2->Visible=true;

this->groupBox3->Visible=true;

this->richTextBox1->Visible=false;

this->richTextBox2->Visible=false;

this->button1->Visible=false;

this->radioButton1->Visible=false;

this->radioButton2->Visible=false;

this->radioButton3->Visible=false;

this->radioButton4->Visible=false;

this->label1->Visible=false;

}

private: System::Void richTextBox1_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkClickedEventArgs^ e) {

}

};

}