SaveText.Ru

lll
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Diagnostics;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11.  
  12. namespace final_6
  13. {
  14.     [DebuggerDisplay("{" + nameof(GetDebuggerDisplay) + "(),nq}")]
  15.     public partial class Form1 : Form
  16.     {
  17.         public Form1()
  18.         {
  19.             InitializeComponent();
  20.         }
  21.  
  22.         private void button1_Click(object sender, EventArgs e)
  23.         {
  24.             string p1 = "";
  25.             string p2 = "";
  26.             string p3 = "";
  27.             string p4 = "";
  28.             string p5 = "";
  29.             string p6 = "";
  30.  
  31.             string g1 = "красный";
  32.             string g2 = "синий";
  33.             string g3 = "красный";
  34.             string g4 = "зеленый";
  35.             string g5 = "желтый";
  36.             string g6 = "синий";
  37.  
  38.             string h1 = "синий";
  39.             string h2 = "желтый";
  40.             string h3 = "зеленый";
  41.             string h4 = "красный";
  42.             string h5 = "синий";
  43.             string h6 = "зеленый";
  44.  
  45.             //for (int j, i = 1; i < 36; i++)
  46.              
  47.             label1.Text = g1 + " " + h1 + Environment.NewLine + g1 + " " + h2 + Environment.NewLine + g1 + " " + h3 + Environment.NewLine + g1 + " " + h5 + Environment.NewLine + g1 + " " + h6 + Environment.NewLine + g2 + " " + h2 + Environment.NewLine + g2 + " " + h3 + Environment.NewLine + g2 + " " + h4 + Environment.NewLine + g2 + " " + h6 + Environment.NewLine + g3 + " " + h1 + Environment.NewLine + g3 + " " + h2 + Environment.NewLine + g3 + " " + h3 + Environment.NewLine + g3 + " " + h5 + Environment.NewLine + g3 + " " + h6 + Environment.NewLine + g4 + " " + h1 + Environment.NewLine + g4 + " " + h2 + Environment.NewLine + g4 + " " + h4 + Environment.NewLine + g4 + " " + h6 + Environment.NewLine + g5 + " " + h1 + Environment.NewLine + g5 + " " + h3 + Environment.NewLine + g5 + " " + h4 + Environment.NewLine + g5 + " " + h5 + Environment.NewLine + g5 + " " + h6 + Environment.NewLine + g6 + " " + h2 + Environment.NewLine + g6 + " " + h3 + Environment.NewLine + g6 + " " + h4 + Environment.NewLine + g6 + " " + h6;
  48.            
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.         }
  56.  
  57.         private void Form1_Load(object sender, EventArgs e)
  58.         {
  59.  
  60.         }
  61.  
  62.         private void label1_Click(object sender, EventArgs e)
  63.         {
  64.  
  65.         }
  66.  
  67.  
  68.         private void button2_Click_1(object sender, EventArgs e)
  69.         {
  70.             button2.BackColor = Color.Red;
  71.         }
  72.  
  73.         private void button3_Click(object sender, EventArgs e)
  74.         {
  75.             button3.BackColor = Color.Blue;
  76.         }
  77.  
  78.         private void button4_Click(object sender, EventArgs e)
  79.         {
  80.             button4.BackColor = Color.Red;
  81.         }
  82.  
  83.         private void button5_Click(object sender, EventArgs e)
  84.         {
  85.             button5.BackColor = Color.Yellow;
  86.         }
  87.  
  88.         private void button6_Click(object sender, EventArgs e)
  89.         {
  90.             button6.BackColor = Color.Red;
  91.         }
  92.  
  93.         private void button7_Click(object sender, EventArgs e)
  94.         {
  95.             button7.BackColor = Color.Green;
  96.         }
  97.  
  98.         private void button8_Click(object sender, EventArgs e)
  99.         {
  100.             button8.BackColor = Color.Yellow;
  101.         }
  102.  
  103.         private void Button9_Click(object sender, EventArgs e)
  104.         {
  105.             button9.BackColor = Color.Yellow;
  106.         }
  107.  
  108.         private void Button10_Click(object sender, EventArgs e)
  109.         {
  110.             button10.BackColor = Color.Yellow;
  111.         }
  112.  
  113.         private void Button11_Click(object sender, EventArgs e)
  114.         {
  115.             button11.BackColor = Color.Yellow;
  116.         }
  117.  
  118.         private void Button12_Click(object sender, EventArgs e)
  119.         {
  120.             button12.BackColor = Color.Yellow;
  121.         }
  122.  
  123.         private void Button13_Click(object sender, EventArgs e)
  124.         {
  125.             button13.BackColor = Color.Yellow;
  126.         }
  127.  
  128.         private void Button14_Click(object sender, EventArgs e)
  129.         {
  130.             button14.BackColor = Color.Yellow;
  131.         }
  132.         private void button15_Click(object sender, EventArgs e)
  133.         {
  134.             button15.BackColor = Color.Yellow;
  135.         }
  136.         private void button16_Click(object sender, EventArgs e)
  137.         {
  138.             button16.BackColor = Color.Yellow;
  139.         }
  140.         private void button17_Click(object sender, EventArgs e)
  141.         {
  142.             button17.BackColor = Color.Yellow;
  143.         }
  144.         private void button18_Click(object sender, EventArgs e)
  145.         {
  146.             button18.BackColor = Color.Yellow;
  147.         }
  148.         private void Button19_Click(object sender, EventArgs e)
  149.         {
  150.             button19.BackColor = Color.Yellow;
  151.         }
  152.         private void button20_Click(object sender, EventArgs e)
  153.         {
  154.             button20.BackColor = Color.Yellow;
  155.         }
  156.         private void button21_Click(object sender, EventArgs e)
  157.         {
  158.             button21.BackColor = Color.Yellow;
  159.         }
  160.         private void button22_Click(object sender, EventArgs e)
  161.         {
  162.             button22.BackColor = Color.Yellow;
  163.         }
  164.         private void button23_Click(object sender, EventArgs e)
  165.         {
  166.             button23.BackColor = Color.Yellow;
  167.         }
  168.         private void button24_Click(object sender, EventArgs e)
  169.         {
  170.             button24.BackColor = Color.Yellow;
  171.         }
  172.         private void button25_Click(object sender, EventArgs e)
  173.         {
  174.             button25.BackColor = Color.Yellow;
  175.         }
  176.         private void button26_Click(object sender, EventArgs e)
  177.         {
  178.             button26.BackColor = Color.Yellow;
  179.         }
  180.         private void button27_Click(object sender, EventArgs e)
  181.         {
  182.             button27.BackColor = Color.Yellow;
  183.         }
  184.         private void button28_Click(object sender, EventArgs e)
  185.         {
  186.             button28.BackColor = Color.Yellow;
  187.         }
  188.         private void button29_Click(object sender, EventArgs e)
  189.         {
  190.             button29.BackColor = Color.Yellow;
  191.         }
  192.         private void button30_Click(object sender, EventArgs e)
  193.         {
  194.             button30.BackColor = Color.Yellow;
  195.         }
  196.         private void button31_Click(object sender, EventArgs e)
  197.         {
  198.             button31.BackColor = Color.Yellow;
  199.         }
  200.         private void button32_Click(object sender, EventArgs e)
  201.         {
  202.             button32.BackColor = Color.Yellow;
  203.         }
  204.         private void button33_Click(object sender, EventArgs e)
  205.         {
  206.             button33.BackColor = Color.Yellow;
  207.         }
  208.  
  209.         private string GetDebuggerDisplay()
  210.         {
  211.             return ToString();
  212.         }
  213.     }
  214. }
  215.  

Share with your friends:

Print