예제 #1
0
        private void metroTile_finish_incriment_decriment_Click(object sender, EventArgs e)//Закрепление материала
        {
            current_button = 6;
            Function.Input_Output_Show(6, "increment_decrement");

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + Function.description_algorithm;
        }
예제 #2
0
        private void metroTile_minus_Click(object sender, EventArgs e)//Разность
        {
            current_button = 4;
            Function.Input_Output_Show(4, "arithmetic_operations");

            string remove_minus  = Function.description_algorithm.Remove(269);
            string remove_minus1 = Function.description_algorithm.Substring(270, 7);//Пример
            string remove_minus2 = Function.description_algorithm.Substring(278, 21);
            string remove_minus3 = Function.description_algorithm.Substring(300, 14);

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + remove_minus + "\n\n" + remove_minus1 + "\n" + remove_minus2 + "\n" +
                                             remove_minus3;
            fastColoredTextBox_task.Text = "Задание для усвоения материала: " + "\n\n" + Function.task;

            fastColoredTextBox_code.Text = "using System;\n" +
                                           "namespace FirstApp\n" +
                                           "{\n" +
                                           "   class Program\n" +
                                           "   {\n" +
                                           "       static void Main(string[] args)\n" +
                                           "       {\n" +
                                           "           //  высота горы - Джомолунгма (Эверест)\n" +
                                           "           int qomolangma = 8848;\n" +
                                           "           //  высота горы - Чогори\n" +
                                           "           int chogori = 8611;\n\n" +
                                           "           /* ↓ Ваш код ↓ */\n\n" +
                                           "           Console.WriteLine(\"Эверест на \" + height_diff + \" метров выше горы Чогори!\");\n" +
                                           "           Console.ReadLine();\n" +
                                           "       }\n" +
                                           "   }\n" +
                                           "}";
        }
예제 #3
0
        private void metroTile_plus_Click(object sender, EventArgs e)//Сумма
        {
            current_button = 3;
            Function.Input_Output_Show(3, "arithmetic_operations");

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + Function.description_algorithm;

            fastColoredTextBox_task.Text = "Задание для усвоения материала:" + "\n\n" + Function.task;

            fastColoredTextBox_code.Text = "using System;\n" +
                                           "namespace FirstApp\n" +
                                           "{\n" +
                                           "   class Program\n" +
                                           "   {\n" +
                                           "       static void Main(string[] args)\n" +
                                           "       {\n" +
                                           "           //  Глубина залегания Ядра Земли (км)\n" +
                                           "           int depth_to_core_earth = 2900;\n" +
                                           "           //  средний радиус ядра (км)\n" +
                                           "           int avg_radius_core = 3500;\n" +
                                           "           \n" +
                                           "           /* ↓ Ваш код ↓ */\n" +
                                           "           \n\n" +
                                           "           Console.WriteLine(\"Радиус Земли приблизительно равен \" + earth_radius + \" км \");\n" +
                                           "           Console.ReadLine();\n" +
                                           "       }\n" +
                                           "   }\n" +
                                           "}";
        }
예제 #4
0
        private void metroTile_Increment_Click(object sender, EventArgs e)//Инкримент
        {
            current_button = 1;
            Function.Input_Output_Show(1, "increment_decrement");

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + Function.description_algorithm;

            fastColoredTextBox_task.Text = "Задание для усвоения материала: " + "\n\n" + Function.task;

            fastColoredTextBox_code.Text = "using System;\n" +
                                           "namespace FirstApp\n" +
                                           "{\n" +
                                           "   class Program\n" +
                                           "   {\n" +
                                           "       static void Main(string[] args)\n" +
                                           "       {\n" +
                                           "           // возраст - 20 лет\n" +
                                           "           int age = 20;\n\n" +
                                           "           /* ↓ Ваш код ↓ */\n\n\n" +
                                           "           Console.WriteLine(\"Через год будет: \" + age);\n" +
                                           "           Console.Redline()\n" +
                                           "       }\n" +
                                           "   }\n" +
                                           "}";
        }
예제 #5
0
        private void metroTile_division_Click(object sender, EventArgs e)//Деление
        {
            current_button = 6;
            Function.Input_Output_Show(6, "arithmetic_operations");

            string remove_division   = Function.description_algorithm.Remove(168);
            string remove_division1  = Function.description_algorithm.Substring(169, 83);
            string remove_division2  = Function.description_algorithm.Substring(253, 35);
            string remove_division3  = Function.description_algorithm.Substring(289, 45);
            string remove_division4  = Function.description_algorithm.Substring(335, 18);
            string remove_division5  = Function.description_algorithm.Substring(354, 176);
            string remove_division6  = Function.description_algorithm.Substring(531, 22);
            string remove_division7  = Function.description_algorithm.Substring(554, 33);//double float_division = 13.0 / 2;
            string remove_division8  = Function.description_algorithm.Substring(588, 183);
            string remove_division9  = Function.description_algorithm.Substring(772, 80);
            string remove_division10 = Function.description_algorithm.Substring(853, 52);
            string remove_division11 = Function.description_algorithm.Substring(906, 25);
            string remove_division12 = Function.description_algorithm.Substring(932, 63);
            string remove_division13 = Function.description_algorithm.Substring(996, 37);
            string remove_division14 = Function.description_algorithm.Substring(1034, 25);
            string remove_division15 = Function.description_algorithm.Substring(1060, 75);

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + remove_division + "\n" + remove_division1 + "\n" + remove_division2 + "\n\n" +
                                             remove_division3 + "\n" + remove_division4 + "\n\n" + remove_division5 + "\n" + remove_division6 + "\n" + remove_division7 + "\n" + remove_division8 +
                                             "\n\n" + remove_division9 + "\n" + remove_division10 + "\n" + remove_division11 + "\n\n" + remove_division12 + "\n" + remove_division13 + "\n" +
                                             remove_division14 + "\n" + remove_division15;

            fastColoredTextBox_task.Text = "Задание для усвоения материала: " + "\n\n" + Function.task;

            fastColoredTextBox_code.Text = "using System;\n" +
                                           "namespace FirstApp\n" +
                                           "{\n" +
                                           "   class Program\n" +
                                           "   {\n" +
                                           "       static void Main(string[] args)\n" +
                                           "       {\n" +
                                           "           int division; // сюда запишим результат от деления\n" +
                                           "           int rem_division; // сюда запишим остаток от деления\n\n" +
                                           "           // целая часть от деления 5 на 2\n" +
                                           "           division\n" +
                                           "           Console.WriteLine(\"Целая часть от деления 5 / 2 = \" + division);\n\n\n" +
                                           "           // остаток от деления 5 на 2\n" +
                                           "           rem_division\n" +
                                           "           Console.WriteLine(\"Остаток от деления 5 % 2 = \" + rem_division);\n\n\n" +
                                           "           // 5.0 разделить на 2.0\n" +
                                           "           double float_division\n" +
                                           "           Console.WriteLine(\"Деление как в математике 5.0 / 2.0 = \" + float_division);\n" +
                                           "           Console.ReadLine();\n" +
                                           "       }\n" +
                                           "   }\n" +
                                           "}";
        }
예제 #6
0
        private void metroTile_bool_type_Click(object sender, EventArgs e)//Bool
        {
            current_button = 6;
            Function.Input_Output_Show(6, "data_types");

            string rename_bool  = Function.description_algorithm.Remove(112);
            string rename_bool1 = Function.description_algorithm.Substring(113, 94);
            string rename_bool2 = Function.description_algorithm.Substring(208, 49);

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + rename_bool + "\n" + rename_bool1 + "\n" + rename_bool2;
            fastColoredTextBox_task.Text   = "Задание для усвоения материала:" + "\n\n" + Function.task;
            Text_code();//fastColoredTextBox_code
        }
예제 #7
0
        private void metroTile_double_type_Click(object sender, EventArgs e)//Double
        {
            current_button = 4;
            Function.Input_Output_Show(5, "data_types");

            string remove_double  = Function.description_algorithm.Remove(154);
            string remove_double1 = Function.description_algorithm.Substring(155, 63);
            string remove_double2 = Function.description_algorithm.Substring(219, 90);

            fastColoredTextBox_task.Text   = "Задание для усвоения материала:" + "\n\n" + Function.task;
            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + remove_double + "\n" + remove_double1 + "\n" + remove_double2;

            Text_code();//fastColoredTextBox_code
        }
예제 #8
0
        private void metroTile_char_type_Click(object sender, EventArgs e)//Char
        {
            current_button = 5;
            Function.Input_Output_Show(4, "data_types");

            string remove_char  = Function.description_algorithm.Remove(123);
            string remove_char1 = Function.description_algorithm.Substring(124, 46);
            string remove_char2 = Function.description_algorithm.Substring(171, 124);
            string remove_char3 = Function.description_algorithm.Substring(296, 54);

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + remove_char + "\n" + remove_char1 + "\n" + remove_char2 + "\n" + remove_char3;
            fastColoredTextBox_task.Text   = "Задание для усвоения материала:" + "\n\n" + Function.task;
            Text_code();//fastColoredTextBox_code
        }
예제 #9
0
        private void metroTile_equally_Click(object sender, EventArgs e)//Оператор присваивания.
        {
            current_button = 2;
            Function.Input_Output_Show(2, "arithmetic_operations");

            string remove_equall  = Function.description_algorithm.Remove(229);        //первая половина текста
            string remove_equall1 = Function.description_algorithm.Substring(230, 8);  //пример
            string remove_equall2 = Function.description_algorithm.Substring(239, 17); //високосный год
            string remove_equall3 = Function.description_algorithm.Substring(257, 20); //int leap_year = 366;
            string remove_equall4 = Function.description_algorithm.Substring(278, 44); //вторая половина

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + remove_equall + "\n\n" + remove_equall1 + "\n" + remove_equall2 + "\n"
                                             + remove_equall3 + "\n\n" + remove_equall4;

            fastColoredTextBox_code.Text = "using System;\n" +
                                           "namespace FirstApp\n" +
                                           "{\n" +
                                           "   class Program\n" +
                                           "   {\n" +
                                           "       static void Main(string[] args)\n" +
                                           "       {\n" +
                                           "           // Высота водопада - Анхель (м)\n" +
                                           "           int height_anhel_waterfall;\n" +
                                           "           \n" +
                                           "           // Размер самых маленьких колибри (см)\n" +
                                           "           float colibri_size;\n" +
                                           "           \n" +
                                           "           // Первая буква алфавита\n" +
                                           "           char first_letter_alphabet;\n" +
                                           "           \n" +
                                           "           // Золотое сечение\n" +
                                           "           double golden_section;\n" +
                                           "           \n" +
                                           "           // Земля круглая?\n" +
                                           "           bool is_round_earth;\n" +
                                           "       }\n" +
                                           "   }\n" +
                                           "}";

            string remove_task_equall  = Function.task.Remove(23);         //первая часть текста
            string remove_task_equall1 = Function.task.Substring(24, 37);  //int height_anhel_waterfall
            string remove_task_equall2 = Function.task.Substring(62, 27);  //float colibri_size;
            string remove_task_equall3 = Function.task.Substring(90, 36);  //char first_letter_alphabet
            string remove_task_equall4 = Function.task.Substring(127, 38); //double golden_section
            string remove_task_equall5 = Function.task.Substring(166, 32); //bool is_round_earth
            string remove_task_equall6 = Function.task.Substring(199, 80); //вторая часть текста

            fastColoredTextBox_task.Text = "Задание для усвоения материала: " + "\n\n" + remove_task_equall + "\n" + remove_task_equall1 + "\n" +
                                           remove_task_equall2 + "\n" + remove_task_equall3 + "\n" + remove_task_equall4 + "\n" + remove_task_equall5 + "\n\n" + remove_task_equall6;
        }
예제 #10
0
        private void metroTile_Assignment_operators_Click(object sender, EventArgs e)//Операторы присваивания
        {
            current_button = 5;
            Function.Input_Output_Show(5, "increment_decrement");

            string remove_assignment_operators  = Function.description_algorithm.Remove(298);
            string remove_assignment_operators1 = Function.description_algorithm.Substring(299, 125);
            string remove_assignment_operators2 = Function.description_algorithm.Substring(425, 161);

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + remove_assignment_operators + "\n" + remove_assignment_operators1 + "\n\n" +
                                             remove_assignment_operators2;

            fastColoredTextBox_task.Text = "Задание для усвоения материала: " + "\n\n" + Function.task;
        }
예제 #11
0
        private void metroTile_float_type_Click(object sender, EventArgs e)//FLOAT
        {
            current_button = 3;
            Function.Input_Output_Show(3, "data_types");

            string remove_float  = Function.description_algorithm.Remove(65);
            string remove_float1 = Function.description_algorithm.Substring(66, 74);
            string remove_float2 = Function.description_algorithm.Substring(141, 7);
            string remove_float3 = Function.description_algorithm.Substring(149, 9);

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + remove_float + "\n" + remove_float1 + "\n\n" + remove_float2 + "\n" + remove_float3;
            fastColoredTextBox_task.Text   = "Задание для усвоения материала:" + "\n\n" + Function.task;
            Text_code();//fastColoredTextBox_code
        }
예제 #12
0
        private void metroTile_finish_data_type_Click(object sender, EventArgs e)//Закрепление материала
        {
            current_button = 8;
            Function.Input_Output_Show(8, "data_types");

            Text_code();//fastColoredTextBox_code
            fastColoredTextBox_theory.Text = Function.description_algorithm;

            string rename_finish  = Function.task.Remove(55);
            string rename_finish1 = Function.task.Substring(56, 46);
            string rename_finish2 = Function.task.Substring(103, 52);
            string rename_finish3 = Function.task.Substring(156, 44);
            string rename_finish4 = Function.task.Substring(201, 70);

            fastColoredTextBox_task.Text = "Задание для усвоения материала:" + "\n\n" + rename_finish + "\n" + rename_finish1 + "\n" + rename_finish2 +
                                           "\n" + rename_finish3 + "\n" + rename_finish4;
        }
예제 #13
0
        private void metroTile_integer_type_Click(object sender, EventArgs e)//Целочисленный тип
        {
            current_button = 2;
            Function.Input_Output_Show(2, "data_types");
            string remove_integer_type  = Function.description_algorithm.Remove(61);
            string remove_integer_type2 = Function.description_algorithm.Substring(62, 107);
            string remove_integer_type3 = Function.description_algorithm.Substring(171, 29);
            string remove_integer_type4 = Function.description_algorithm.Substring(200, 18);
            string remove_integer_type5 = Function.description_algorithm.Substring(218, 56);

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + remove_integer_type + "\n" + remove_integer_type2 + "\n\n" + remove_integer_type3 +
                                             "\n" + remove_integer_type4 + "\n\n" + remove_integer_type5;

            fastColoredTextBox_task.Text = "Задание для усвоения материала:" + "\n\n" + Function.task;

            Text_code();
        }
예제 #14
0
        private void metroTile_Logical_operators_Click(object sender, EventArgs e)//Логические операторы
        {
            current_button = 4;
            Function.Input_Output_Show(4, "increment_decrement");

            string remove_logical_operations  = Function.description_algorithm.Remove(120);
            string remove_logical_operations1 = Function.description_algorithm.Substring(121, 6);
            string remove_logical_operations2 = Function.description_algorithm.Substring(128, 8);
            string remove_logical_operations3 = Function.description_algorithm.Substring(137, 20);
            string remove_logical_operations4 = Function.description_algorithm.Substring(158, 19);
            string remove_logical_operations5 = Function.description_algorithm.Substring(178, 21);
            string remove_logical_operations6 = Function.description_algorithm.Substring(200, 6);

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + remove_logical_operations + "\n" + remove_logical_operations1 + "\n" + remove_logical_operations2
                                             + "\n" + remove_logical_operations3 + "\n" + remove_logical_operations4 + "\n" + remove_logical_operations5 + "\n" + remove_logical_operations6;

            fastColoredTextBox_task.Text = "Задание для усвоения материала: " + "\n\n" + Function.task;
        }
예제 #15
0
        private void metroTile_Relational_operations_Click(object sender, EventArgs e)//Операторы отношений
        {
            current_button = 3;
            Function.Input_Output_Show(3, "increment_decrement");

            string remove_relational_operations  = Function.description_algorithm.Remove(336);
            string remove_relational_operations1 = Function.description_algorithm.Substring(336, 9);  // == Равно;
            string remove_relational_operations2 = Function.description_algorithm.Substring(346, 12); // != Не равно;
            string remove_relational_operations3 = Function.description_algorithm.Substring(359, 9);  // > Больше;
            string remove_relational_operations4 = Function.description_algorithm.Substring(369, 9);  // < Меньше;
            string remove_relational_operations5 = Function.description_algorithm.Substring(379, 20); // >= Больше или равно;
            string remove_relational_operations6 = Function.description_algorithm.Substring(400, 19); // <= Меньше или равно

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + remove_relational_operations + "\n" + remove_relational_operations1 + "\n" + remove_relational_operations2
                                             + "\n" + remove_relational_operations3 + "\n" + remove_relational_operations4 + "\n" + remove_relational_operations5 + "\n" + remove_relational_operations6;


            fastColoredTextBox_task.Text = "Задание для усвоения материала: " + "\n\n" + Function.task;
        }
예제 #16
0
        private void metroTile_obschee_arithmetic_operations_Click(object sender, EventArgs e)//Введение
        {
            current_button = 1;
            Function.Input_Output_Show(1, "arithmetic_operations");

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + Function.description_algorithm;

            fastColoredTextBox_code.Text = "using System;\n" +
                                           "namespace FirstApp\n" +
                                           "{\n" +
                                           "   class Program\n" +
                                           "   {\n" +
                                           "       static void Main(string[] args)\n" +
                                           "       {\n" +
                                           "           int a, b, c;\n" +
                                           "           a = 8;\n" +
                                           "           b = 10;\n" +
                                           "           c = (a + b) * (a / b);\n" +
                                           "       }\n" +
                                           "   }\n" +
                                           "}";
        }
예제 #17
0
        private void metroTile_multiplication_Click(object sender, EventArgs e)//Произведение
        {
            current_button = 5;
            Function.Input_Output_Show(5, "arithmetic_operations");

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + Function.description_algorithm;
            fastColoredTextBox_task.Text   = "Задание для усвоения материала: " + "\n\n" + Function.task;

            fastColoredTextBox_code.Text = "using System;\n" +
                                           "namespace FirstApp\n" +
                                           "{\n" +
                                           "   class Program\n" +
                                           "   {\n" +
                                           "       static void Main(string[] args)\n" +
                                           "       {\n" +
                                           "           int number = 4;\n\n" +
                                           "           /* ↓ Ваш код ↓ */\n" +
                                           "           int square\n\n" +
                                           "           Console.WriteLine(\"Квадрат \" + number + \"=\" + square);\n" +
                                           "           Console.ReadLine();\n" +
                                           "       }\n" +
                                           "   }\n" +
                                           "}";
        }
예제 #18
0
        private void metroTile_const_data_type_Click(object sender, EventArgs e)//COnst
        {
            current_button = 7;
            Function.Input_Output_Show(7, "data_types");

            string rename_const  = Function.description_algorithm.Remove(229);
            string rename_const1 = Function.description_algorithm.Substring(230, 29);
            string rename_const2 = Function.description_algorithm.Substring(260, 18);
            string rename_const3 = Function.description_algorithm.Substring(279, 22);
            string rename_const4 = Function.description_algorithm.Substring(301, 28);

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + rename_const + "\n" + rename_const1 + "\n" + rename_const2 + "\n" + rename_const3 + "\n" + rename_const4;


            string rename_task_const  = Function.task.Remove(23);
            string rename_task_const1 = Function.task.Substring(24, 51);
            string rename_task_const2 = Function.task.Substring(76, 63);
            string rename_task_const3 = Function.task.Substring(140, 50);

            fastColoredTextBox_task.Text = "Задание для усвоения материала:" + "\n\n" + rename_task_const + "\n" + rename_task_const1 + "\n"
                                           + rename_task_const2 + "\n" + rename_task_const3;

            Text_code();//fastColoredTextBox_code
        }
예제 #19
0
        private void metroTile_finish_arithmetic_operations_Click(object sender, EventArgs e)//Завершение
        {
            current_button = 7;
            Function.Input_Output_Show(7, "arithmetic_operations");

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + Function.description_algorithm;
            fastColoredTextBox_task.Text   = "Задание для усвоения материала: " + "\n\n" + Function.task;

            fastColoredTextBox_code.Text = "using System;\n" +
                                           "namespace FirstApp\n" +
                                           "{\n" +
                                           "   class Program\n" +
                                           "   {\n" +
                                           "       static void Main(string[] args)\n" +
                                           "       {\n" +
                                           "           int a = 5;\n" +
                                           "           int b = 3;\n" +
                                           "           int c = 1;\n\n" +
                                           "           /* ↓ Ваш код ↓ */\n\n\n" +
                                           "           Console.WriteLine(\"Дискриминант = \" + discriminant);\n\n\n" +
                                           "       }\n" +
                                           "   }\n" +
                                           "}";
        }
예제 #20
0
        private void metroTile_obschee_Click(object sender, EventArgs e)//Введение
        {
            current_button = 1;
            Function.Input_Output_Show(1, "data_types");

            string remove_obschee        = Function.description_algorithm.Remove(211);
            string remove_obschee1       = Function.description_algorithm.Substring(212, 161);
            string remove_obschee2       = Function.description_algorithm.Substring(374, 128);
            string remove_obschee3       = Function.description_algorithm.Substring(503, 23);
            string remove_obschee_int    = Function.description_algorithm.Substring(527, 20);
            string remove_obschee_float  = Function.description_algorithm.Substring(548, 21);
            string remove_obschee_char   = Function.description_algorithm.Substring(570, 18);
            string remove_obschee_double = Function.description_algorithm.Substring(589, 39);
            string remove_obschee_bool   = Function.description_algorithm.Substring(629, 17);

            fastColoredTextBox_theory.Text = Function.name_traning + "\n\n" + remove_obschee + "\n" + remove_obschee1 + "\n" + remove_obschee2 + "\n\n" + remove_obschee3 + "\n" +
                                             remove_obschee_int + "\n" + remove_obschee_float + "\n" + remove_obschee_char + "\n" + remove_obschee_double + "\n" + remove_obschee_bool;

            fastColoredTextBox_task.Text = Function.task;

            fastColoredTextBox_code.Text = "using System;\n" +
                                           "namespace FirstApp\n" +
                                           "{\n" +
                                           "   class Program\n" +
                                           "   {\n" +
                                           "       static void Main(string[] args)\n" +
                                           "       {\n" +
                                           "           int i_number;\n" +
                                           "           float f_number;\n" +
                                           "           char c_number;\n" +
                                           "           double d_number;\n" +
                                           "           bool b_number;\n" +
                                           "       }\n" +
                                           "   }\n" +
                                           "}";
        }