#pragma once


namespace PR_3_5 {

	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 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;
	private: System::Windows::Forms::ToolStripMenuItem^  oknoToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  zwiekszToolStripMenuItem;

	private: System::Windows::Forms::ToolStripMenuItem^  zmniejszToolStripMenuItem;
	protected: 

	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(292, 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(44, 20);
			this->oknoToolStripMenuItem->Text = L"Okno";
			// 
			// zwiekszToolStripMenuItem
			// 
			this->zwiekszToolStripMenuItem->Name = L"zwiekszToolStripMenuItem";
			this->zwiekszToolStripMenuItem->ShortcutKeyDisplayString = L"Alt+W";
			this->zwiekszToolStripMenuItem->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Alt | System::Windows::Forms::Keys::W));
			this->zwiekszToolStripMenuItem->Size = System::Drawing::Size(160, 22);
			this->zwiekszToolStripMenuItem->Text = L"Zwiększ";
			this->zwiekszToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::zwiększToolStripMenuItem_Click);
			// 
			// zmniejszToolStripMenuItem
			// 
			this->zmniejszToolStripMenuItem->Name = L"zmniejszToolStripMenuItem";
			this->zmniejszToolStripMenuItem->ShortcutKeyDisplayString = L"Alt+E";
			this->zmniejszToolStripMenuItem->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Alt | System::Windows::Forms::Keys::E));
			this->zmniejszToolStripMenuItem->Size = System::Drawing::Size(160, 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(292, 273);
			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 zwiększToolStripMenuItem_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--;

			 }
};
}

