#pragma once

namespace WindowsFormsApplication1 {

	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
	/// </summary>
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::MenuStrip^  menuStrip1;
	protected: 
	private: System::Windows::Forms::ToolStripMenuItem^  oknoToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  zwiekszToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  zmniejszToolStripMenuItem;

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
			this->oknoToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->zwiekszToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->zmniejszToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->menuStrip1->SuspendLayout();
			this->SuspendLayout();
			// 
			// menuStrip1
			// 
			this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->oknoToolStripMenuItem});
			this->menuStrip1->Location = System::Drawing::Point(0, 0);
			this->menuStrip1->Name = L"menuStrip1";
			this->menuStrip1->Size = System::Drawing::Size(304, 24);
			this->menuStrip1->TabIndex = 0;
			this->menuStrip1->Text = L"menuStrip1";
			// 
			// oknoToolStripMenuItem
			// 
			this->oknoToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(2) {this->zwiekszToolStripMenuItem, 
				this->zmniejszToolStripMenuItem});
			this->oknoToolStripMenuItem->Name = L"oknoToolStripMenuItem";
			this->oknoToolStripMenuItem->Size = System::Drawing::Size(48, 20);
			this->oknoToolStripMenuItem->Text = L"Okno";
			// 
			// zwiekszToolStripMenuItem
			// 
			this->zwiekszToolStripMenuItem->Name = L"zwiekszToolStripMenuItem";
			this->zwiekszToolStripMenuItem->ShortcutKeyDisplayString = L"Alt+E";
			this->zwiekszToolStripMenuItem->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Alt | System::Windows::Forms::Keys::E));
			this->zwiekszToolStripMenuItem->Size = System::Drawing::Size(162, 22);
			this->zwiekszToolStripMenuItem->Text = L"Zwiększ";
			this->zwiekszToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::zwiekszToolStripMenuItem_Click);
			// 
			// zmniejszToolStripMenuItem
			// 
			this->zmniejszToolStripMenuItem->Name = L"zmniejszToolStripMenuItem";
			this->zmniejszToolStripMenuItem->ShortcutKeyDisplayString = L"Alt+W";
			this->zmniejszToolStripMenuItem->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Alt | System::Windows::Forms::Keys::W));
			this->zmniejszToolStripMenuItem->Size = System::Drawing::Size(162, 22);
			this->zmniejszToolStripMenuItem->Text = L"Zmniejsz";
			this->zmniejszToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::zmniejszToolStripMenuItem_Click);
			// 
			// Form1
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(304, 239);
			this->Controls->Add(this->menuStrip1);
			this->MainMenuStrip = this->menuStrip1;
			this->Name = L"Form1";
			this->Text = L"Form1";
			this->menuStrip1->ResumeLayout(false);
			this->menuStrip1->PerformLayout();
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
	private: System::Void zwiekszToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
		     this->Height++;
             this->Width++;

			 }
	private: System::Void zmniejszToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
     		 this->Height--;
             this->Width--;

			 }
};
}

