#pragma region Form Design
private: System::Windows::Forms::Panel^ panel1;
private: System::Windows::Forms::Label^ titleLabel;
private: System::Windows::Forms::TextBox^ textBox1;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::Label^ resultLabel;
private: System::Windows::Forms::Panel^ resultPanel;
// В конструкторе:
this->panel1 = (gcnew System::Windows::Forms::Panel());
this->titleLabel = (gcnew System::Windows::Forms::Label());
this->textBox1 = (gcnew System::Windows::Forms::TextBox());
this->button1 = (gcnew System::Windows::Forms::Button());
this->resultPanel = (gcnew System::Windows::Forms::Panel());
this->resultLabel = (gcnew System::Windows::Forms::Label());
// panel1 (заголовок)
this->panel1->BackColor = System::Drawing::Color::FromArgb(0, 120, 215);
this->panel1->Dock = System::Windows::Forms::DockStyle::Top;
this->panel1->Height = 80;
// titleLabel
this->titleLabel->Text = "Задание 1: Сумма цифр";
this->titleLabel->ForeColor = System::Drawing::Color::White;
this->titleLabel->Font = (gcnew System::Drawing::Font("Segoe UI", 18, FontStyle::Bold));
this->titleLabel->Location = System::Drawing::Point(20, 25);
this->titleLabel->AutoSize = true;
// textBox1
this->textBox1->Location = System::Drawing::Point(30, 110);
this->textBox1->Size = System::Drawing::Size(340, 40);
this->textBox1->Font = (gcnew System::Drawing::Font("Segoe UI", 12));
this->textBox1->BorderStyle = BorderStyle::FixedSingle;
this->textBox1->BackColor = System::Drawing::Color::White;
this->textBox1->ForeColor = System::Drawing::Color::FromArgb(50, 50, 50);
// button1
this->button1->Location = System::Drawing::Point(30, 170);
this->button1->Size = System::Drawing::Size(340, 45);
this->button1->Text = "Вычислить";
this->button1->BackColor = System::Drawing::Color::FromArgb(0, 120, 215);
this->button1->ForeColor = System::Drawing::Color::White;
this->button1->FlatStyle = FlatStyle::Flat;
this->button1->FlatAppearance->BorderSize = 0;
this->button1->Font = (gcnew System::Drawing::Font("Segoe UI", 11, FontStyle::Bold));
this->button1->Cursor = Cursors::Hand;
// resultPanel
this->resultPanel->Location = System::Drawing::Point(30, 240);
this->resultPanel->Size = System::Drawing::Size(340, 80);
this->resultPanel->BackColor = System::Drawing::Color::FromArgb(230, 245, 255);
this->resultPanel->BorderStyle = BorderStyle::None;
// resultLabel
this->resultLabel->Dock = DockStyle::Fill;
this->resultLabel->Text = "Результат появится здесь";
this->resultLabel->ForeColor = System::Drawing::Color::FromArgb(0, 120, 215);
this->resultLabel->Font = (gcnew System::Drawing::Font("Segoe UI", 12, FontStyle::Bold));
this->resultLabel->TextAlign = ContentAlignment::MiddleCenter;
// Добавление элементов
this->panel1->Controls->Add(titleLabel);
this->Controls->Add(textBox1);
this->Controls->Add(button1);
this->Controls->Add(resultPanel);
this->resultPanel->Controls->Add(resultLabel);
// Форма
this->BackColor = System::Drawing::Color::FromArgb(250, 250, 252);
this->Font = (gcnew System::Drawing::Font("Segoe UI", 10));
this->Size = System::Drawing::Size(420, 380);
#pragma endregion