4DM3M

Info.h

Jan 7th, 2021
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.32 KB | None | 0 0
  1. #pragma once
  2.  
  3. namespace LR2813 {
  4.  
  5.     using namespace System;
  6.     using namespace System::ComponentModel;
  7.     using namespace System::Collections;
  8.     using namespace System::Windows::Forms;
  9.     using namespace System::Data;
  10.     using namespace System::Drawing;
  11.  
  12.     /// <summary>
  13.     /// Сводка для Info
  14.     /// </summary>
  15.     public ref class Info : public System::Windows::Forms::Form
  16.     {
  17.     public:
  18.         Info(void)
  19.         {
  20.             InitializeComponent();
  21.             //
  22.             //TODO: добавьте код конструктора
  23.             //
  24.         }
  25.  
  26.     protected:
  27.         /// <summary>
  28.         /// Освободить все используемые ресурсы.
  29.         /// </summary>
  30.         ~Info()
  31.         {
  32.             if (components)
  33.             {
  34.                 delete components;
  35.             }
  36.         }
  37.     private: System::Windows::Forms::Label^ label1;
  38.     private: System::Windows::Forms::Button^ button1;
  39.     protected:
  40.  
  41.     private:
  42.         /// <summary>
  43.         /// Обязательная переменная конструктора.
  44.         /// </summary>
  45.         System::ComponentModel::Container ^components;
  46.  
  47. #pragma region Windows Form Designer generated code
  48.         /// <summary>
  49.         /// Требуемый метод для поддержки конструктора — не изменяйте
  50.         /// содержимое этого метода с помощью редактора кода.
  51.         /// </summary>
  52.         void InitializeComponent(void)
  53.         {
  54.             this->label1 = (gcnew System::Windows::Forms::Label());
  55.             this->button1 = (gcnew System::Windows::Forms::Button());
  56.             this->SuspendLayout();
  57.             //
  58.             // label1
  59.             //
  60.             this->label1->AutoSize = true;
  61.             this->label1->BackColor = System::Drawing::SystemColors::ControlDark;
  62.             this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 15, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
  63.                 static_cast<System::Byte>(204)));
  64.             this->label1->Location = System::Drawing::Point(7, 179);
  65.             this->label1->Name = L"label1";
  66.             this->label1->Size = System::Drawing::Size(555, 116);
  67.             this->label1->TabIndex = 0;
  68.             this->label1->Text = L"Имеется массив кодов групп товаров. \r\nКод группы товара – это последовательность\r"
  69.                 L"\n четырех цифр. Упорядочите данный массив, \r\nне используя операций срав-нения.";
  70.             //
  71.             // button1
  72.             //
  73.             this->button1->Location = System::Drawing::Point(12, 12);
  74.             this->button1->Name = L"button1";
  75.             this->button1->Size = System::Drawing::Size(96, 36);
  76.             this->button1->TabIndex = 1;
  77.             this->button1->Text = L"Назад";
  78.             this->button1->UseVisualStyleBackColor = true;
  79.             this->button1->Click += gcnew System::EventHandler(this, &Info::button1_Click);
  80.             //
  81.             // Info
  82.             //
  83.             this->AutoScaleDimensions = System::Drawing::SizeF(8, 16);
  84.             this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  85.             this->BackColor = System::Drawing::SystemColors::ControlDarkDark;
  86.             this->ClientSize = System::Drawing::Size(561, 481);
  87.             this->Controls->Add(this->button1);
  88.             this->Controls->Add(this->label1);
  89.             this->Name = L"Info";
  90.             this->Text = L"Info";
  91.             this->ResumeLayout(false);
  92.             this->PerformLayout();
  93.  
  94.         }
  95. #pragma endregion
  96.     private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
  97.         Owner->Show();
  98.         this->Close();
  99.     }
  100.     };
  101. }
  102.  
Advertisement
Add Comment
Please, Sign In to add comment