Form1.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using System.IO;
  11. namespace Byzov_Oprosnik
  12. {
  13. public partial class Form1 : Form
  14. {
  15. public Form1()
  16. {
  17. InitializeComponent();
  18. FileInfo file = new FileInfo("test");
  19. }
  20. const string fileName = "test.txt";
  21. private void radioButton1_CheckedChanged_1(object sender, EventArgs e)
  22. {
  23. RadioButton radioButton = (RadioButton)sender;
  24. if (radioButton.Checked)
  25. {
  26. label18.Text = radioButton.Text;
  27. }
  28. }
  29. private void radioButton2_CheckedChanged(object sender, EventArgs e)
  30. {
  31. RadioButton radioButton = (RadioButton)sender;
  32. if (radioButton.Checked)
  33. {
  34. label18.Text = radioButton.Text;
  35. }
  36. }
  37. private void radioButton3_CheckedChanged(object sender, EventArgs e)
  38. {
  39. RadioButton radioButton = (RadioButton)sender;
  40. if (radioButton.Checked)
  41. {
  42. label18.Text = radioButton.Text;
  43. }
  44. }
  45. private void radioButton4_CheckedChanged(object sender, EventArgs e)
  46. {
  47. RadioButton radioButton = (RadioButton)sender;
  48. if (radioButton.Checked)
  49. {
  50. label18.Text = radioButton.Text;
  51. }
  52. }
  53. private void radioButton5_CheckedChanged(object sender, EventArgs e)
  54. {
  55. RadioButton radioButton = (RadioButton)sender;
  56. if (radioButton.Checked)
  57. {
  58. label18.Text = radioButton.Text;
  59. }
  60. }
  61. private void radioButton11_CheckedChanged(object sender, EventArgs e)
  62. {
  63. RadioButton radioButton = (RadioButton)sender;
  64. if (radioButton.Checked)
  65. {
  66. label20.Text = radioButton.Text;
  67. }
  68. }
  69. private void radioButton12_CheckedChanged(object sender, EventArgs e)
  70. {
  71. RadioButton radioButton = (RadioButton)sender;
  72. if (radioButton.Checked)
  73. {
  74. label20.Text = radioButton.Text;
  75. }
  76. }
  77. private void radioButton13_CheckedChanged(object sender, EventArgs e)
  78. {
  79. RadioButton radioButton = (RadioButton)sender;
  80. if (radioButton.Checked)
  81. {
  82. label20.Text = radioButton.Text;
  83. }
  84. }
  85. private void radioButton16_CheckedChanged(object sender, EventArgs e)
  86. {
  87. RadioButton radioButton = (RadioButton)sender;
  88. if (radioButton.Checked)
  89. {
  90. label21.Text = radioButton.Text;
  91. }
  92. }
  93. private void radioButton15_CheckedChanged(object sender, EventArgs e)
  94. {
  95. RadioButton radioButton = (RadioButton)sender;
  96. if (radioButton.Checked)
  97. {
  98. label21.Text = radioButton.Text;
  99. }
  100. }
  101. private void radioButton10_CheckedChanged(object sender, EventArgs e)
  102. {
  103. RadioButton radioButton = (RadioButton)sender;
  104. if (radioButton.Checked)
  105. {
  106. label19.Text = radioButton.Text;
  107. }
  108. }
  109. private void label2_Click(object sender, EventArgs e)
  110. {
  111. }
  112. private void label4_Click(object sender, EventArgs e)
  113. {
  114. }
  115. private void label9_Click(object sender, EventArgs e)
  116. {
  117. }
  118. private void label15_Click(object sender, EventArgs e)
  119. {
  120. }
  121. private void groupBox1_Enter(object sender, EventArgs e)
  122. {
  123. }
  124. private void radioButton9_CheckedChanged(object sender, EventArgs e)
  125. {
  126. RadioButton radioButton = (RadioButton)sender;
  127. if (radioButton.Checked)
  128. {
  129. label19.Text = radioButton.Text;
  130. }
  131. }
  132. private void radioButton8_CheckedChanged(object sender, EventArgs e)
  133. {
  134. RadioButton radioButton = (RadioButton)sender;
  135. if (radioButton.Checked)
  136. {
  137. label19.Text = radioButton.Text;
  138. }
  139. }
  140. private void radioButton7_CheckedChanged(object sender, EventArgs e)
  141. {
  142. RadioButton radioButton = (RadioButton)sender;
  143. if (radioButton.Checked)
  144. {
  145. label19.Text = radioButton.Text;
  146. }
  147. }
  148. private void radioButton6_CheckedChanged_1(object sender, EventArgs e)
  149. {
  150. RadioButton radioButton = (RadioButton)sender;
  151. if (radioButton.Checked)
  152. {
  153. label19.Text = radioButton.Text;
  154. }
  155. }
  156. private void button1_Click(object sender, EventArgs e)
  157. {
  158. string[] lines = { ("Фамилия: " + textBox1.Text+
  159. "; "+ "Имя: " + textBox2.Text
  160. + "; " + "Отчество: " + textBox3.Text
  161. +"; "+ "Учебное заведение: " + textBox4.Text
  162. +"; "+ "Класс: " + textBox5.Text
  163. +"; "+ "Мастер-класс, который вы посетели: " + label18.Text
  164. +"; "+ "Cпециальностью, на которую хотите поступать: " + textBox7.Text
  165. +"; "+ "Чем привлекает Канский технологический колледж: " + textBox8.Text
  166. +"; "+ "Ваши увлечения и хобби?: " + textBox9.Text
  167. +"; "+ "Понравился ли Вам мастер-класс: " + label19.Text
  168. +"; "+ "Планирует ли поступать в Канский технологический колледж: " + label20.Text
  169. +"; "+ "Какой из курсов дополнительного образования заинтересовал: " + label22.Text +", "
  170. + label23.Text+", " + label24.Text+", " + label25.Text +", "
  171. + label26.Text+", " + label27.Text+", " + label28.Text+", " +"Другое: " + textBox10.Text
  172. +"; "+ "Какой язык программирования хотел бы изучать: " + label29.Text +", "
  173. + label30.Text+", " + label31.Text+", " + label32.Text +", "
  174. + label33.Text+", " + label34.Text+", " + label35.Text+", " + label36.Text+", " + label37.Text+", " + label38.Text+", " +"Другое: " + textBox6.Text
  175. +"; "+ "Сообщит ли родтителям о желании посещать понравившийся курс: " + label21.Text
  176. +"; "+ "В какой день недели было бы удобно посещать курс: " + label39.Text +", "
  177. + label40.Text+", " + label41.Text+", " + label42.Text +", "
  178. + label43.Text+", " + label44.Text+", " + label45.Text
  179. )
  180. };
  181. System.IO.File.WriteAllLines(@"C:/Users/user2/source/repos/Byzov_Oprosnik/out\test.txt", lines);
  182. }
  183. private void checkBox1_CheckedChanged(object sender, EventArgs e)
  184. {
  185. CheckBox checkBox = (CheckBox)sender;
  186. if (checkBox.Checked)
  187. {
  188. label22.Text = checkBox.Text;
  189. }
  190. }
  191. private void checkBox2_CheckedChanged(object sender, EventArgs e)
  192. {
  193. CheckBox checkBox = (CheckBox)sender;
  194. if (checkBox.Checked)
  195. {
  196. label23.Text = checkBox.Text;
  197. }
  198. }
  199. private void checkBox3_CheckedChanged(object sender, EventArgs e)
  200. {
  201. CheckBox checkBox = (CheckBox)sender;
  202. if (checkBox.Checked)
  203. {
  204. label24.Text = checkBox.Text;
  205. }
  206. }
  207. private void checkBox4_CheckedChanged(object sender, EventArgs e)
  208. {
  209. CheckBox checkBox = (CheckBox)sender;
  210. if (checkBox.Checked)
  211. {
  212. label25.Text = checkBox.Text;
  213. }
  214. }
  215. private void checkBox5_CheckedChanged(object sender, EventArgs e)
  216. {
  217. CheckBox checkBox = (CheckBox)sender;
  218. if (checkBox.Checked)
  219. {
  220. label26.Text = checkBox.Text;
  221. }
  222. }
  223. private void checkBox6_CheckedChanged(object sender, EventArgs e)
  224. {
  225. CheckBox checkBox = (CheckBox)sender;
  226. if (checkBox.Checked)
  227. {
  228. label27.Text = checkBox.Text;
  229. }
  230. }
  231. private void checkBox7_CheckedChanged(object sender, EventArgs e)
  232. {
  233. CheckBox checkBox = (CheckBox)sender;
  234. if (checkBox.Checked)
  235. {
  236. label28.Text = checkBox.Text;
  237. }
  238. }
  239. private void checkBox16_CheckedChanged(object sender, EventArgs e)
  240. {
  241. CheckBox checkBox = (CheckBox)sender;
  242. if (checkBox.Checked)
  243. {
  244. label29.Text = checkBox.Text;
  245. }
  246. }
  247. private void checkBox15_CheckedChanged(object sender, EventArgs e)
  248. {
  249. CheckBox checkBox = (CheckBox)sender;
  250. if (checkBox.Checked)
  251. {
  252. label30.Text = checkBox.Text;
  253. }
  254. }
  255. private void checkBox14_CheckedChanged(object sender, EventArgs e)
  256. {
  257. CheckBox checkBox = (CheckBox)sender;
  258. if (checkBox.Checked)
  259. {
  260. label31.Text = checkBox.Text;
  261. }
  262. }
  263. private void checkBox13_CheckedChanged(object sender, EventArgs e)
  264. {
  265. CheckBox checkBox = (CheckBox)sender;
  266. if (checkBox.Checked)
  267. {
  268. label32.Text = checkBox.Text;
  269. }
  270. }
  271. private void checkBox12_CheckedChanged(object sender, EventArgs e)
  272. {
  273. CheckBox checkBox = (CheckBox)sender;
  274. if (checkBox.Checked)
  275. {
  276. label33.Text = checkBox.Text;
  277. }
  278. }
  279. private void checkBox11_CheckedChanged(object sender, EventArgs e)
  280. {
  281. CheckBox checkBox = (CheckBox)sender;
  282. if (checkBox.Checked)
  283. {
  284. label34.Text = checkBox.Text;
  285. }
  286. }
  287. private void checkBox10_CheckedChanged(object sender, EventArgs e)
  288. {
  289. CheckBox checkBox = (CheckBox)sender;
  290. if (checkBox.Checked)
  291. {
  292. label35.Text = checkBox.Text;
  293. }
  294. }
  295. private void checkBox20_CheckedChanged(object sender, EventArgs e)
  296. {
  297. CheckBox checkBox = (CheckBox)sender;
  298. if (checkBox.Checked)
  299. {
  300. label36.Text = checkBox.Text;
  301. }
  302. }
  303. private void checkBox19_CheckedChanged(object sender, EventArgs e)
  304. {
  305. CheckBox checkBox = (CheckBox)sender;
  306. if (checkBox.Checked)
  307. {
  308. label37.Text = checkBox.Text;
  309. }
  310. }
  311. private void checkBox18_CheckedChanged(object sender, EventArgs e)
  312. {
  313. CheckBox checkBox = (CheckBox)sender;
  314. if (checkBox.Checked)
  315. {
  316. label38.Text = checkBox.Text;
  317. }
  318. }
  319. private void checkBox30_CheckedChanged(object sender, EventArgs e)
  320. {
  321. CheckBox checkBox = (CheckBox)sender;
  322. if (checkBox.Checked)
  323. {
  324. label39.Text = checkBox.Text;
  325. }
  326. }
  327. private void checkBox29_CheckedChanged(object sender, EventArgs e)
  328. {
  329. CheckBox checkBox = (CheckBox)sender;
  330. if (checkBox.Checked)
  331. {
  332. label40.Text = checkBox.Text;
  333. }
  334. }
  335. private void checkBox28_CheckedChanged(object sender, EventArgs e)
  336. {
  337. CheckBox checkBox = (CheckBox)sender;
  338. if (checkBox.Checked)
  339. {
  340. label41.Text = checkBox.Text;
  341. }
  342. }
  343. private void checkBox27_CheckedChanged(object sender, EventArgs e)
  344. {
  345. CheckBox checkBox = (CheckBox)sender;
  346. if (checkBox.Checked)
  347. {
  348. label42.Text = checkBox.Text;
  349. }
  350. }
  351. private void checkBox26_CheckedChanged(object sender, EventArgs e)
  352. {
  353. CheckBox checkBox = (CheckBox)sender;
  354. if (checkBox.Checked)
  355. {
  356. label43.Text = checkBox.Text;
  357. }
  358. }
  359. private void checkBox25_CheckedChanged(object sender, EventArgs e)
  360. {
  361. CheckBox checkBox = (CheckBox)sender;
  362. if (checkBox.Checked)
  363. {
  364. label44.Text = checkBox.Text;
  365. }
  366. }
  367. private void checkBox24_CheckedChanged(object sender, EventArgs e)
  368. {
  369. CheckBox checkBox = (CheckBox)sender;
  370. if (checkBox.Checked)
  371. {
  372. label45.Text = checkBox.Text;
  373. }
  374. }
  375. }
  376. }