Potrzebuje pomocy w danym skrypcie z tego wzgledu iż skryp ten jest dla mnie nie jasny a potrzebuje komentarza do niego.Czy jest ktoś kto sie zna na tym??Z góry dizenkuje i pozdrawiam
++++++++++
C++
++++++++++
namespace egzamin
{
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>
/// Summary for Form1
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public __gc class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::Button * button1;
private: System::Windows::Forms::MainMenu * mainMenu1;
private: System::Windows::Forms::MenuItem * menuItem1;
private: System::Windows::Forms::MenuItem * menuItem2;
private: System::Windows::Forms::MenuItem * menuItem3;
private: System::Windows::Forms::MenuItem * menuItem4;
private: System::Windows::Forms::MenuItem * menuItem5;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container * components;
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
this->button1 = new System::Windows::Forms::Button();
this->mainMenu1 = new System::Windows::Forms::MainMenu();
this->menuItem1 = new System::Windows::Forms::MenuItem();
this->menuItem2 = new System::Windows::Forms::MenuItem();
this->menuItem3 = new System::Windows::Forms::MenuItem();
this->menuItem4 = new System::Windows::Forms::MenuItem();
this->menuItem5 = new System::Windows::Forms::MenuItem();
this->SuspendLayout();
//
// button1
//
this->button1->Location = System::Drawing::Point(208, 80);
this->button1->Name = S"button1";
this->button1->TabIndex = 0;
this->button1->Text = S"button1";
//
// mainMenu1
//
System::Windows::Forms::MenuItem* __mcTemp__1[] = new System::Windows::Forms::MenuItem*[2];
__mcTemp__1[0] = this->menuItem1;
__mcTemp__1[1] = this->menuItem5;
this->mainMenu1->MenuItems->AddRange(__mcTemp__1);
//
// menuItem1
//
this->menuItem1->Index = 0;
System::Windows::Forms::MenuItem* __mcTemp__2[] = new System::Windows::Forms::MenuItem*[3];
__mcTemp__2[0] = this->menuItem2;
__mcTemp__2[1] = this->menuItem3;
__mcTemp__2[2] = this->menuItem4;
this->menuItem1->MenuItems->AddRange(__mcTemp__2);
this->menuItem1->Text = S"Plik";
//
// menuItem2
//
this->menuItem2->Index = 0;
this->menuItem2->Text = S"Nowy";
//
// menuItem3
//
this->menuItem3->Index = 1;
this->menuItem3->Text = S"otwórz";
//
// menuItem4
//
this->menuItem4->Index = 2;
this->menuItem4->Text = S"koniec";
this->menuItem4->Click += new System::EventHandler(this, menuItem4_Click);
//
// menuItem5
//
this->menuItem5->Index = 1;
this->menuItem5->Text = S"pomoc";
//
// Form1
//
this->AutoScaleBaseSize = System::Drawing::Size(5, 13);
this->ClientSize = System::Drawing::Size(292, 273);
this->Controls->Add(this->button1);
this->Menu = this->mainMenu1;
this->Name = S"Form1";
this->Text = S"Form1";
this->Load += new System::EventHandler(this, Form1_Load);
this->ResumeLayout(false);
}
private: System::Void Form1_Load(System::Object * sender, System::EventArgs * e)
{
}
private: System::Void menuItem4_Click(System::Object * sender, System::EventArgs * e)
{Close();
}
};
}