RenzCutie

TestEwan

Oct 20th, 2021
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 31.94 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Forms;
  7. using System.Drawing;
  8.  
  9. namespace MP_LEVEL
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.             Form windowMenu = new Form();
  16.             windowMenu.WindowState = FormWindowState.Normal;
  17.             windowMenu.StartPosition = FormStartPosition.CenterScreen;
  18.             windowMenu.AutoSize = true;
  19.             windowMenu.Text = "Games Level";
  20.  
  21.             Button easy = new Button();
  22.             easy.Text = "Easy";
  23.             easy.Location = new Point(100, 50);
  24.             Level easyButton = new Level();
  25.             easy.Click += new EventHandler(easyButton.EasyButtonClick);
  26.             easy.Parent = windowMenu;
  27.  
  28.             Button average = new Button();
  29.             average.Text = "Average";
  30.             average.Location = new Point(100, 100);
  31.             average.Parent = windowMenu;
  32.             Level averageButton = new Level();
  33.             average.Click += new EventHandler(averageButton.AverageButtonClick);
  34.  
  35.             Button difficult = new Button();
  36.             difficult.Text = "Difficult";
  37.             difficult.Location = new Point(100, 150);
  38.             difficult.Parent = windowMenu;
  39.             Level difficultButton = new Level();
  40.             difficult.Click += new EventHandler(difficultButton.DifficultButtonClick);
  41.             windowMenu.ShowDialog();
  42.         }
  43.     }
  44.  
  45.     class Level : Form
  46.     {
  47.         private Form windowLevel = new Form();
  48.         private void EasyLevel()
  49.         {
  50.             windowLevel.WindowState = FormWindowState.Normal;
  51.             windowLevel.StartPosition = FormStartPosition.CenterScreen;
  52.             windowLevel.AutoSize = true;
  53.             windowLevel.Text = "Easy Level";
  54.  
  55.         }
  56.         public void EasyButtonClick(object sender, EventArgs e)
  57.         {
  58.             LevelBox Box = new LevelBox();
  59.             Box.DisplayEasyLevel();
  60.             EasyLevel();
  61.         }
  62.  
  63.         private void AverageLevel()
  64.         {
  65.             windowLevel.WindowState = FormWindowState.Normal;
  66.             windowLevel.StartPosition = FormStartPosition.CenterScreen;
  67.             windowLevel.AutoSize = true;
  68.             windowLevel.Text = "Average Level";
  69.         }
  70.         public void AverageButtonClick(object sender, EventArgs e)
  71.         {
  72.             LevelBox Box = new LevelBox();
  73.             Box.DisplayAverageLevel();
  74.             AverageLevel();
  75.         }
  76.         private void DifficultLevel()
  77.         {
  78.             windowLevel.WindowState = FormWindowState.Normal;
  79.             windowLevel.StartPosition = FormStartPosition.CenterScreen;
  80.             windowLevel.AutoSize = true;
  81.             windowLevel.Text = "Difficult Level";
  82.         }
  83.         public void DifficultButtonClick(object sender, EventArgs e)
  84.         {
  85.             LevelBox Box = new LevelBox();
  86.             Box.DisplayDifficultLevel();
  87.             DifficultLevel();
  88.         }
  89.         private void ContinueButtonClick(object sender, EventArgs e)
  90.         {
  91.             windowLevel.Close();
  92.         }
  93.     }
  94.  
  95.     class LevelBox : Form
  96.     {
  97.         private Form windowLevelBox = new Form();
  98.         public void DisplayEasyLevel()
  99.         {
  100.             // -------- FIRST ROW BUTTONS ----------
  101.             Button button1 = new Button();
  102.             button1.BackColor = Color.LightGray;
  103.             button1.Text = "";
  104.             button1.Location = new Point(6, 5);
  105.             button1.Size = new Size(100, 80);
  106.             button1.Parent = windowLevelBox;
  107.  
  108.             Button button2 = new Button();
  109.             button2.BackColor = Color.LightGray;
  110.             button2.Text = "";
  111.             button2.Location = new Point(110, 5);
  112.             button2.Size = new Size(100, 80);
  113.             button2.Parent = windowLevelBox;
  114.  
  115.             Button button3 = new Button();
  116.             button3.BackColor = Color.LightGray;
  117.             button3.Text = "";
  118.             button3.Location = new Point(214, 5);
  119.             button3.Size = new Size(100, 80);
  120.             button3.Parent = windowLevelBox;
  121.  
  122.             // ------- SECOND ROW BUTTONS ----------
  123.             Button button4 = new Button();
  124.             button4.BackColor = Color.LightGray;
  125.             button4.Text = "";
  126.             button4.Location = new Point(6, 90);
  127.             button4.Size = new Size(100, 80);
  128.             button4.Parent = windowLevelBox;
  129.  
  130.             Button button5 = new Button();
  131.             button5.BackColor = Color.LightGray;
  132.             button5.Text = "";
  133.             button5.Location = new Point(110, 90);
  134.             button5.Size = new Size(100, 80);
  135.             button5.Parent = windowLevelBox;
  136.  
  137.             Button button6 = new Button();
  138.             button6.BackColor = Color.LightGray;
  139.             button6.Text = "";
  140.             button6.Location = new Point(214, 90);
  141.             button6.Size = new Size(100, 80);
  142.             button6.Parent = windowLevelBox;
  143.  
  144.             // ------- LAST ROW BUTTONS ---------
  145.             Button button7 = new Button();
  146.             button7.BackColor = Color.LightGray;
  147.             button7.Text = "";
  148.             button7.Location = new Point(6, 175);
  149.             button7.Size = new Size(100, 80);
  150.             button7.Parent = windowLevelBox;
  151.  
  152.             Button button8 = new Button();
  153.             button8.BackColor = Color.LightGray;
  154.             button8.Text = "";
  155.             button8.Location = new Point(110, 175);
  156.             button8.Size = new Size(100, 80);
  157.             button8.Parent = windowLevelBox;
  158.  
  159.             Button button9 = new Button();
  160.             button9.BackColor = Color.LightGray;
  161.             button9.Text = "";
  162.             button9.Location = new Point(214, 175);
  163.             button9.Size = new Size(100, 80);
  164.             button9.Parent = windowLevelBox;
  165.  
  166.             windowLevelBox.WindowState = FormWindowState.Normal;
  167.             windowLevelBox.StartPosition = FormStartPosition.CenterScreen;
  168.             windowLevelBox.AutoSize = true;
  169.             windowLevelBox.Text = "Easy Level";
  170.  
  171.             windowLevelBox.ShowDialog();
  172.         }
  173.         public void EasyLevelBoxButtonClick(object sender, EventArgs e)
  174.         {
  175.             windowLevelBox.Close();
  176.         }
  177.  
  178.         public void DisplayAverageLevel()
  179.         {
  180.             // -------- FIRST ROW BUTTONS ----------
  181.             Button button1 = new Button();
  182.             button1.BackColor = Color.LightGray;
  183.             button1.Text = "";
  184.             button1.Location = new Point(6, 5);
  185.             button1.Size = new Size(90, 80);
  186.             button1.Parent = windowLevelBox;
  187.  
  188.             Button button2 = new Button();
  189.             button2.BackColor = Color.LightGray;
  190.             button2.Text = "";
  191.             button2.Location = new Point(99, 5);
  192.             button2.Size = new Size(90, 80);
  193.             button2.Parent = windowLevelBox;
  194.  
  195.             Button button3 = new Button();
  196.             button3.BackColor = Color.LightGray;
  197.             button3.Text = "";
  198.             button3.Location = new Point(192, 5);
  199.             button3.Size = new Size(90, 80);
  200.             button3.Parent = windowLevelBox;
  201.  
  202.             Button button4 = new Button();
  203.             button4.BackColor = Color.LightGray;
  204.             button4.Text = "";
  205.             button4.Location = new Point(285, 5);
  206.             button4.Size = new Size(90, 80);
  207.             button4.Parent = windowLevelBox;
  208.  
  209.             Button button5 = new Button();
  210.             button5.BackColor = Color.LightGray;
  211.             button5.Text = "";
  212.             button5.Location = new Point(378, 5);
  213.             button5.Size = new Size(90, 80);
  214.             button5.Parent = windowLevelBox;
  215.  
  216.             // -------- SECOND ROW BUTTONS ----------
  217.             Button button6 = new Button();
  218.             button6.BackColor = Color.LightGray;
  219.             button6.Text = "";
  220.             button6.Location = new Point(6, 88);
  221.             button6.Size = new Size(90, 80);
  222.             button6.Parent = windowLevelBox;
  223.  
  224.             Button button7 = new Button();
  225.             button7.BackColor = Color.LightGray;
  226.             button7.Text = "";
  227.             button7.Location = new Point(99, 88);
  228.             button7.Size = new Size(90, 80);
  229.             button7.Parent = windowLevelBox;
  230.  
  231.             Button button8 = new Button();
  232.             button8.BackColor = Color.LightGray;
  233.             button8.Text = "";
  234.             button8.Location = new Point(192, 88);
  235.             button8.Size = new Size(90, 80);
  236.             button8.Parent = windowLevelBox;
  237.  
  238.             Button button9 = new Button();
  239.             button9.BackColor = Color.LightGray;
  240.             button9.Text = "";
  241.             button9.Location = new Point(285, 88);
  242.             button9.Size = new Size(90, 80);
  243.             button9.Parent = windowLevelBox;
  244.  
  245.             Button button10 = new Button();
  246.             button10.BackColor = Color.LightGray;
  247.             button10.Text = "";
  248.             button10.Location = new Point(378, 88);
  249.             button10.Size = new Size(90, 80);
  250.             button10.Parent = windowLevelBox;
  251.  
  252.             // -------- THIRD ROW BUTTONS ----------
  253.             Button button11 = new Button();
  254.             button11.BackColor = Color.LightGray;
  255.             button11.Text = "";
  256.             button11.Location = new Point(6, 171);
  257.             button11.Size = new Size(90, 80);
  258.             button11.Parent = windowLevelBox;
  259.  
  260.             Button button12 = new Button();
  261.             button12.BackColor = Color.LightGray;
  262.             button12.Text = "";
  263.             button12.Location = new Point(99, 171);
  264.             button12.Size = new Size(90, 80);
  265.             button12.Parent = windowLevelBox;
  266.  
  267.             Button button13 = new Button();
  268.             button13.BackColor = Color.LightGray;
  269.             button13.Text = "";
  270.             button13.Location = new Point(192, 171);
  271.             button13.Size = new Size(90, 80);
  272.             button13.Parent = windowLevelBox;
  273.  
  274.             Button button14 = new Button();
  275.             button14.BackColor = Color.LightGray;
  276.             button14.Text = "";
  277.             button14.Location = new Point(285, 171);
  278.             button14.Size = new Size(90, 80);
  279.             button14.Parent = windowLevelBox;
  280.  
  281.             Button button15 = new Button();
  282.             button15.BackColor = Color.LightGray;
  283.             button15.Text = "";
  284.             button15.Location = new Point(378, 171);
  285.             button15.Size = new Size(90, 80);
  286.             button15.Parent = windowLevelBox;
  287.  
  288.             // -------- FOURTH ROW BUTTONS ----------
  289.             Button button16 = new Button();
  290.             button16.BackColor = Color.LightGray;
  291.             button16.Text = "";
  292.             button16.Location = new Point(6, 254);
  293.             button16.Size = new Size(90, 80);
  294.             button16.Parent = windowLevelBox;
  295.  
  296.             Button button17 = new Button();
  297.             button17.BackColor = Color.LightGray;
  298.             button17.Text = "";
  299.             button17.Location = new Point(99, 254);
  300.             button17.Size = new Size(90, 80);
  301.             button17.Parent = windowLevelBox;
  302.  
  303.             Button button18 = new Button();
  304.             button18.BackColor = Color.LightGray;
  305.             button18.Text = "";
  306.             button18.Location = new Point(192, 254);
  307.             button18.Size = new Size(90, 80);
  308.             button18.Parent = windowLevelBox;
  309.  
  310.             Button button19 = new Button();
  311.             button19.BackColor = Color.LightGray;
  312.             button19.Text = "";
  313.             button19.Location = new Point(285, 254);
  314.             button19.Size = new Size(90, 80);
  315.             button19.Parent = windowLevelBox;
  316.  
  317.             Button button20 = new Button();
  318.             button20.BackColor = Color.LightGray;
  319.             button20.Text = "";
  320.             button20.Location = new Point(378, 254);
  321.             button20.Size = new Size(90, 80);
  322.             button20.Parent = windowLevelBox;
  323.  
  324.             // -------- LAST ROW BUTTONS ----------
  325.             Button button21 = new Button();
  326.             button21.BackColor = Color.LightGray;
  327.             button21.Text = "";
  328.             button21.Location = new Point(6, 337);
  329.             button21.Size = new Size(90, 80);
  330.             button21.Parent = windowLevelBox;
  331.  
  332.             Button button22 = new Button();
  333.             button22.BackColor = Color.LightGray;
  334.             button22.Text = "";
  335.             button22.Location = new Point(99, 337);
  336.             button22.Size = new Size(90, 80);
  337.             button22.Parent = windowLevelBox;
  338.  
  339.             Button button23 = new Button();
  340.             button23.BackColor = Color.LightGray;
  341.             button23.Text = "";
  342.             button23.Location = new Point(192, 337);
  343.             button23.Size = new Size(90, 80);
  344.             button23.Parent = windowLevelBox;
  345.  
  346.             Button button24 = new Button();
  347.             button24.BackColor = Color.LightGray;
  348.             button24.Text = "";
  349.             button24.Location = new Point(285, 337);
  350.             button24.Size = new Size(90, 80);
  351.             button24.Parent = windowLevelBox;
  352.  
  353.             Button button25 = new Button();
  354.             button25.BackColor = Color.LightGray;
  355.             button25.Text = "";
  356.             button25.Location = new Point(378, 337);
  357.             button25.Size = new Size(90, 80);
  358.             button25.Parent = windowLevelBox;
  359.  
  360.  
  361.             windowLevelBox.WindowState = FormWindowState.Normal;
  362.             windowLevelBox.StartPosition = FormStartPosition.CenterScreen;
  363.             windowLevelBox.AutoSize = true;
  364.             windowLevelBox.Text = "Average Level";
  365.  
  366.             windowLevelBox.ShowDialog();
  367.  
  368.         }
  369.         public void AverageLevelBoxButtonClick(object sender, EventArgs e)
  370.         {
  371.             windowLevelBox.Close();
  372.         }
  373.  
  374.         public void DisplayDifficultLevel()
  375.         {
  376.             // -------- FIRST ROW BUTTONS ----------
  377.             Button button1 = new Button();
  378.             button1.BackColor = Color.LightGray;
  379.             button1.Text = "";
  380.             button1.Location = new Point(5, 5);
  381.             button1.Size = new Size(80, 80);
  382.             button1.Parent = windowLevelBox;
  383.  
  384.             Button button2 = new Button();
  385.             button2.BackColor = Color.LightGray;
  386.             button2.Text = "";
  387.             button2.Location = new Point(88, 5);
  388.             button2.Size = new Size(80, 80);
  389.             button2.Parent = windowLevelBox;
  390.  
  391.             Button button3 = new Button();
  392.             button3.BackColor = Color.LightGray;
  393.             button3.Text = "";
  394.             button3.Location = new Point(171, 5);
  395.             button3.Size = new Size(80, 80);
  396.             button3.Parent = windowLevelBox;
  397.  
  398.             Button button4 = new Button();
  399.             button4.BackColor = Color.LightGray;
  400.             button4.Text = "";
  401.             button4.Location = new Point(254, 5);
  402.             button4.Size = new Size(80, 80);
  403.             button4.Parent = windowLevelBox;
  404.  
  405.             Button button5 = new Button();
  406.             button5.BackColor = Color.LightGray;
  407.             button5.Text = "";
  408.             button5.Location = new Point(337, 5);
  409.             button5.Size = new Size(80, 80);
  410.             button5.Parent = windowLevelBox;
  411.  
  412.             Button button6 = new Button();
  413.             button6.BackColor = Color.LightGray;
  414.             button6.Text = "";
  415.             button6.Location = new Point(420, 5);
  416.             button6.Size = new Size(80, 80);
  417.             button6.Parent = windowLevelBox;
  418.  
  419.             Button button7 = new Button();
  420.             button7.BackColor = Color.LightGray;
  421.             button7.Text = "";
  422.             button7.Location = new Point(503, 5);
  423.             button7.Size = new Size(80, 80);
  424.             button7.Parent = windowLevelBox;
  425.  
  426.             Button button8 = new Button();
  427.             button8.BackColor = Color.LightGray;
  428.             button8.Text = "";
  429.             button8.Location = new Point(586, 5);
  430.             button8.Size = new Size(80, 80);
  431.             button8.Parent = windowLevelBox;
  432.  
  433.             // -------- SECOND ROW BUTTONS ----------
  434.             Button button9 = new Button();
  435.             button9.BackColor = Color.LightGray;
  436.             button9.Text = "";
  437.             button9.Location = new Point(5, 88);
  438.             button9.Size = new Size(80, 80);
  439.             button9.Parent = windowLevelBox;
  440.  
  441.             Button button10 = new Button();
  442.             button10.BackColor = Color.LightGray;
  443.             button10.Text = "";
  444.             button10.Location = new Point(88, 88);
  445.             button10.Size = new Size(80, 80);
  446.             button10.Parent = windowLevelBox;
  447.  
  448.             Button button11 = new Button();
  449.             button11.BackColor = Color.LightGray;
  450.             button11.Text = "";
  451.             button11.Location = new Point(171, 88);
  452.             button11.Size = new Size(80, 80);
  453.             button11.Parent = windowLevelBox;
  454.  
  455.             Button button12 = new Button();
  456.             button12.BackColor = Color.LightGray;
  457.             button12.Text = "";
  458.             button12.Location = new Point(254, 88);
  459.             button12.Size = new Size(80, 80);
  460.             button12.Parent = windowLevelBox;
  461.  
  462.             Button button13 = new Button();
  463.             button13.BackColor = Color.LightGray;
  464.             button13.Text = "";
  465.             button13.Location = new Point(337, 88);
  466.             button13.Size = new Size(80, 80);
  467.             button13.Parent = windowLevelBox;
  468.  
  469.             Button button14 = new Button();
  470.             button14.BackColor = Color.LightGray;
  471.             button14.Text = "";
  472.             button14.Location = new Point(420, 88);
  473.             button14.Size = new Size(80, 80);
  474.             button14.Parent = windowLevelBox;
  475.  
  476.             Button button15 = new Button();
  477.             button15.BackColor = Color.LightGray;
  478.             button15.Text = "";
  479.             button15.Location = new Point(503, 88);
  480.             button15.Size = new Size(80, 80);
  481.             button15.Parent = windowLevelBox;
  482.  
  483.             Button button16 = new Button();
  484.             button16.BackColor = Color.LightGray;
  485.             button16.Text = "";
  486.             button16.Location = new Point(586, 88);
  487.             button16.Size = new Size(80, 80);
  488.             button16.Parent = windowLevelBox;
  489.  
  490.             // -------- THIRD ROW BUTTONS ----------
  491.             Button button17 = new Button();
  492.             button17.BackColor = Color.LightGray;
  493.             button17.Text = "";
  494.             button17.Location = new Point(5, 171);
  495.             button17.Size = new Size(80, 80);
  496.             button17.Parent = windowLevelBox;
  497.  
  498.             Button button18 = new Button();
  499.             button18.BackColor = Color.LightGray;
  500.             button18.Text = "";
  501.             button18.Location = new Point(88, 171);
  502.             button18.Size = new Size(80, 80);
  503.             button18.Parent = windowLevelBox;
  504.  
  505.             Button button19 = new Button();
  506.             button19.BackColor = Color.LightGray;
  507.             button19.Text = "";
  508.             button19.Location = new Point(171, 171);
  509.             button19.Size = new Size(80, 80);
  510.             button19.Parent = windowLevelBox;
  511.  
  512.             Button button20 = new Button();
  513.             button20.BackColor = Color.LightGray;
  514.             button20.Text = "";
  515.             button20.Location = new Point(254, 171);
  516.             button20.Size = new Size(80, 80);
  517.             button20.Parent = windowLevelBox;
  518.  
  519.             Button button21 = new Button();
  520.             button21.BackColor = Color.LightGray;
  521.             button21.Text = "";
  522.             button21.Location = new Point(337, 171);
  523.             button21.Size = new Size(80, 80);
  524.             button21.Parent = windowLevelBox;
  525.  
  526.             Button button22 = new Button();
  527.             button22.BackColor = Color.LightGray;
  528.             button22.Text = "";
  529.             button22.Location = new Point(420, 171);
  530.             button22.Size = new Size(80, 80);
  531.             button22.Parent = windowLevelBox;
  532.  
  533.             Button button23 = new Button();
  534.             button23.BackColor = Color.LightGray;
  535.             button23.Text = "";
  536.             button23.Location = new Point(503, 171);
  537.             button23.Size = new Size(80, 80);
  538.             button23.Parent = windowLevelBox;
  539.  
  540.             Button button24 = new Button();
  541.             button24.BackColor = Color.LightGray;
  542.             button24.Text = "";
  543.             button24.Location = new Point(586, 171);
  544.             button24.Size = new Size(80, 80);
  545.             button24.Parent = windowLevelBox;
  546.  
  547.             // -------- FOURTH ROW BUTTONS ----------
  548.             Button button25 = new Button();
  549.             button25.BackColor = Color.LightGray;
  550.             button25.Text = "";
  551.             button25.Location = new Point(5, 254);
  552.             button25.Size = new Size(80, 80);
  553.             button25.Parent = windowLevelBox;
  554.  
  555.             Button button26 = new Button();
  556.             button26.BackColor = Color.LightGray;
  557.             button26.Text = "";
  558.             button26.Location = new Point(88, 254);
  559.             button26.Size = new Size(80, 80);
  560.             button26.Parent = windowLevelBox;
  561.  
  562.             Button button27 = new Button();
  563.             button27.BackColor = Color.LightGray;
  564.             button27.Text = "";
  565.             button27.Location = new Point(171, 254);
  566.             button27.Size = new Size(80, 80);
  567.             button27.Parent = windowLevelBox;
  568.  
  569.             Button button28 = new Button();
  570.             button28.BackColor = Color.LightGray;
  571.             button28.Text = "";
  572.             button28.Location = new Point(254, 254);
  573.             button28.Size = new Size(80, 80);
  574.             button28.Parent = windowLevelBox;
  575.  
  576.             Button button29 = new Button();
  577.             button29.BackColor = Color.LightGray;
  578.             button29.Text = "";
  579.             button29.Location = new Point(337, 254);
  580.             button29.Size = new Size(80, 80);
  581.             button29.Parent = windowLevelBox;
  582.  
  583.             Button button30 = new Button();
  584.             button30.BackColor = Color.LightGray;
  585.             button30.Text = "";
  586.             button30.Location = new Point(420, 254);
  587.             button30.Size = new Size(80, 80);
  588.             button30.Parent = windowLevelBox;
  589.  
  590.             Button button31 = new Button();
  591.             button31.BackColor = Color.LightGray;
  592.             button31.Text = "";
  593.             button31.Location = new Point(503, 254);
  594.             button31.Size = new Size(80, 80);
  595.             button31.Parent = windowLevelBox;
  596.  
  597.             Button button32 = new Button();
  598.             button32.BackColor = Color.LightGray;
  599.             button32.Text = "";
  600.             button32.Location = new Point(586, 254);
  601.             button32.Size = new Size(80, 80);
  602.             button32.Parent = windowLevelBox;
  603.  
  604.             // -------- FIFTH ROW BUTTONS ----------
  605.             Button button33 = new Button();
  606.             button33.BackColor = Color.LightGray;
  607.             button33.Text = "";
  608.             button33.Location = new Point(5, 337);
  609.             button33.Size = new Size(80, 80);
  610.             button33.Parent = windowLevelBox;
  611.  
  612.             Button button34 = new Button();
  613.             button34.BackColor = Color.LightGray;
  614.             button34.Text = "";
  615.             button34.Location = new Point(88, 337);
  616.             button34.Size = new Size(80, 80);
  617.             button34.Parent = windowLevelBox;
  618.  
  619.             Button button35 = new Button();
  620.             button35.BackColor = Color.LightGray;
  621.             button35.Text = "";
  622.             button35.Location = new Point(171, 337);
  623.             button35.Size = new Size(80, 80);
  624.             button35.Parent = windowLevelBox;
  625.  
  626.             Button button36 = new Button();
  627.             button36.BackColor = Color.LightGray;
  628.             button36.Text = "";
  629.             button36.Location = new Point(254, 337);
  630.             button36.Size = new Size(80, 80);
  631.             button36.Parent = windowLevelBox;
  632.  
  633.             Button button37 = new Button();
  634.             button37.BackColor = Color.LightGray;
  635.             button37.Text = "";
  636.             button37.Location = new Point(337, 337);
  637.             button37.Size = new Size(80, 80);
  638.             button37.Parent = windowLevelBox;
  639.  
  640.             Button button38 = new Button();
  641.             button38.BackColor = Color.LightGray;
  642.             button38.Text = "";
  643.             button38.Location = new Point(420, 337);
  644.             button38.Size = new Size(80, 80);
  645.             button38.Parent = windowLevelBox;
  646.  
  647.             Button button39 = new Button();
  648.             button39.BackColor = Color.LightGray;
  649.             button39.Text = "";
  650.             button39.Location = new Point(503, 337);
  651.             button39.Size = new Size(80, 80);
  652.             button39.Parent = windowLevelBox;
  653.  
  654.             Button button40 = new Button();
  655.             button40.BackColor = Color.LightGray;
  656.             button40.Text = "";
  657.             button40.Location = new Point(586, 337);
  658.             button40.Size = new Size(80, 80);
  659.             button40.Parent = windowLevelBox;
  660.  
  661.             // -------- SIXTH ROW BUTTONS ----------
  662.             Button button41 = new Button();
  663.             button41.BackColor = Color.LightGray;
  664.             button41.Text = "";
  665.             button41.Location = new Point(5, 420);
  666.             button41.Size = new Size(80, 80);
  667.             button41.Parent = windowLevelBox;
  668.  
  669.             Button button42 = new Button();
  670.             button42.BackColor = Color.LightGray;
  671.             button42.Text = "";
  672.             button42.Location = new Point(88, 420);
  673.             button42.Size = new Size(80, 80);
  674.             button42.Parent = windowLevelBox;
  675.  
  676.             Button button43 = new Button();
  677.             button43.BackColor = Color.LightGray;
  678.             button43.Text = "";
  679.             button43.Location = new Point(171, 420);
  680.             button43.Size = new Size(80, 80);
  681.             button43.Parent = windowLevelBox;
  682.  
  683.             Button button44 = new Button();
  684.             button44.BackColor = Color.LightGray;
  685.             button44.Text = "";
  686.             button44.Location = new Point(254, 420);
  687.             button44.Size = new Size(80, 80);
  688.             button44.Parent = windowLevelBox;
  689.  
  690.             Button button45 = new Button();
  691.             button45.BackColor = Color.LightGray;
  692.             button45.Text = "";
  693.             button45.Location = new Point(337, 420);
  694.             button45.Size = new Size(80, 80);
  695.             button45.Parent = windowLevelBox;
  696.  
  697.             Button button46 = new Button();
  698.             button46.BackColor = Color.LightGray;
  699.             button46.Text = "";
  700.             button46.Location = new Point(420, 420);
  701.             button46.Size = new Size(80, 80);
  702.             button46.Parent = windowLevelBox;
  703.  
  704.             Button button47 = new Button();
  705.             button47.BackColor = Color.LightGray;
  706.             button47.Text = "";
  707.             button47.Location = new Point(503, 420);
  708.             button47.Size = new Size(80, 80);
  709.             button47.Parent = windowLevelBox;
  710.  
  711.             Button button48 = new Button();
  712.             button48.BackColor = Color.LightGray;
  713.             button48.Text = "";
  714.             button48.Location = new Point(586, 420);
  715.             button48.Size = new Size(80, 80);
  716.             button48.Parent = windowLevelBox;
  717.  
  718.             // -------- SEVENTH ROW BUTTONS ----------
  719.             Button button49 = new Button();
  720.             button49.BackColor = Color.LightGray;
  721.             button49.Text = "";
  722.             button49.Location = new Point(5, 503);
  723.             button49.Size = new Size(80, 80);
  724.             button49.Parent = windowLevelBox;
  725.  
  726.             Button button50 = new Button();
  727.             button50.BackColor = Color.LightGray;
  728.             button50.Text = "";
  729.             button50.Location = new Point(88, 503);
  730.             button50.Size = new Size(80, 80);
  731.             button50.Parent = windowLevelBox;
  732.  
  733.             Button button51 = new Button();
  734.             button51.BackColor = Color.LightGray;
  735.             button51.Text = "";
  736.             button51.Location = new Point(171, 503);
  737.             button51.Size = new Size(80, 80);
  738.             button51.Parent = windowLevelBox;
  739.  
  740.             Button button52 = new Button();
  741.             button52.BackColor = Color.LightGray;
  742.             button52.Text = "";
  743.             button52.Location = new Point(254, 503);
  744.             button52.Size = new Size(80, 80);
  745.             button52.Parent = windowLevelBox;
  746.  
  747.             Button button53 = new Button();
  748.             button53.BackColor = Color.LightGray;
  749.             button53.Text = "";
  750.             button53.Location = new Point(337, 503);
  751.             button53.Size = new Size(80, 80);
  752.             button53.Parent = windowLevelBox;
  753.  
  754.             Button button54 = new Button();
  755.             button54.BackColor = Color.LightGray;
  756.             button54.Text = "";
  757.             button54.Location = new Point(420, 503);
  758.             button54.Size = new Size(80, 80);
  759.             button54.Parent = windowLevelBox;
  760.  
  761.             Button button55 = new Button();
  762.             button55.BackColor = Color.LightGray;
  763.             button55.Text = "";
  764.             button55.Location = new Point(503, 503);
  765.             button55.Size = new Size(80, 80);
  766.             button55.Parent = windowLevelBox;
  767.  
  768.             Button button56 = new Button();
  769.             button56.BackColor = Color.LightGray;
  770.             button56.Text = "";
  771.             button56.Location = new Point(586, 503);
  772.             button56.Size = new Size(80, 80);
  773.             button56.Parent = windowLevelBox;
  774.  
  775.             // -------- LAST ROW BUTTONS ----------
  776.             Button button57 = new Button();
  777.             button57.BackColor = Color.LightGray;
  778.             button57.Text = "";
  779.             button57.Location = new Point(5, 586);
  780.             button57.Size = new Size(80, 80);
  781.             button57.Parent = windowLevelBox;
  782.  
  783.             Button button58 = new Button();
  784.             button58.BackColor = Color.LightGray;
  785.             button58.Text = "";
  786.             button58.Location = new Point(88, 586);
  787.             button58.Size = new Size(80, 80);
  788.             button58.Parent = windowLevelBox;
  789.  
  790.             Button button59 = new Button();
  791.             button59.BackColor = Color.LightGray;
  792.             button59.Text = "";
  793.             button59.Location = new Point(171, 586);
  794.             button59.Size = new Size(80, 80);
  795.             button59.Parent = windowLevelBox;
  796.  
  797.             Button button60 = new Button();
  798.             button60.BackColor = Color.LightGray;
  799.             button60.Text = "";
  800.             button60.Location = new Point(254, 586);
  801.             button60.Size = new Size(80, 80);
  802.             button60.Parent = windowLevelBox;
  803.  
  804.             Button button61 = new Button();
  805.             button61.BackColor = Color.LightGray;
  806.             button61.Text = "";
  807.             button61.Location = new Point(337, 586);
  808.             button61.Size = new Size(80, 80);
  809.             button61.Parent = windowLevelBox;
  810.  
  811.             Button button62 = new Button();
  812.             button62.BackColor = Color.LightGray;
  813.             button62.Text = "";
  814.             button62.Location = new Point(420, 586);
  815.             button62.Size = new Size(80, 80);
  816.             button62.Parent = windowLevelBox;
  817.  
  818.             Button button63 = new Button();
  819.             button63.BackColor = Color.LightGray;
  820.             button63.Text = "";
  821.             button63.Location = new Point(503, 586);
  822.             button63.Size = new Size(80, 80);
  823.             button63.Parent = windowLevelBox;
  824.  
  825.             Button button64 = new Button();
  826.             button64.BackColor = Color.LightGray;
  827.             button64.Text = "";
  828.             button64.Location = new Point(586, 586);
  829.             button64.Size = new Size(80, 80);
  830.             button64.Parent = windowLevelBox;
  831.  
  832.             windowLevelBox.WindowState = FormWindowState.Normal;
  833.             windowLevelBox.StartPosition = FormStartPosition.CenterScreen;
  834.             windowLevelBox.AutoSize = true;
  835.             windowLevelBox.Text = "Difficult Level";
  836.  
  837.             windowLevelBox.ShowDialog();
  838.         }
  839.         public void DifficultLevelBoxButtonClick(object sender, EventArgs e)
  840.         {
  841.             windowLevelBox.Close();
  842.         }
  843.     }
  844. }
Advertisement
Add Comment
Please, Sign In to add comment