#pragma once


namespace Fallbeispiele {

	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>
	/// Zusammenfassung für Form1
	///
	/// Warnung: Wenn Sie den Namen dieser Klasse ändern, müssen Sie auch
	///          die Ressourcendateiname-Eigenschaft für das Tool zur Kompilierung verwalteter Ressourcen ändern,
	///          das allen RESX-Dateien zugewiesen ist, von denen diese Klasse abhängt.
	///          Anderenfalls können die Designer nicht korrekt mit den lokalisierten Ressourcen
	///          arbeiten, die diesem Formular zugewiesen sind.
	/// </summary>
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
		}

	protected:
		/// <summary>
		/// Verwendete Ressourcen bereinigen.
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
   private: System::Windows::Forms::TabControl^  tabControl1;
   private: System::Windows::Forms::TabPage^  tabPage1;
   private: System::Windows::Forms::TabPage^  tabPage2;
   private: System::Windows::Forms::TabPage^  tabPage3;
   private: System::Windows::Forms::Panel^  panel1;
   private: System::Windows::Forms::Button^  button3;
   private: System::Windows::Forms::Button^  button2;
   private: System::Windows::Forms::Button^  button1;
   private: System::Windows::Forms::SplitContainer^  splitContainer1;
   private: System::Windows::Forms::ListBox^  listBox1;
   private: System::Windows::Forms::TextBox^  textBox1;
   private: System::Windows::Forms::Panel^  panel2;
   private: System::Windows::Forms::TextBox^  tb_Hinweis;
   private: System::Windows::Forms::CheckBox^  checkBox3;
   private: System::Windows::Forms::CheckBox^  checkBox2;
   private: System::Windows::Forms::CheckBox^  checkBox1;
   private: System::Windows::Forms::TableLayoutPanel^  tableLayoutPanel1;
   private: System::Windows::Forms::Panel^  panel3;
   private: System::Windows::Forms::Panel^  panel4;
   private: System::Windows::Forms::Panel^  panel5;


	private:
		/// <summary>
		/// Erforderliche Designervariable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Erforderliche Methode für die Designerunterstützung.
		/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
		/// </summary>
		void InitializeComponent(void)
		{
         this->tabControl1 = (gcnew System::Windows::Forms::TabControl());
         this->tabPage1 = (gcnew System::Windows::Forms::TabPage());
         this->panel1 = (gcnew System::Windows::Forms::Panel());
         this->button3 = (gcnew System::Windows::Forms::Button());
         this->button2 = (gcnew System::Windows::Forms::Button());
         this->button1 = (gcnew System::Windows::Forms::Button());
         this->tabPage2 = (gcnew System::Windows::Forms::TabPage());
         this->tableLayoutPanel1 = (gcnew System::Windows::Forms::TableLayoutPanel());
         this->panel3 = (gcnew System::Windows::Forms::Panel());
         this->panel4 = (gcnew System::Windows::Forms::Panel());
         this->panel5 = (gcnew System::Windows::Forms::Panel());
         this->checkBox3 = (gcnew System::Windows::Forms::CheckBox());
         this->checkBox2 = (gcnew System::Windows::Forms::CheckBox());
         this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
         this->tabPage3 = (gcnew System::Windows::Forms::TabPage());
         this->splitContainer1 = (gcnew System::Windows::Forms::SplitContainer());
         this->listBox1 = (gcnew System::Windows::Forms::ListBox());
         this->textBox1 = (gcnew System::Windows::Forms::TextBox());
         this->panel2 = (gcnew System::Windows::Forms::Panel());
         this->tb_Hinweis = (gcnew System::Windows::Forms::TextBox());
         this->tabControl1->SuspendLayout();
         this->tabPage1->SuspendLayout();
         this->panel1->SuspendLayout();
         this->tabPage2->SuspendLayout();
         this->tableLayoutPanel1->SuspendLayout();
         this->tabPage3->SuspendLayout();
         this->splitContainer1->Panel1->SuspendLayout();
         this->splitContainer1->Panel2->SuspendLayout();
         this->splitContainer1->SuspendLayout();
         this->SuspendLayout();
         // 
         // tabControl1
         // 
         this->tabControl1->Controls->Add(this->tabPage1);
         this->tabControl1->Controls->Add(this->tabPage2);
         this->tabControl1->Controls->Add(this->tabPage3);
         this->tabControl1->Dock = System::Windows::Forms::DockStyle::Fill;
         this->tabControl1->Location = System::Drawing::Point(0, 0);
         this->tabControl1->Name = L"tabControl1";
         this->tabControl1->SelectedIndex = 0;
         this->tabControl1->Size = System::Drawing::Size(475, 266);
         this->tabControl1->TabIndex = 0;
         // 
         // tabPage1
         // 
         this->tabPage1->Controls->Add(this->panel1);
         this->tabPage1->Location = System::Drawing::Point(4, 22);
         this->tabPage1->Name = L"tabPage1";
         this->tabPage1->Padding = System::Windows::Forms::Padding(3);
         this->tabPage1->Size = System::Drawing::Size(467, 240);
         this->tabPage1->TabIndex = 0;
         this->tabPage1->Text = L"Fallbeispiel 1";
         this->tabPage1->UseVisualStyleBackColor = true;
         // 
         // panel1
         // 
         this->panel1->BackColor = System::Drawing::Color::Gainsboro;
         this->panel1->Controls->Add(this->button3);
         this->panel1->Controls->Add(this->button2);
         this->panel1->Controls->Add(this->button1);
         this->panel1->Dock = System::Windows::Forms::DockStyle::Right;
         this->panel1->Location = System::Drawing::Point(320, 3);
         this->panel1->Name = L"panel1";
         this->panel1->Size = System::Drawing::Size(144, 234);
         this->panel1->TabIndex = 0;
         // 
         // button3
         // 
         this->button3->Location = System::Drawing::Point(35, 162);
         this->button3->Name = L"button3";
         this->button3->Size = System::Drawing::Size(75, 23);
         this->button3->TabIndex = 2;
         this->button3->Text = L"button3";
         this->button3->UseVisualStyleBackColor = true;
         // 
         // button2
         // 
         this->button2->Location = System::Drawing::Point(35, 102);
         this->button2->Name = L"button2";
         this->button2->Size = System::Drawing::Size(75, 23);
         this->button2->TabIndex = 1;
         this->button2->Text = L"button2";
         this->button2->UseVisualStyleBackColor = true;
         // 
         // button1
         // 
         this->button1->Location = System::Drawing::Point(35, 42);
         this->button1->Name = L"button1";
         this->button1->Size = System::Drawing::Size(75, 23);
         this->button1->TabIndex = 0;
         this->button1->Text = L"button1";
         this->button1->UseVisualStyleBackColor = true;
         // 
         // tabPage2
         // 
         this->tabPage2->Controls->Add(this->tableLayoutPanel1);
         this->tabPage2->Controls->Add(this->checkBox3);
         this->tabPage2->Controls->Add(this->checkBox2);
         this->tabPage2->Controls->Add(this->checkBox1);
         this->tabPage2->Location = System::Drawing::Point(4, 22);
         this->tabPage2->Name = L"tabPage2";
         this->tabPage2->Padding = System::Windows::Forms::Padding(30);
         this->tabPage2->Size = System::Drawing::Size(467, 240);
         this->tabPage2->TabIndex = 1;
         this->tabPage2->Text = L"Fallbeispiel 2";
         this->tabPage2->UseVisualStyleBackColor = true;
         // 
         // tableLayoutPanel1
         // 
         this->tableLayoutPanel1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) 
            | System::Windows::Forms::AnchorStyles::Left) 
            | System::Windows::Forms::AnchorStyles::Right));
         this->tableLayoutPanel1->ColumnCount = 1;
         this->tableLayoutPanel1->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle()));
         this->tableLayoutPanel1->Controls->Add(this->panel3, 0, 0);
         this->tableLayoutPanel1->Controls->Add(this->panel4, 0, 1);
         this->tableLayoutPanel1->Controls->Add(this->panel5, 0, 2);
         this->tableLayoutPanel1->Location = System::Drawing::Point(156, 33);
         this->tableLayoutPanel1->Name = L"tableLayoutPanel1";
         this->tableLayoutPanel1->RowCount = 3;
         this->tableLayoutPanel1->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 33.33333F)));
         this->tableLayoutPanel1->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 33.33333F)));
         this->tableLayoutPanel1->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 33.33333F)));
         this->tableLayoutPanel1->Size = System::Drawing::Size(278, 174);
         this->tableLayoutPanel1->TabIndex = 3;
         // 
         // panel3
         // 
         this->panel3->Dock = System::Windows::Forms::DockStyle::Fill;
         this->panel3->Location = System::Drawing::Point(0, 0);
         this->panel3->Margin = System::Windows::Forms::Padding(0);
         this->panel3->Name = L"panel3";
         this->panel3->Size = System::Drawing::Size(278, 58);
         this->panel3->TabIndex = 0;
         // 
         // panel4
         // 
         this->panel4->Dock = System::Windows::Forms::DockStyle::Fill;
         this->panel4->Location = System::Drawing::Point(0, 58);
         this->panel4->Margin = System::Windows::Forms::Padding(0);
         this->panel4->Name = L"panel4";
         this->panel4->Size = System::Drawing::Size(278, 58);
         this->panel4->TabIndex = 1;
         // 
         // panel5
         // 
         this->panel5->Dock = System::Windows::Forms::DockStyle::Fill;
         this->panel5->Location = System::Drawing::Point(0, 116);
         this->panel5->Margin = System::Windows::Forms::Padding(0);
         this->panel5->Name = L"panel5";
         this->panel5->Size = System::Drawing::Size(278, 58);
         this->panel5->TabIndex = 2;
         // 
         // checkBox3
         // 
         this->checkBox3->Anchor = System::Windows::Forms::AnchorStyles::Left;
         this->checkBox3->AutoSize = true;
         this->checkBox3->Location = System::Drawing::Point(55, 158);
         this->checkBox3->Name = L"checkBox3";
         this->checkBox3->Size = System::Drawing::Size(48, 17);
         this->checkBox3->TabIndex = 2;
         this->checkBox3->Text = L"Gold";
         this->checkBox3->UseVisualStyleBackColor = true;
         this->checkBox3->Click += gcnew System::EventHandler(this, &Form1::checkBox3_Click);
         // 
         // checkBox2
         // 
         this->checkBox2->Anchor = System::Windows::Forms::AnchorStyles::Left;
         this->checkBox2->AutoSize = true;
         this->checkBox2->Location = System::Drawing::Point(55, 112);
         this->checkBox2->Name = L"checkBox2";
         this->checkBox2->Size = System::Drawing::Size(43, 17);
         this->checkBox2->TabIndex = 1;
         this->checkBox2->Text = L"Rot";
         this->checkBox2->UseVisualStyleBackColor = true;
         this->checkBox2->Click += gcnew System::EventHandler(this, &Form1::checkBox2_Click);
         // 
         // checkBox1
         // 
         this->checkBox1->Anchor = System::Windows::Forms::AnchorStyles::Left;
         this->checkBox1->AutoSize = true;
         this->checkBox1->Location = System::Drawing::Point(55, 66);
         this->checkBox1->Name = L"checkBox1";
         this->checkBox1->Size = System::Drawing::Size(67, 17);
         this->checkBox1->TabIndex = 0;
         this->checkBox1->Text = L"Schwarz";
         this->checkBox1->UseVisualStyleBackColor = true;
         this->checkBox1->Click += gcnew System::EventHandler(this, &Form1::checkBox1_Click);
         // 
         // tabPage3
         // 
         this->tabPage3->Controls->Add(this->splitContainer1);
         this->tabPage3->Controls->Add(this->panel2);
         this->tabPage3->Controls->Add(this->tb_Hinweis);
         this->tabPage3->Location = System::Drawing::Point(4, 22);
         this->tabPage3->Name = L"tabPage3";
         this->tabPage3->Padding = System::Windows::Forms::Padding(30);
         this->tabPage3->Size = System::Drawing::Size(467, 240);
         this->tabPage3->TabIndex = 2;
         this->tabPage3->Text = L"Fallbeispiel 3";
         this->tabPage3->UseVisualStyleBackColor = true;
         // 
         // splitContainer1
         // 
         this->splitContainer1->Dock = System::Windows::Forms::DockStyle::Fill;
         this->splitContainer1->Location = System::Drawing::Point(30, 77);
         this->splitContainer1->Name = L"splitContainer1";
         // 
         // splitContainer1.Panel1
         // 
         this->splitContainer1->Panel1->Controls->Add(this->listBox1);
         // 
         // splitContainer1.Panel2
         // 
         this->splitContainer1->Panel2->Controls->Add(this->textBox1);
         this->splitContainer1->Size = System::Drawing::Size(407, 133);
         this->splitContainer1->SplitterDistance = 134;
         this->splitContainer1->TabIndex = 6;
         // 
         // listBox1
         // 
         this->listBox1->AllowDrop = true;
         this->listBox1->Dock = System::Windows::Forms::DockStyle::Fill;
         this->listBox1->FormattingEnabled = true;
         this->listBox1->Items->AddRange(gcnew cli::array< System::Object^  >(3) {L"Element 1", L"Element 2", L"Element 3"});
         this->listBox1->Location = System::Drawing::Point(0, 0);
         this->listBox1->Name = L"listBox1";
         this->listBox1->Size = System::Drawing::Size(134, 121);
         this->listBox1->TabIndex = 0;
         // 
         // textBox1
         // 
         this->textBox1->AllowDrop = true;
         this->textBox1->Dock = System::Windows::Forms::DockStyle::Fill;
         this->textBox1->Location = System::Drawing::Point(0, 0);
         this->textBox1->Multiline = true;
         this->textBox1->Name = L"textBox1";
         this->textBox1->Size = System::Drawing::Size(269, 133);
         this->textBox1->TabIndex = 1;
         this->textBox1->Text = L"Hier können Sie einen Text eingeben.";
         this->textBox1->Resize += gcnew System::EventHandler(this, &Form1::textBox1_Resize);
         // 
         // panel2
         // 
         this->panel2->Dock = System::Windows::Forms::DockStyle::Top;
         this->panel2->Location = System::Drawing::Point(30, 62);
         this->panel2->Name = L"panel2";
         this->panel2->Size = System::Drawing::Size(407, 15);
         this->panel2->TabIndex = 7;
         // 
         // tb_Hinweis
         // 
         this->tb_Hinweis->Dock = System::Windows::Forms::DockStyle::Top;
         this->tb_Hinweis->Location = System::Drawing::Point(30, 30);
         this->tb_Hinweis->Margin = System::Windows::Forms::Padding(10);
         this->tb_Hinweis->Multiline = true;
         this->tb_Hinweis->Name = L"tb_Hinweis";
         this->tb_Hinweis->ReadOnly = true;
         this->tb_Hinweis->Size = System::Drawing::Size(407, 32);
         this->tb_Hinweis->TabIndex = 5;
         this->tb_Hinweis->Text = L"Hier könnte eine Überschrift oder ein erläuternder Text stehen.";
         // 
         // Form1
         // 
         this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
         this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
         this->ClientSize = System::Drawing::Size(475, 266);
         this->Controls->Add(this->tabControl1);
         this->Name = L"Form1";
         this->Text = L"Layout-Beispiele";
         this->tabControl1->ResumeLayout(false);
         this->tabPage1->ResumeLayout(false);
         this->panel1->ResumeLayout(false);
         this->tabPage2->ResumeLayout(false);
         this->tabPage2->PerformLayout();
         this->tableLayoutPanel1->ResumeLayout(false);
         this->tabPage3->ResumeLayout(false);
         this->tabPage3->PerformLayout();
         this->splitContainer1->Panel1->ResumeLayout(false);
         this->splitContainer1->Panel2->ResumeLayout(false);
         this->splitContainer1->Panel2->PerformLayout();
         this->splitContainer1->ResumeLayout(false);
         this->ResumeLayout(false);

      }
#pragma endregion
private: System::Void textBox1_Resize(System::Object^  sender, System::EventArgs^  e) {
            textBox1->Height = listBox1->Height;
         }

private: System::Void checkBox1_Click(System::Object^  sender, System::EventArgs^  e) 
         {
            if (checkBox1->Checked == true)
               tableLayoutPanel1->Controls[0]->BackColor = Color::Black;
            else
               tableLayoutPanel1->Controls[0]->BackColor = tableLayoutPanel1->BackColor;
         }
private: System::Void checkBox2_Click(System::Object^  sender, System::EventArgs^  e) 
         {
            if (checkBox2->Checked == true)
               tableLayoutPanel1->Controls[1]->BackColor = Color::Red;
            else
               tableLayoutPanel1->Controls[1]->BackColor = tableLayoutPanel1->BackColor;
         }
private: System::Void checkBox3_Click(System::Object^  sender, System::EventArgs^  e) 
         {
            if (checkBox3->Checked == true)
               tableLayoutPanel1->Controls[2]->BackColor = Color::Gold;
            else
               tableLayoutPanel1->Controls[2]->BackColor = tableLayoutPanel1->BackColor;
         }
};
}

