Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "Real.h"
- #include "Info.h"
- namespace LR2813 {
- using namespace System;
- using namespace System::ComponentModel;
- using namespace System::Collections;
- using namespace System::Windows::Forms;
- using namespace System::Data;
- using namespace System::Drawing;
- /// <summary>
- /// Сводка для MyForm
- /// </summary>
- public ref class MyForm : public System::Windows::Forms::Form
- {
- public:
- MyForm(void)
- {
- InitializeComponent();
- //
- //TODO: добавьте код конструктора
- //
- }
- protected:
- /// <summary>
- /// Освободить все используемые ресурсы.
- /// </summary>
- ~MyForm()
- {
- if (components)
- {
- delete components;
- }
- }
- private: System::Windows::Forms::Button^ Realization;
- private: System::Windows::Forms::Button^ ButtonInfo;
- private: System::Windows::Forms::Button^ CloseButton;
- protected:
- private:
- /// <summary>
- /// Обязательная переменная конструктора.
- /// </summary>
- System::ComponentModel::Container ^components;
- #pragma region Windows Form Designer generated code
- /// <summary>
- /// Требуемый метод для поддержки конструктора — не изменяйте
- /// содержимое этого метода с помощью редактора кода.
- /// </summary>
- void InitializeComponent(void)
- {
- this->Realization = (gcnew System::Windows::Forms::Button());
- this->ButtonInfo = (gcnew System::Windows::Forms::Button());
- this->CloseButton = (gcnew System::Windows::Forms::Button());
- this->SuspendLayout();
- //
- // Realization
- //
- this->Realization->Location = System::Drawing::Point(188, 214);
- this->Realization->Name = L"Realization";
- this->Realization->Size = System::Drawing::Size(165, 58);
- this->Realization->TabIndex = 0;
- this->Realization->Text = L"Реализация";
- this->Realization->UseVisualStyleBackColor = true;
- this->Realization->Click += gcnew System::EventHandler(this, &MyForm::Realization_Click);
- //
- // ButtonInfo
- //
- this->ButtonInfo->Location = System::Drawing::Point(188, 150);
- this->ButtonInfo->Name = L"ButtonInfo";
- this->ButtonInfo->Size = System::Drawing::Size(165, 58);
- this->ButtonInfo->TabIndex = 1;
- this->ButtonInfo->Text = L"Условие";
- this->ButtonInfo->UseVisualStyleBackColor = true;
- this->ButtonInfo->Click += gcnew System::EventHandler(this, &MyForm::ButtonInfo_Click);
- //
- // CloseButton
- //
- this->CloseButton->Location = System::Drawing::Point(188, 278);
- this->CloseButton->Name = L"CloseButton";
- this->CloseButton->Size = System::Drawing::Size(165, 58);
- this->CloseButton->TabIndex = 2;
- this->CloseButton->Text = L"Выход";
- this->CloseButton->UseVisualStyleBackColor = true;
- this->CloseButton->Click += gcnew System::EventHandler(this, &MyForm::CloseButton_Click);
- //
- // MyForm
- //
- this->AutoScaleDimensions = System::Drawing::SizeF(8, 16);
- this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
- this->BackColor = System::Drawing::SystemColors::ControlDark;
- this->ClientSize = System::Drawing::Size(561, 481);
- this->Controls->Add(this->CloseButton);
- this->Controls->Add(this->ButtonInfo);
- this->Controls->Add(this->Realization);
- this->MaximizeBox = false;
- this->MinimizeBox = false;
- this->Name = L"MyForm";
- this->ShowInTaskbar = false;
- this->Text = L"Лабораторая работа №28";
- this->ResumeLayout(false);
- }
- #pragma endregion
- private: System::Void Realization_Click(System::Object^ sender, System::EventArgs^ e) {
- Real^ f2 = gcnew Real();
- f2->Show();
- f2->Owner = this;
- MyForm::Hide();
- }
- private: System::Void CloseButton_Click(System::Object^ sender, System::EventArgs^ e) {
- this->Close();
- }
- private: System::Void ButtonInfo_Click(System::Object^ sender, System::EventArgs^ e) {
- Info^ f3 = gcnew Info();
- f3->Show();
- f3->Owner = this;
- MyForm::Hide();
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment