123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using System.IO;
- namespace Byzov_Oprosnik
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- FileInfo file = new FileInfo("test");
- }
- const string fileName = "test.txt";
- private void radioButton1_CheckedChanged_1(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label18.Text = radioButton.Text;
- }
- }
- private void radioButton2_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label18.Text = radioButton.Text;
- }
- }
- private void radioButton3_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label18.Text = radioButton.Text;
- }
- }
- private void radioButton4_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label18.Text = radioButton.Text;
- }
- }
- private void radioButton5_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label18.Text = radioButton.Text;
- }
- }
- private void radioButton11_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label20.Text = radioButton.Text;
- }
- }
- private void radioButton12_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label20.Text = radioButton.Text;
- }
- }
- private void radioButton13_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label20.Text = radioButton.Text;
- }
- }
- private void radioButton16_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label21.Text = radioButton.Text;
- }
- }
- private void radioButton15_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label21.Text = radioButton.Text;
- }
- }
- private void radioButton10_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label19.Text = radioButton.Text;
- }
- }
- private void label2_Click(object sender, EventArgs e)
- {
- }
- private void label4_Click(object sender, EventArgs e)
- {
- }
-
- private void label9_Click(object sender, EventArgs e)
- {
- }
- private void label15_Click(object sender, EventArgs e)
- {
- }
- private void groupBox1_Enter(object sender, EventArgs e)
- {
- }
- private void radioButton9_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label19.Text = radioButton.Text;
- }
- }
-
- private void radioButton8_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label19.Text = radioButton.Text;
- }
- }
- private void radioButton7_CheckedChanged(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label19.Text = radioButton.Text;
- }
- }
- private void radioButton6_CheckedChanged_1(object sender, EventArgs e)
- {
- RadioButton radioButton = (RadioButton)sender;
- if (radioButton.Checked)
- {
- label19.Text = radioButton.Text;
- }
- }
- private void button1_Click(object sender, EventArgs e)
- {
-
- string[] lines = { ("Фамилия: " + textBox1.Text+
- "; "+ "Имя: " + textBox2.Text
- + "; " + "Отчество: " + textBox3.Text
- +"; "+ "Учебное заведение: " + textBox4.Text
- +"; "+ "Класс: " + textBox5.Text
- +"; "+ "Мастер-класс, который вы посетели: " + label18.Text
- +"; "+ "Cпециальностью, на которую хотите поступать: " + textBox7.Text
- +"; "+ "Чем привлекает Канский технологический колледж: " + textBox8.Text
- +"; "+ "Ваши увлечения и хобби?: " + textBox9.Text
- +"; "+ "Понравился ли Вам мастер-класс: " + label19.Text
- +"; "+ "Планирует ли поступать в Канский технологический колледж: " + label20.Text
- +"; "+ "Какой из курсов дополнительного образования заинтересовал: " + label22.Text +", "
- + label23.Text+", " + label24.Text+", " + label25.Text +", "
- + label26.Text+", " + label27.Text+", " + label28.Text+", " +"Другое: " + textBox10.Text
- +"; "+ "Какой язык программирования хотел бы изучать: " + label29.Text +", "
- + label30.Text+", " + label31.Text+", " + label32.Text +", "
- + label33.Text+", " + label34.Text+", " + label35.Text+", " + label36.Text+", " + label37.Text+", " + label38.Text+", " +"Другое: " + textBox6.Text
- +"; "+ "Сообщит ли родтителям о желании посещать понравившийся курс: " + label21.Text
- +"; "+ "В какой день недели было бы удобно посещать курс: " + label39.Text +", "
- + label40.Text+", " + label41.Text+", " + label42.Text +", "
- + label43.Text+", " + label44.Text+", " + label45.Text
- )
- };
- System.IO.File.WriteAllLines(@"C:/Users/user2/source/repos/Byzov_Oprosnik/out\test.txt", lines);
- }
- private void checkBox1_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label22.Text = checkBox.Text;
- }
- }
- private void checkBox2_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label23.Text = checkBox.Text;
- }
- }
- private void checkBox3_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label24.Text = checkBox.Text;
- }
- }
- private void checkBox4_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label25.Text = checkBox.Text;
- }
- }
- private void checkBox5_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label26.Text = checkBox.Text;
- }
- }
- private void checkBox6_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label27.Text = checkBox.Text;
- }
- }
- private void checkBox7_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label28.Text = checkBox.Text;
- }
- }
- private void checkBox16_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label29.Text = checkBox.Text;
- }
- }
- private void checkBox15_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label30.Text = checkBox.Text;
- }
- }
- private void checkBox14_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label31.Text = checkBox.Text;
- }
- }
- private void checkBox13_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label32.Text = checkBox.Text;
- }
- }
- private void checkBox12_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label33.Text = checkBox.Text;
- }
- }
- private void checkBox11_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label34.Text = checkBox.Text;
- }
- }
- private void checkBox10_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label35.Text = checkBox.Text;
- }
- }
- private void checkBox20_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label36.Text = checkBox.Text;
- }
- }
- private void checkBox19_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label37.Text = checkBox.Text;
- }
- }
- private void checkBox18_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label38.Text = checkBox.Text;
- }
- }
- private void checkBox30_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label39.Text = checkBox.Text;
- }
- }
- private void checkBox29_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label40.Text = checkBox.Text;
- }
- }
- private void checkBox28_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label41.Text = checkBox.Text;
- }
- }
- private void checkBox27_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label42.Text = checkBox.Text;
- }
- }
- private void checkBox26_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label43.Text = checkBox.Text;
- }
- }
- private void checkBox25_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label44.Text = checkBox.Text;
- }
- }
- private void checkBox24_CheckedChanged(object sender, EventArgs e)
- {
- CheckBox checkBox = (CheckBox)sender;
- if (checkBox.Checked)
- {
- label45.Text = checkBox.Text;
- }
- }
-
- }
- }
|