#pragma once
#include "Kunde.h"
#include "Filmfigur.h"

namespace Datenbindung {

	using namespace System;
	using namespace System::ComponentModel;
   using namespace System::Collections::Generic;
	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
	{
   private:
        enum class Staedte { Amsterdam, Berlin, Oslo, Paris };
        array<Filmfigur^>^ cast;
        List<Filmfigur^>^ cast2;
        List<Filmfigur^>^ cast3;
        BindingSource^ bs;
        Kunde^ jim;



	public:
		Form1(void)
		{
			InitializeComponent();

        /*** Code für Registerseite KOMPONENTEN 1 ***/
            
            lb_1_1->DataBindings->Add("Text", tb_1_1, "Text");
            tb_1_1->Select();

            


            
        /*** Code für Registerseite KOMPONENTEN 2 ***/
            
            // TextBox binden
            tb_2_1->DataBindings->Add("Text", this, "ClientSize");  
            
            // Bindung mit selbst definierter Parse-Formatierung
            Binding^ bnd1 = gcnew Binding("Text", this, "Size", false);
            bnd1->Parse += gcnew ConvertEventHandler(this, &Form1::SizeStringToSize);
            tb_2_2->DataBindings->Add(bnd1);
            
            // weitere Bindungen
            tb_2_3->DataBindings->Add("Text", this, "Text", false, DataSourceUpdateMode::OnPropertyChanged);      
            tb_2_4->DataBindings->Add("Text", this, "Opacity", true, DataSourceUpdateMode::Never);      
            
            // Bindung der Bildlaufleiste
            sb_2_1->Value = 100;
            Binding^ bnd2 = gcnew Binding("Opacity", sb_2_1, "Value");
            bnd2->Format += gcnew ConvertEventHandler(this, &Form1::IntToPercent);
            this->DataBindings->Add(bnd2);
            
            

        /*** Code für Registerseite OBJEKTE ***/
            
            // Objekt erzeugen und Daten in Labels laden
            jim = gcnew Kunde("Jim", "Meininger", "HLQ_305");
            lb_3_5->Text = jim->Vorname;
            lb_3_6->Text = jim->Nachname;
            lb_3_7->Text = jim->ID;
            
            // Bindung an Objekteigenschaft
            tb_3_1->DataBindings->Add("Text", jim, "ID");
            
            

        /*** Code für Registerseiten ARRAYS I und II ***/
            
            cast = gcnew array<Filmfigur^>(3);
            cast[0] = gcnew Filmfigur("Detektiv", "Peter Falk");
            cast[1] = gcnew Filmfigur("Mörder", "Anthony Perkins");
            cast[2] = gcnew Filmfigur("Opfer", "Drew Barrymoore");

            // ARRAYS I
            lb_4_6->Text = cast[0]->NameFigur;
            lb_4_7->Text = cast[1]->NameFigur;
            lb_4_8->Text = cast[2]->NameFigur;
             
            tb_4_1->DataBindings->Add("Text", cast[2], "NameFigur");
            
            
            // ARRAYS II
            bs = gcnew BindingSource();
            for each (Filmfigur ^f in cast)
              bs->Add(f);

            tb_5_1->DataBindings->Add("Text", bs, "NameFigur");
            tb_5_2->DataBindings->Add("Text", bs, "NameSchauspieler");
  
           
            
        /*** Code für Registerseite AUFLISTUNGEN ***/
            cast2 = gcnew List<Filmfigur^>(3);
            cast2->Add(gcnew Filmfigur("Detektiv", "Peter Falk"));
            cast2->Add(gcnew Filmfigur("Mörder", "Anthony Perkins"));
            cast2->Add(gcnew Filmfigur("Opfer", "Drew Barrymoore"));
                        
            bindingSource1->DataSource = cast2;
            tb_6_1->DataBindings->Add("Text", bindingSource1, "NameFigur");
            tb_6_2->DataBindings->Add("Text", bindingSource1, "NameSchauspieler");
  
           
            
        /*** Code für Registerseite LISTBOX ***/
            
            cast3 = gcnew List<Filmfigur^>(3);
            cast3->Add(gcnew Filmfigur("Detektiv", "Peter Falk"));
            cast3->Add(gcnew Filmfigur("Mörder", "Anthony Perkins"));
            cast3->Add(gcnew Filmfigur("Opfer", "Drew Barrymoore"));
            
            listBox_7_1->DataSource = cast3;
            listBox_7_1->DisplayMember = "NameFigur";
            listBox_7_1->ValueMember = "NameSchauspieler";
            
            tb_7_1->DataBindings->Add("Text", listBox_7_1, "SelectedIndex", true, DataSourceUpdateMode::OnPropertyChanged);
            lb_7_1->DataBindings->Add("Text", listBox_7_1, "SelectedValue", false, DataSourceUpdateMode::Never);
     
      }

	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::TextBox^  descr_1;
   private: System::Windows::Forms::TextBox^  tb_1_1;
   private: System::Windows::Forms::Label^  lb_1_1;
   private: System::Windows::Forms::TabPage^  tabPage2;
   private: System::Windows::Forms::TextBox^  tb_2_4;
   private: System::Windows::Forms::Label^  lb_2_4;
   private: System::Windows::Forms::VScrollBar^  sb_2_1;
   private: System::Windows::Forms::TextBox^  tb_2_3;
   private: System::Windows::Forms::Label^  lb_2_3;
   private: System::Windows::Forms::TextBox^  tb_2_2;
   private: System::Windows::Forms::TextBox^  tb_2_1;
   private: System::Windows::Forms::Label^  lb_2_2;
   private: System::Windows::Forms::Label^  lb_2_1;
   private: System::Windows::Forms::TextBox^  descr_2;
   private: System::Windows::Forms::TabPage^  tabPage3;
   private: System::Windows::Forms::TextBox^  descr_3;
   private: System::Windows::Forms::Label^  lb_3_7;
   private: System::Windows::Forms::Label^  lb_3_6;
   private: System::Windows::Forms::Label^  lb_3_5;
   private: System::Windows::Forms::Label^  lb_3_4;
   private: System::Windows::Forms::Label^  lb_3_3;
   private: System::Windows::Forms::Label^  lb_3_2;
   private: System::Windows::Forms::Button^  btn_3_2;
   private: System::Windows::Forms::Button^  btn_3_1;
   private: System::Windows::Forms::TextBox^  tb_3_1;
   private: System::Windows::Forms::Label^  lb_3_1;
   private: System::Windows::Forms::TabPage^  tabPage4;
   private: System::Windows::Forms::TextBox^  descr_4;
   private: System::Windows::Forms::Button^  btn_4_2;
   private: System::Windows::Forms::Button^  btn_4_1;
   private: System::Windows::Forms::Label^  lb_4_8;
   private: System::Windows::Forms::Label^  lb_4_7;
   private: System::Windows::Forms::Label^  lb_4_6;
   private: System::Windows::Forms::Label^  lb_4_4;
   private: System::Windows::Forms::Label^  lb_4_3;
   private: System::Windows::Forms::Label^  lb_4_2;
   private: System::Windows::Forms::Label^  lb_4_1;
   private: System::Windows::Forms::TextBox^  tb_4_1;
   private: System::Windows::Forms::TabPage^  tabPage5;
   private: System::Windows::Forms::TextBox^  descr_5;
   private: System::Windows::Forms::Button^  btn_5_3;
   private: System::Windows::Forms::Button^  btn_5_2;
   private: System::Windows::Forms::Button^  btn_5_1;
   private: System::Windows::Forms::TextBox^  tb_5_2;
   private: System::Windows::Forms::TextBox^  tb_5_1;
   private: System::Windows::Forms::Label^  lb_5_3;
   private: System::Windows::Forms::Label^  lb_5_2;
   private: System::Windows::Forms::Label^  lb_5_1;
   private: System::Windows::Forms::TabPage^  tabPage6;
   private: System::Windows::Forms::BindingSource^  bindingSource1;
   private: System::Windows::Forms::BindingNavigator^  bindingNavigator1;
   private: System::Windows::Forms::ToolStripButton^  bindingNavigatorAddNewItem;
   private: System::Windows::Forms::ToolStripLabel^  bindingNavigatorCountItem;
   private: System::Windows::Forms::ToolStripButton^  bindingNavigatorDeleteItem;
   private: System::Windows::Forms::ToolStripButton^  bindingNavigatorMoveFirstItem;
   private: System::Windows::Forms::ToolStripButton^  bindingNavigatorMovePreviousItem;
   private: System::Windows::Forms::ToolStripSeparator^  bindingNavigatorSeparator;
   private: System::Windows::Forms::ToolStripTextBox^  bindingNavigatorPositionItem;
   private: System::Windows::Forms::ToolStripSeparator^  bindingNavigatorSeparator1;
   private: System::Windows::Forms::ToolStripButton^  bindingNavigatorMoveNextItem;
   private: System::Windows::Forms::ToolStripButton^  bindingNavigatorMoveLastItem;
   private: System::Windows::Forms::ToolStripSeparator^  bindingNavigatorSeparator2;
   private: System::Windows::Forms::Button^  btn_6_1;
   private: System::Windows::Forms::TextBox^  tb_6_2;
   private: System::Windows::Forms::TextBox^  tb_6_1;
   private: System::Windows::Forms::Label^  lb_6_3;
   private: System::Windows::Forms::Label^  lb_6_2;
   private: System::Windows::Forms::Label^  lb_6_1;
   private: System::Windows::Forms::TabPage^  tabPage7;
   private: System::Windows::Forms::TextBox^  descr_7;
   private: System::Windows::Forms::Label^  lb_7_1;
   private: System::Windows::Forms::Button^  btn_7_1;
   private: System::Windows::Forms::TextBox^  tb_7_1;
   private: System::Windows::Forms::ListBox^  listBox_7_1;
   private: System::ComponentModel::IContainer^  components;

	private:
		/// <summary>
		/// Erforderliche Designervariable.
		/// </summary>


#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->components = (gcnew System::ComponentModel::Container());
         System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
         this->tabControl1 = (gcnew System::Windows::Forms::TabControl());
         this->tabPage1 = (gcnew System::Windows::Forms::TabPage());
         this->descr_1 = (gcnew System::Windows::Forms::TextBox());
         this->tb_1_1 = (gcnew System::Windows::Forms::TextBox());
         this->lb_1_1 = (gcnew System::Windows::Forms::Label());
         this->tabPage2 = (gcnew System::Windows::Forms::TabPage());
         this->tb_2_4 = (gcnew System::Windows::Forms::TextBox());
         this->lb_2_4 = (gcnew System::Windows::Forms::Label());
         this->sb_2_1 = (gcnew System::Windows::Forms::VScrollBar());
         this->tb_2_3 = (gcnew System::Windows::Forms::TextBox());
         this->lb_2_3 = (gcnew System::Windows::Forms::Label());
         this->tb_2_2 = (gcnew System::Windows::Forms::TextBox());
         this->tb_2_1 = (gcnew System::Windows::Forms::TextBox());
         this->lb_2_2 = (gcnew System::Windows::Forms::Label());
         this->lb_2_1 = (gcnew System::Windows::Forms::Label());
         this->descr_2 = (gcnew System::Windows::Forms::TextBox());
         this->tabPage3 = (gcnew System::Windows::Forms::TabPage());
         this->descr_3 = (gcnew System::Windows::Forms::TextBox());
         this->lb_3_7 = (gcnew System::Windows::Forms::Label());
         this->lb_3_6 = (gcnew System::Windows::Forms::Label());
         this->lb_3_5 = (gcnew System::Windows::Forms::Label());
         this->lb_3_4 = (gcnew System::Windows::Forms::Label());
         this->lb_3_3 = (gcnew System::Windows::Forms::Label());
         this->lb_3_2 = (gcnew System::Windows::Forms::Label());
         this->btn_3_2 = (gcnew System::Windows::Forms::Button());
         this->btn_3_1 = (gcnew System::Windows::Forms::Button());
         this->tb_3_1 = (gcnew System::Windows::Forms::TextBox());
         this->lb_3_1 = (gcnew System::Windows::Forms::Label());
         this->tabPage4 = (gcnew System::Windows::Forms::TabPage());
         this->descr_4 = (gcnew System::Windows::Forms::TextBox());
         this->btn_4_2 = (gcnew System::Windows::Forms::Button());
         this->btn_4_1 = (gcnew System::Windows::Forms::Button());
         this->lb_4_8 = (gcnew System::Windows::Forms::Label());
         this->lb_4_7 = (gcnew System::Windows::Forms::Label());
         this->lb_4_6 = (gcnew System::Windows::Forms::Label());
         this->lb_4_4 = (gcnew System::Windows::Forms::Label());
         this->lb_4_3 = (gcnew System::Windows::Forms::Label());
         this->lb_4_2 = (gcnew System::Windows::Forms::Label());
         this->lb_4_1 = (gcnew System::Windows::Forms::Label());
         this->tb_4_1 = (gcnew System::Windows::Forms::TextBox());
         this->tabPage5 = (gcnew System::Windows::Forms::TabPage());
         this->descr_5 = (gcnew System::Windows::Forms::TextBox());
         this->btn_5_3 = (gcnew System::Windows::Forms::Button());
         this->btn_5_2 = (gcnew System::Windows::Forms::Button());
         this->btn_5_1 = (gcnew System::Windows::Forms::Button());
         this->tb_5_2 = (gcnew System::Windows::Forms::TextBox());
         this->tb_5_1 = (gcnew System::Windows::Forms::TextBox());
         this->lb_5_3 = (gcnew System::Windows::Forms::Label());
         this->lb_5_2 = (gcnew System::Windows::Forms::Label());
         this->lb_5_1 = (gcnew System::Windows::Forms::Label());
         this->tabPage6 = (gcnew System::Windows::Forms::TabPage());
         this->bindingNavigator1 = (gcnew System::Windows::Forms::BindingNavigator(this->components));
         this->bindingNavigatorAddNewItem = (gcnew System::Windows::Forms::ToolStripButton());
         this->bindingSource1 = (gcnew System::Windows::Forms::BindingSource(this->components));
         this->bindingNavigatorCountItem = (gcnew System::Windows::Forms::ToolStripLabel());
         this->bindingNavigatorDeleteItem = (gcnew System::Windows::Forms::ToolStripButton());
         this->bindingNavigatorMoveFirstItem = (gcnew System::Windows::Forms::ToolStripButton());
         this->bindingNavigatorMovePreviousItem = (gcnew System::Windows::Forms::ToolStripButton());
         this->bindingNavigatorSeparator = (gcnew System::Windows::Forms::ToolStripSeparator());
         this->bindingNavigatorPositionItem = (gcnew System::Windows::Forms::ToolStripTextBox());
         this->bindingNavigatorSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
         this->bindingNavigatorMoveNextItem = (gcnew System::Windows::Forms::ToolStripButton());
         this->bindingNavigatorMoveLastItem = (gcnew System::Windows::Forms::ToolStripButton());
         this->bindingNavigatorSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
         this->btn_6_1 = (gcnew System::Windows::Forms::Button());
         this->tb_6_2 = (gcnew System::Windows::Forms::TextBox());
         this->tb_6_1 = (gcnew System::Windows::Forms::TextBox());
         this->lb_6_3 = (gcnew System::Windows::Forms::Label());
         this->lb_6_2 = (gcnew System::Windows::Forms::Label());
         this->lb_6_1 = (gcnew System::Windows::Forms::Label());
         this->tabPage7 = (gcnew System::Windows::Forms::TabPage());
         this->descr_7 = (gcnew System::Windows::Forms::TextBox());
         this->lb_7_1 = (gcnew System::Windows::Forms::Label());
         this->btn_7_1 = (gcnew System::Windows::Forms::Button());
         this->tb_7_1 = (gcnew System::Windows::Forms::TextBox());
         this->listBox_7_1 = (gcnew System::Windows::Forms::ListBox());
         this->tabControl1->SuspendLayout();
         this->tabPage1->SuspendLayout();
         this->tabPage2->SuspendLayout();
         this->tabPage3->SuspendLayout();
         this->tabPage4->SuspendLayout();
         this->tabPage5->SuspendLayout();
         this->tabPage6->SuspendLayout();
         (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->bindingNavigator1))->BeginInit();
         this->bindingNavigator1->SuspendLayout();
         (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->bindingSource1))->BeginInit();
         this->tabPage7->SuspendLayout();
         this->SuspendLayout();
         // 
         // tabControl1
         // 
         this->tabControl1->Controls->Add(this->tabPage1);
         this->tabControl1->Controls->Add(this->tabPage2);
         this->tabControl1->Controls->Add(this->tabPage3);
         this->tabControl1->Controls->Add(this->tabPage4);
         this->tabControl1->Controls->Add(this->tabPage5);
         this->tabControl1->Controls->Add(this->tabPage6);
         this->tabControl1->Controls->Add(this->tabPage7);
         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(565, 269);
         this->tabControl1->TabIndex = 1;
         // 
         // tabPage1
         // 
         this->tabPage1->AutoScroll = true;
         this->tabPage1->Controls->Add(this->descr_1);
         this->tabPage1->Controls->Add(this->tb_1_1);
         this->tabPage1->Controls->Add(this->lb_1_1);
         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(557, 243);
         this->tabPage1->TabIndex = 0;
         this->tabPage1->Text = L"Komponenten 1";
         this->tabPage1->UseVisualStyleBackColor = true;
         // 
         // descr_1
         // 
         this->descr_1->Location = System::Drawing::Point(8, 40);
         this->descr_1->Multiline = true;
         this->descr_1->Name = L"descr_1";
         this->descr_1->ReadOnly = true;
         this->descr_1->Size = System::Drawing::Size(419, 41);
         this->descr_1->TabIndex = 2;
         this->descr_1->Text = L"Tippen Sie einen Text in das Textfeld ein. Die Eingabe wird sofort von dem Beschr" 
            L"iftungsfeld daneben widergespiegelt.";
         // 
         // tb_1_1
         // 
         this->tb_1_1->Location = System::Drawing::Point(66, 97);
         this->tb_1_1->Name = L"tb_1_1";
         this->tb_1_1->Size = System::Drawing::Size(148, 20);
         this->tb_1_1->TabIndex = 1;
         // 
         // lb_1_1
         // 
         this->lb_1_1->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
         this->lb_1_1->Location = System::Drawing::Point(220, 97);
         this->lb_1_1->Name = L"lb_1_1";
         this->lb_1_1->Size = System::Drawing::Size(148, 20);
         this->lb_1_1->TabIndex = 0;
         // 
         // tabPage2
         // 
         this->tabPage2->Controls->Add(this->tb_2_4);
         this->tabPage2->Controls->Add(this->lb_2_4);
         this->tabPage2->Controls->Add(this->sb_2_1);
         this->tabPage2->Controls->Add(this->tb_2_3);
         this->tabPage2->Controls->Add(this->lb_2_3);
         this->tabPage2->Controls->Add(this->tb_2_2);
         this->tabPage2->Controls->Add(this->tb_2_1);
         this->tabPage2->Controls->Add(this->lb_2_2);
         this->tabPage2->Controls->Add(this->lb_2_1);
         this->tabPage2->Controls->Add(this->descr_2);
         this->tabPage2->Location = System::Drawing::Point(4, 22);
         this->tabPage2->Name = L"tabPage2";
         this->tabPage2->Size = System::Drawing::Size(557, 243);
         this->tabPage2->TabIndex = 4;
         this->tabPage2->Text = L"Komponenten 2";
         this->tabPage2->UseVisualStyleBackColor = true;
         // 
         // tb_2_4
         // 
         this->tb_2_4->Location = System::Drawing::Point(163, 166);
         this->tb_2_4->Name = L"tb_2_4";
         this->tb_2_4->Size = System::Drawing::Size(100, 20);
         this->tb_2_4->TabIndex = 12;
         // 
         // lb_2_4
         // 
         this->lb_2_4->AutoSize = true;
         this->lb_2_4->Location = System::Drawing::Point(23, 169);
         this->lb_2_4->Name = L"lb_2_4";
         this->lb_2_4->Size = System::Drawing::Size(46, 13);
         this->lb_2_4->TabIndex = 11;
         this->lb_2_4->Text = L"Opacity:";
         // 
         // sb_2_1
         // 
         this->sb_2_1->Dock = System::Windows::Forms::DockStyle::Right;
         this->sb_2_1->Location = System::Drawing::Point(540, 0);
         this->sb_2_1->Maximum = 109;
         this->sb_2_1->Minimum = 10;
         this->sb_2_1->Name = L"sb_2_1";
         this->sb_2_1->Size = System::Drawing::Size(17, 243);
         this->sb_2_1->TabIndex = 10;
         this->sb_2_1->Value = 100;
         // 
         // tb_2_3
         // 
         this->tb_2_3->Location = System::Drawing::Point(163, 139);
         this->tb_2_3->Name = L"tb_2_3";
         this->tb_2_3->Size = System::Drawing::Size(279, 20);
         this->tb_2_3->TabIndex = 9;
         // 
         // lb_2_3
         // 
         this->lb_2_3->AutoSize = true;
         this->lb_2_3->Location = System::Drawing::Point(23, 142);
         this->lb_2_3->Name = L"lb_2_3";
         this->lb_2_3->Size = System::Drawing::Size(93, 13);
         this->lb_2_3->TabIndex = 8;
         this->lb_2_3->Text = L"Titel des Fensters:";
         // 
         // tb_2_2
         // 
         this->tb_2_2->Location = System::Drawing::Point(163, 112);
         this->tb_2_2->Name = L"tb_2_2";
         this->tb_2_2->Size = System::Drawing::Size(100, 20);
         this->tb_2_2->TabIndex = 7;
         // 
         // tb_2_1
         // 
         this->tb_2_1->Location = System::Drawing::Point(163, 86);
         this->tb_2_1->Name = L"tb_2_1";
         this->tb_2_1->Size = System::Drawing::Size(100, 20);
         this->tb_2_1->TabIndex = 6;
         // 
         // lb_2_2
         // 
         this->lb_2_2->AutoSize = true;
         this->lb_2_2->Location = System::Drawing::Point(23, 115);
         this->lb_2_2->Name = L"lb_2_2";
         this->lb_2_2->Size = System::Drawing::Size(102, 13);
         this->lb_2_2->TabIndex = 5;
         this->lb_2_2->Text = L"Größe des Fensters:";
         // 
         // lb_2_1
         // 
         this->lb_2_1->AutoSize = true;
         this->lb_2_1->Location = System::Drawing::Point(23, 89);
         this->lb_2_1->Name = L"lb_2_1";
         this->lb_2_1->Size = System::Drawing::Size(134, 13);
         this->lb_2_1->TabIndex = 4;
         this->lb_2_1->Text = L"Clientbereich des Fensters:";
         // 
         // descr_2
         // 
         this->descr_2->Location = System::Drawing::Point(23, 14);
         this->descr_2->Multiline = true;
         this->descr_2->Name = L"descr_2";
         this->descr_2->ReadOnly = true;
         this->descr_2->Size = System::Drawing::Size(419, 66);
         this->descr_2->TabIndex = 3;
         this->descr_2->Text = resources->GetString(L"descr_2.Text");
         // 
         // tabPage3
         // 
         this->tabPage3->Controls->Add(this->descr_3);
         this->tabPage3->Controls->Add(this->lb_3_7);
         this->tabPage3->Controls->Add(this->lb_3_6);
         this->tabPage3->Controls->Add(this->lb_3_5);
         this->tabPage3->Controls->Add(this->lb_3_4);
         this->tabPage3->Controls->Add(this->lb_3_3);
         this->tabPage3->Controls->Add(this->lb_3_2);
         this->tabPage3->Controls->Add(this->btn_3_2);
         this->tabPage3->Controls->Add(this->btn_3_1);
         this->tabPage3->Controls->Add(this->tb_3_1);
         this->tabPage3->Controls->Add(this->lb_3_1);
         this->tabPage3->Location = System::Drawing::Point(4, 22);
         this->tabPage3->Name = L"tabPage3";
         this->tabPage3->Padding = System::Windows::Forms::Padding(3);
         this->tabPage3->Size = System::Drawing::Size(557, 243);
         this->tabPage3->TabIndex = 1;
         this->tabPage3->Text = L"Objekte";
         this->tabPage3->UseVisualStyleBackColor = true;
         // 
         // descr_3
         // 
         this->descr_3->BackColor = System::Drawing::SystemColors::Control;
         this->descr_3->Location = System::Drawing::Point(300, 16);
         this->descr_3->Multiline = true;
         this->descr_3->Name = L"descr_3";
         this->descr_3->Size = System::Drawing::Size(240, 140);
         this->descr_3->TabIndex = 10;
         this->descr_3->Text = resources->GetString(L"descr_3.Text");
         // 
         // lb_3_7
         // 
         this->lb_3_7->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
         this->lb_3_7->Location = System::Drawing::Point(156, 134);
         this->lb_3_7->Name = L"lb_3_7";
         this->lb_3_7->Size = System::Drawing::Size(100, 22);
         this->lb_3_7->TabIndex = 9;
         this->lb_3_7->Text = L" ";
         this->lb_3_7->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
         // 
         // lb_3_6
         // 
         this->lb_3_6->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
         this->lb_3_6->Location = System::Drawing::Point(156, 109);
         this->lb_3_6->Name = L"lb_3_6";
         this->lb_3_6->Size = System::Drawing::Size(100, 22);
         this->lb_3_6->TabIndex = 8;
         this->lb_3_6->Text = L" ";
         this->lb_3_6->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
         // 
         // lb_3_5
         // 
         this->lb_3_5->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
         this->lb_3_5->Location = System::Drawing::Point(156, 85);
         this->lb_3_5->Name = L"lb_3_5";
         this->lb_3_5->Size = System::Drawing::Size(100, 22);
         this->lb_3_5->TabIndex = 7;
         this->lb_3_5->Text = L" ";
         this->lb_3_5->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
         // 
         // lb_3_4
         // 
         this->lb_3_4->AutoSize = true;
         this->lb_3_4->Location = System::Drawing::Point(129, 139);
         this->lb_3_4->Name = L"lb_3_4";
         this->lb_3_4->Size = System::Drawing::Size(21, 13);
         this->lb_3_4->TabIndex = 6;
         this->lb_3_4->Text = L"ID:";
         // 
         // lb_3_3
         // 
         this->lb_3_3->AutoSize = true;
         this->lb_3_3->Location = System::Drawing::Point(88, 114);
         this->lb_3_3->Name = L"lb_3_3";
         this->lb_3_3->Size = System::Drawing::Size(62, 13);
         this->lb_3_3->TabIndex = 5;
         this->lb_3_3->Text = L"Nachname:";
         // 
         // lb_3_2
         // 
         this->lb_3_2->AutoSize = true;
         this->lb_3_2->Location = System::Drawing::Point(98, 90);
         this->lb_3_2->Name = L"lb_3_2";
         this->lb_3_2->Size = System::Drawing::Size(52, 13);
         this->lb_3_2->TabIndex = 4;
         this->lb_3_2->Text = L"Vorname:";
         // 
         // btn_3_2
         // 
         this->btn_3_2->Location = System::Drawing::Point(91, 199);
         this->btn_3_2->Name = L"btn_3_2";
         this->btn_3_2->Size = System::Drawing::Size(165, 23);
         this->btn_3_2->TabIndex = 3;
         this->btn_3_2->Text = L"Anzeige aktualisieren";
         this->btn_3_2->UseVisualStyleBackColor = true;
         this->btn_3_2->Click += gcnew System::EventHandler(this, &Form1::btn_3_2_Click);
         // 
         // btn_3_1
         // 
         this->btn_3_1->Location = System::Drawing::Point(91, 170);
         this->btn_3_1->Name = L"btn_3_1";
         this->btn_3_1->Size = System::Drawing::Size(165, 23);
         this->btn_3_1->TabIndex = 2;
         this->btn_3_1->Text = L"ID ändern";
         this->btn_3_1->UseVisualStyleBackColor = true;
         this->btn_3_1->Click += gcnew System::EventHandler(this, &Form1::btn_3_1_Click);
         // 
         // tb_3_1
         // 
         this->tb_3_1->Location = System::Drawing::Point(376, 162);
         this->tb_3_1->Name = L"tb_3_1";
         this->tb_3_1->Size = System::Drawing::Size(100, 20);
         this->tb_3_1->TabIndex = 1;
         // 
         // lb_3_1
         // 
         this->lb_3_1->AutoSize = true;
         this->lb_3_1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
            static_cast<System::Byte>(0)));
         this->lb_3_1->Location = System::Drawing::Point(18, 66);
         this->lb_3_1->Name = L"lb_3_1";
         this->lb_3_1->Size = System::Drawing::Size(116, 13);
         this->lb_3_1->TabIndex = 0;
         this->lb_3_1->Text = L"Daten des Objekts:";
         // 
         // tabPage4
         // 
         this->tabPage4->Controls->Add(this->descr_4);
         this->tabPage4->Controls->Add(this->btn_4_2);
         this->tabPage4->Controls->Add(this->btn_4_1);
         this->tabPage4->Controls->Add(this->lb_4_8);
         this->tabPage4->Controls->Add(this->lb_4_7);
         this->tabPage4->Controls->Add(this->lb_4_6);
         this->tabPage4->Controls->Add(this->lb_4_4);
         this->tabPage4->Controls->Add(this->lb_4_3);
         this->tabPage4->Controls->Add(this->lb_4_2);
         this->tabPage4->Controls->Add(this->lb_4_1);
         this->tabPage4->Controls->Add(this->tb_4_1);
         this->tabPage4->Location = System::Drawing::Point(4, 22);
         this->tabPage4->Name = L"tabPage4";
         this->tabPage4->Size = System::Drawing::Size(557, 243);
         this->tabPage4->TabIndex = 2;
         this->tabPage4->Text = L"Arrays I";
         this->tabPage4->UseVisualStyleBackColor = true;
         // 
         // descr_4
         // 
         this->descr_4->Location = System::Drawing::Point(285, 25);
         this->descr_4->Multiline = true;
         this->descr_4->Name = L"descr_4";
         this->descr_4->ReadOnly = true;
         this->descr_4->Size = System::Drawing::Size(264, 130);
         this->descr_4->TabIndex = 14;
         this->descr_4->Text = resources->GetString(L"descr_4.Text");
         // 
         // btn_4_2
         // 
         this->btn_4_2->Location = System::Drawing::Point(54, 209);
         this->btn_4_2->Name = L"btn_4_2";
         this->btn_4_2->Size = System::Drawing::Size(186, 23);
         this->btn_4_2->TabIndex = 13;
         this->btn_4_2->Text = L"Anzeige aktualisieren";
         this->btn_4_2->UseVisualStyleBackColor = true;
         this->btn_4_2->Click += gcnew System::EventHandler(this, &Form1::btn_4_2_Click);
         // 
         // btn_4_1
         // 
         this->btn_4_1->Location = System::Drawing::Point(54, 180);
         this->btn_4_1->Name = L"btn_4_1";
         this->btn_4_1->Size = System::Drawing::Size(186, 23);
         this->btn_4_1->TabIndex = 12;
         this->btn_4_1->Text = L"Opfer -> Verdächtiger";
         this->btn_4_1->UseVisualStyleBackColor = true;
         this->btn_4_1->Click += gcnew System::EventHandler(this, &Form1::btn_4_1_Click);
         // 
         // lb_4_8
         // 
         this->lb_4_8->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
         this->lb_4_8->Location = System::Drawing::Point(132, 107);
         this->lb_4_8->Name = L"lb_4_8";
         this->lb_4_8->Size = System::Drawing::Size(108, 26);
         this->lb_4_8->TabIndex = 10;
         this->lb_4_8->Text = L" ";
         this->lb_4_8->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
         // 
         // lb_4_7
         // 
         this->lb_4_7->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
         this->lb_4_7->Location = System::Drawing::Point(132, 77);
         this->lb_4_7->Name = L"lb_4_7";
         this->lb_4_7->Size = System::Drawing::Size(108, 26);
         this->lb_4_7->TabIndex = 9;
         this->lb_4_7->Text = L" ";
         this->lb_4_7->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
         // 
         // lb_4_6
         // 
         this->lb_4_6->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
         this->lb_4_6->Location = System::Drawing::Point(132, 47);
         this->lb_4_6->Name = L"lb_4_6";
         this->lb_4_6->Size = System::Drawing::Size(108, 26);
         this->lb_4_6->TabIndex = 8;
         this->lb_4_6->Text = L" ";
         this->lb_4_6->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
         // 
         // lb_4_4
         // 
         this->lb_4_4->AutoSize = true;
         this->lb_4_4->Location = System::Drawing::Point(51, 114);
         this->lb_4_4->Name = L"lb_4_4";
         this->lb_4_4->Size = System::Drawing::Size(63, 13);
         this->lb_4_4->TabIndex = 6;
         this->lb_4_4->Text = L"3. Element: ";
         // 
         // lb_4_3
         // 
         this->lb_4_3->AutoSize = true;
         this->lb_4_3->Location = System::Drawing::Point(51, 84);
         this->lb_4_3->Name = L"lb_4_3";
         this->lb_4_3->Size = System::Drawing::Size(63, 13);
         this->lb_4_3->TabIndex = 5;
         this->lb_4_3->Text = L"2. Element: ";
         // 
         // lb_4_2
         // 
         this->lb_4_2->AutoSize = true;
         this->lb_4_2->Location = System::Drawing::Point(51, 54);
         this->lb_4_2->Name = L"lb_4_2";
         this->lb_4_2->Size = System::Drawing::Size(63, 13);
         this->lb_4_2->TabIndex = 4;
         this->lb_4_2->Text = L"1. Element: ";
         // 
         // lb_4_1
         // 
         this->lb_4_1->AutoSize = true;
         this->lb_4_1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
            static_cast<System::Byte>(0)));
         this->lb_4_1->Location = System::Drawing::Point(8, 25);
         this->lb_4_1->Name = L"lb_4_1";
         this->lb_4_1->Size = System::Drawing::Size(106, 13);
         this->lb_4_1->TabIndex = 3;
         this->lb_4_1->Text = L"Inhalt des Arrays:";
         // 
         // tb_4_1
         // 
         this->tb_4_1->Location = System::Drawing::Point(352, 171);
         this->tb_4_1->Name = L"tb_4_1";
         this->tb_4_1->Size = System::Drawing::Size(125, 20);
         this->tb_4_1->TabIndex = 2;
         // 
         // tabPage5
         // 
         this->tabPage5->Controls->Add(this->descr_5);
         this->tabPage5->Controls->Add(this->btn_5_3);
         this->tabPage5->Controls->Add(this->btn_5_2);
         this->tabPage5->Controls->Add(this->btn_5_1);
         this->tabPage5->Controls->Add(this->tb_5_2);
         this->tabPage5->Controls->Add(this->tb_5_1);
         this->tabPage5->Controls->Add(this->lb_5_3);
         this->tabPage5->Controls->Add(this->lb_5_2);
         this->tabPage5->Controls->Add(this->lb_5_1);
         this->tabPage5->Location = System::Drawing::Point(4, 22);
         this->tabPage5->Name = L"tabPage5";
         this->tabPage5->Size = System::Drawing::Size(557, 243);
         this->tabPage5->TabIndex = 3;
         this->tabPage5->Text = L"Arrays II";
         this->tabPage5->UseVisualStyleBackColor = true;
         // 
         // descr_5
         // 
         this->descr_5->Location = System::Drawing::Point(301, 46);
         this->descr_5->Multiline = true;
         this->descr_5->Name = L"descr_5";
         this->descr_5->ReadOnly = true;
         this->descr_5->Size = System::Drawing::Size(237, 54);
         this->descr_5->TabIndex = 8;
         this->descr_5->Text = L"Mit den Navigationsschaltflächen können Sie die einzelnen Objekte im zugrunde lie" 
            L"genden Array ansteuern.";
         // 
         // btn_5_3
         // 
         this->btn_5_3->Location = System::Drawing::Point(73, 165);
         this->btn_5_3->Name = L"btn_5_3";
         this->btn_5_3->Size = System::Drawing::Size(204, 23);
         this->btn_5_3->TabIndex = 7;
         this->btn_5_3->Text = L"Detektiv umbesetzen";
         this->btn_5_3->UseVisualStyleBackColor = true;
         this->btn_5_3->Click += gcnew System::EventHandler(this, &Form1::btn_5_3_Click);
         // 
         // btn_5_2
         // 
         this->btn_5_2->Location = System::Drawing::Point(177, 133);
         this->btn_5_2->Name = L"btn_5_2";
         this->btn_5_2->Size = System::Drawing::Size(100, 25);
         this->btn_5_2->TabIndex = 6;
         this->btn_5_2->Text = L"<";
         this->btn_5_2->UseVisualStyleBackColor = true;
         this->btn_5_2->Click += gcnew System::EventHandler(this, &Form1::btn_5_2_Click);
         // 
         // btn_5_1
         // 
         this->btn_5_1->Location = System::Drawing::Point(73, 133);
         this->btn_5_1->Name = L"btn_5_1";
         this->btn_5_1->Size = System::Drawing::Size(100, 25);
         this->btn_5_1->TabIndex = 5;
         this->btn_5_1->Text = L">";
         this->btn_5_1->UseVisualStyleBackColor = true;
         this->btn_5_1->Click += gcnew System::EventHandler(this, &Form1::btn_5_1_Click);
         // 
         // tb_5_2
         // 
         this->tb_5_2->Location = System::Drawing::Point(150, 107);
         this->tb_5_2->Name = L"tb_5_2";
         this->tb_5_2->Size = System::Drawing::Size(127, 20);
         this->tb_5_2->TabIndex = 4;
         // 
         // tb_5_1
         // 
         this->tb_5_1->Location = System::Drawing::Point(150, 80);
         this->tb_5_1->Name = L"tb_5_1";
         this->tb_5_1->ReadOnly = true;
         this->tb_5_1->Size = System::Drawing::Size(127, 20);
         this->tb_5_1->TabIndex = 3;
         // 
         // lb_5_3
         // 
         this->lb_5_3->AutoSize = true;
         this->lb_5_3->Location = System::Drawing::Point(70, 107);
         this->lb_5_3->Name = L"lb_5_3";
         this->lb_5_3->Size = System::Drawing::Size(74, 13);
         this->lb_5_3->TabIndex = 2;
         this->lb_5_3->Text = L"Schauspieler: ";
         // 
         // lb_5_2
         // 
         this->lb_5_2->AutoSize = true;
         this->lb_5_2->Location = System::Drawing::Point(107, 83);
         this->lb_5_2->Name = L"lb_5_2";
         this->lb_5_2->Size = System::Drawing::Size(37, 13);
         this->lb_5_2->TabIndex = 1;
         this->lb_5_2->Text = L"Rolle: ";
         // 
         // lb_5_1
         // 
         this->lb_5_1->AutoSize = true;
         this->lb_5_1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
            static_cast<System::Byte>(0)));
         this->lb_5_1->Location = System::Drawing::Point(21, 46);
         this->lb_5_1->Name = L"lb_5_1";
         this->lb_5_1->Size = System::Drawing::Size(93, 13);
         this->lb_5_1->TabIndex = 0;
         this->lb_5_1->Text = L"Aktuelle Figur: ";
         // 
         // tabPage6
         // 
         this->tabPage6->Controls->Add(this->bindingNavigator1);
         this->tabPage6->Controls->Add(this->btn_6_1);
         this->tabPage6->Controls->Add(this->tb_6_2);
         this->tabPage6->Controls->Add(this->tb_6_1);
         this->tabPage6->Controls->Add(this->lb_6_3);
         this->tabPage6->Controls->Add(this->lb_6_2);
         this->tabPage6->Controls->Add(this->lb_6_1);
         this->tabPage6->Location = System::Drawing::Point(4, 22);
         this->tabPage6->Name = L"tabPage6";
         this->tabPage6->Size = System::Drawing::Size(557, 243);
         this->tabPage6->TabIndex = 5;
         this->tabPage6->Text = L"Auflistungen";
         this->tabPage6->UseVisualStyleBackColor = true;
         // 
         // bindingNavigator1
         // 
         this->bindingNavigator1->AddNewItem = this->bindingNavigatorAddNewItem;
         this->bindingNavigator1->BindingSource = this->bindingSource1;
         this->bindingNavigator1->CountItem = this->bindingNavigatorCountItem;
         this->bindingNavigator1->DeleteItem = this->bindingNavigatorDeleteItem;
         this->bindingNavigator1->Dock = System::Windows::Forms::DockStyle::Bottom;
         this->bindingNavigator1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(11) {this->bindingNavigatorMoveFirstItem, 
            this->bindingNavigatorMovePreviousItem, this->bindingNavigatorSeparator, this->bindingNavigatorPositionItem, this->bindingNavigatorCountItem, 
            this->bindingNavigatorSeparator1, this->bindingNavigatorMoveNextItem, this->bindingNavigatorMoveLastItem, this->bindingNavigatorSeparator2, 
            this->bindingNavigatorAddNewItem, this->bindingNavigatorDeleteItem});
         this->bindingNavigator1->Location = System::Drawing::Point(0, 218);
         this->bindingNavigator1->MoveFirstItem = this->bindingNavigatorMoveFirstItem;
         this->bindingNavigator1->MoveLastItem = this->bindingNavigatorMoveLastItem;
         this->bindingNavigator1->MoveNextItem = this->bindingNavigatorMoveNextItem;
         this->bindingNavigator1->MovePreviousItem = this->bindingNavigatorMovePreviousItem;
         this->bindingNavigator1->Name = L"bindingNavigator1";
         this->bindingNavigator1->PositionItem = this->bindingNavigatorPositionItem;
         this->bindingNavigator1->Size = System::Drawing::Size(557, 25);
         this->bindingNavigator1->TabIndex = 6;
         this->bindingNavigator1->Text = L"bindingNavigator1";
         // 
         // bindingNavigatorAddNewItem
         // 
         this->bindingNavigatorAddNewItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
         this->bindingNavigatorAddNewItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"bindingNavigatorAddNewItem.Image")));
         this->bindingNavigatorAddNewItem->Name = L"bindingNavigatorAddNewItem";
         this->bindingNavigatorAddNewItem->RightToLeftAutoMirrorImage = true;
         this->bindingNavigatorAddNewItem->Size = System::Drawing::Size(23, 22);
         this->bindingNavigatorAddNewItem->Text = L"Neu hinzufügen";
         // 
         // bindingNavigatorCountItem
         // 
         this->bindingNavigatorCountItem->Name = L"bindingNavigatorCountItem";
         this->bindingNavigatorCountItem->Size = System::Drawing::Size(44, 22);
         this->bindingNavigatorCountItem->Text = L"von {0}";
         this->bindingNavigatorCountItem->ToolTipText = L"Die Gesamtanzahl der Elemente.";
         // 
         // bindingNavigatorDeleteItem
         // 
         this->bindingNavigatorDeleteItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
         this->bindingNavigatorDeleteItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"bindingNavigatorDeleteItem.Image")));
         this->bindingNavigatorDeleteItem->Name = L"bindingNavigatorDeleteItem";
         this->bindingNavigatorDeleteItem->RightToLeftAutoMirrorImage = true;
         this->bindingNavigatorDeleteItem->Size = System::Drawing::Size(23, 22);
         this->bindingNavigatorDeleteItem->Text = L"Löschen";
         // 
         // bindingNavigatorMoveFirstItem
         // 
         this->bindingNavigatorMoveFirstItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
         this->bindingNavigatorMoveFirstItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"bindingNavigatorMoveFirstItem.Image")));
         this->bindingNavigatorMoveFirstItem->Name = L"bindingNavigatorMoveFirstItem";
         this->bindingNavigatorMoveFirstItem->RightToLeftAutoMirrorImage = true;
         this->bindingNavigatorMoveFirstItem->Size = System::Drawing::Size(23, 22);
         this->bindingNavigatorMoveFirstItem->Text = L"Erste verschieben";
         // 
         // bindingNavigatorMovePreviousItem
         // 
         this->bindingNavigatorMovePreviousItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
         this->bindingNavigatorMovePreviousItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"bindingNavigatorMovePreviousItem.Image")));
         this->bindingNavigatorMovePreviousItem->Name = L"bindingNavigatorMovePreviousItem";
         this->bindingNavigatorMovePreviousItem->RightToLeftAutoMirrorImage = true;
         this->bindingNavigatorMovePreviousItem->Size = System::Drawing::Size(23, 22);
         this->bindingNavigatorMovePreviousItem->Text = L"Vorherige verschieben";
         // 
         // bindingNavigatorSeparator
         // 
         this->bindingNavigatorSeparator->Name = L"bindingNavigatorSeparator";
         this->bindingNavigatorSeparator->Size = System::Drawing::Size(6, 25);
         // 
         // bindingNavigatorPositionItem
         // 
         this->bindingNavigatorPositionItem->AccessibleName = L"Position";
         this->bindingNavigatorPositionItem->AutoSize = false;
         this->bindingNavigatorPositionItem->Name = L"bindingNavigatorPositionItem";
         this->bindingNavigatorPositionItem->Size = System::Drawing::Size(50, 21);
         this->bindingNavigatorPositionItem->Text = L"0";
         this->bindingNavigatorPositionItem->ToolTipText = L"Aktuelle Position";
         // 
         // bindingNavigatorSeparator1
         // 
         this->bindingNavigatorSeparator1->Name = L"bindingNavigatorSeparator1";
         this->bindingNavigatorSeparator1->Size = System::Drawing::Size(6, 25);
         // 
         // bindingNavigatorMoveNextItem
         // 
         this->bindingNavigatorMoveNextItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
         this->bindingNavigatorMoveNextItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"bindingNavigatorMoveNextItem.Image")));
         this->bindingNavigatorMoveNextItem->Name = L"bindingNavigatorMoveNextItem";
         this->bindingNavigatorMoveNextItem->RightToLeftAutoMirrorImage = true;
         this->bindingNavigatorMoveNextItem->Size = System::Drawing::Size(23, 22);
         this->bindingNavigatorMoveNextItem->Text = L"Nächste verschieben";
         // 
         // bindingNavigatorMoveLastItem
         // 
         this->bindingNavigatorMoveLastItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
         this->bindingNavigatorMoveLastItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"bindingNavigatorMoveLastItem.Image")));
         this->bindingNavigatorMoveLastItem->Name = L"bindingNavigatorMoveLastItem";
         this->bindingNavigatorMoveLastItem->RightToLeftAutoMirrorImage = true;
         this->bindingNavigatorMoveLastItem->Size = System::Drawing::Size(23, 22);
         this->bindingNavigatorMoveLastItem->Text = L"Letzte verschieben";
         // 
         // bindingNavigatorSeparator2
         // 
         this->bindingNavigatorSeparator2->Name = L"bindingNavigatorSeparator2";
         this->bindingNavigatorSeparator2->Size = System::Drawing::Size(6, 25);
         // 
         // btn_6_1
         // 
         this->btn_6_1->Location = System::Drawing::Point(73, 146);
         this->btn_6_1->Name = L"btn_6_1";
         this->btn_6_1->Size = System::Drawing::Size(204, 23);
         this->btn_6_1->TabIndex = 5;
         this->btn_6_1->Text = L"Detektiv umbesetzen";
         this->btn_6_1->UseVisualStyleBackColor = true;
         this->btn_6_1->Click += gcnew System::EventHandler(this, &Form1::btn_6_1_Click);
         // 
         // tb_6_2
         // 
         this->tb_6_2->Location = System::Drawing::Point(150, 107);
         this->tb_6_2->Name = L"tb_6_2";
         this->tb_6_2->Size = System::Drawing::Size(127, 20);
         this->tb_6_2->TabIndex = 4;
         // 
         // tb_6_1
         // 
         this->tb_6_1->Location = System::Drawing::Point(150, 80);
         this->tb_6_1->Name = L"tb_6_1";
         this->tb_6_1->ReadOnly = true;
         this->tb_6_1->Size = System::Drawing::Size(127, 20);
         this->tb_6_1->TabIndex = 3;
         // 
         // lb_6_3
         // 
         this->lb_6_3->AutoSize = true;
         this->lb_6_3->Location = System::Drawing::Point(70, 107);
         this->lb_6_3->Name = L"lb_6_3";
         this->lb_6_3->Size = System::Drawing::Size(71, 13);
         this->lb_6_3->TabIndex = 2;
         this->lb_6_3->Text = L"Schauspieler:";
         // 
         // lb_6_2
         // 
         this->lb_6_2->AutoSize = true;
         this->lb_6_2->Location = System::Drawing::Point(107, 83);
         this->lb_6_2->Name = L"lb_6_2";
         this->lb_6_2->Size = System::Drawing::Size(34, 13);
         this->lb_6_2->TabIndex = 1;
         this->lb_6_2->Text = L"Rolle:";
         // 
         // lb_6_1
         // 
         this->lb_6_1->AutoSize = true;
         this->lb_6_1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
            static_cast<System::Byte>(0)));
         this->lb_6_1->Location = System::Drawing::Point(21, 46);
         this->lb_6_1->Name = L"lb_6_1";
         this->lb_6_1->Size = System::Drawing::Size(85, 13);
         this->lb_6_1->TabIndex = 0;
         this->lb_6_1->Text = L"Aktuelle Figur";
         // 
         // tabPage7
         // 
         this->tabPage7->Controls->Add(this->descr_7);
         this->tabPage7->Controls->Add(this->lb_7_1);
         this->tabPage7->Controls->Add(this->btn_7_1);
         this->tabPage7->Controls->Add(this->tb_7_1);
         this->tabPage7->Controls->Add(this->listBox_7_1);
         this->tabPage7->Location = System::Drawing::Point(4, 22);
         this->tabPage7->Name = L"tabPage7";
         this->tabPage7->Size = System::Drawing::Size(557, 243);
         this->tabPage7->TabIndex = 6;
         this->tabPage7->Text = L"ListBox";
         this->tabPage7->UseVisualStyleBackColor = true;
         // 
         // descr_7
         // 
         this->descr_7->Location = System::Drawing::Point(8, 13);
         this->descr_7->Multiline = true;
         this->descr_7->Name = L"descr_7";
         this->descr_7->ReadOnly = true;
         this->descr_7->Size = System::Drawing::Size(541, 54);
         this->descr_7->TabIndex = 5;
         this->descr_7->Text = resources->GetString(L"descr_7.Text");
         // 
         // lb_7_1
         // 
         this->lb_7_1->AutoSize = true;
         this->lb_7_1->Location = System::Drawing::Point(325, 130);
         this->lb_7_1->Name = L"lb_7_1";
         this->lb_7_1->Size = System::Drawing::Size(42, 13);
         this->lb_7_1->TabIndex = 4;
         this->lb_7_1->Text = L" lb_7_1";
         // 
         // btn_7_1
         // 
         this->btn_7_1->Location = System::Drawing::Point(322, 196);
         this->btn_7_1->Name = L"btn_7_1";
         this->btn_7_1->Size = System::Drawing::Size(140, 23);
         this->btn_7_1->TabIndex = 2;
         this->btn_7_1->Text = L"Detektiv umbesetzen";
         this->btn_7_1->UseVisualStyleBackColor = true;
         this->btn_7_1->Click += gcnew System::EventHandler(this, &Form1::btn_7_1_Click);
         // 
         // tb_7_1
         // 
         this->tb_7_1->Location = System::Drawing::Point(322, 86);
         this->tb_7_1->Name = L"tb_7_1";
         this->tb_7_1->Size = System::Drawing::Size(140, 20);
         this->tb_7_1->TabIndex = 1;
         // 
         // listBox_7_1
         // 
         this->listBox_7_1->FormattingEnabled = true;
         this->listBox_7_1->Location = System::Drawing::Point(95, 86);
         this->listBox_7_1->Name = L"listBox_7_1";
         this->listBox_7_1->Size = System::Drawing::Size(195, 134);
         this->listBox_7_1->TabIndex = 0;
         // 
         // Form1
         // 
         this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
         this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
         this->ClientSize = System::Drawing::Size(565, 269);
         this->Controls->Add(this->tabControl1);
         this->Name = L"Form1";
         this->Text = L"Datenbindung";
         this->tabControl1->ResumeLayout(false);
         this->tabPage1->ResumeLayout(false);
         this->tabPage1->PerformLayout();
         this->tabPage2->ResumeLayout(false);
         this->tabPage2->PerformLayout();
         this->tabPage3->ResumeLayout(false);
         this->tabPage3->PerformLayout();
         this->tabPage4->ResumeLayout(false);
         this->tabPage4->PerformLayout();
         this->tabPage5->ResumeLayout(false);
         this->tabPage5->PerformLayout();
         this->tabPage6->ResumeLayout(false);
         this->tabPage6->PerformLayout();
         (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->bindingNavigator1))->EndInit();
         this->bindingNavigator1->ResumeLayout(false);
         this->bindingNavigator1->PerformLayout();
         (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->bindingSource1))->EndInit();
         this->tabPage7->ResumeLayout(false);
         this->tabPage7->PerformLayout();
         this->ResumeLayout(false);

      }
#pragma endregion

private:
        void SizeStringToSize(Object^ sender, ConvertEventArgs^ e)
        {
           if (e->DesiredType != System::Drawing::Size::typeid) 
                return;

            e->Value = dynamic_cast<System::Drawing::Size^> ((gcnew SizeConverter())->ConvertFromString(e->Value->ToString()) );
        }
        void IntToPercent(Object^ sender, ConvertEventArgs^ e)
        {    
           if (e->DesiredType != Double::typeid) 
                return;

            double d = (Int32) e->Value / 100.0;
            e->Value = d;
        }


        void btn_3_1_Click(Object^ sender, EventArgs^ e)
        {
            jim->ID = jim->ID + "1";              
            lb_3_7->Text = jim->ID;
        }

        void btn_3_2_Click(Object^ sender, EventArgs^ e)
        {
            lb_3_5->Text = jim->Vorname;
            lb_3_6->Text = jim->Nachname;
            lb_3_7->Text = jim->ID;
        }

        void btn_4_1_Click(Object^ sender, EventArgs^ e)
        {
           if (String::Compare(cast[2]->NameFigur, 0, "Opf", 0, 3) == 0)
            {
                cast[2]->NameFigur = "Verdächtiger";
                btn_4_1->Text = "Verdächtiger -> Opfer";
            }
            else
            {
                cast[2]->NameFigur = "Opfer";
                btn_4_1->Text = "Opfer -> Verdächtiger";
            }
            lb_4_8->Text = cast[2]->NameFigur;
            tb_4_1->DataBindings["Text"]->ReadValue();
        }

        void btn_4_2_Click(Object^ sender, EventArgs^ e)
        {
            lb_4_6->Text = cast[0]->NameFigur;
            lb_4_7->Text = cast[1]->NameFigur;
            lb_4_8->Text = cast[2]->NameFigur;
        }

        void btn_5_1_Click(Object^ sender, EventArgs^ e)
        {
            bs->MoveNext();
        }

        void btn_5_2_Click(Object^ sender, EventArgs^ e)
        {
            bs->MovePrevious();
        }

        void btn_5_3_Click(Object^ sender, EventArgs^ e)
        {
           if (String::Compare(cast[0]->NameSchauspieler, 0, "Pet", 0, 3) == 0)
            {
                cast[0]->NameSchauspieler = "Humphrey Bogart";
            }
            else
            {
                cast[0]->NameSchauspieler = "Peter Falk";
            }
            tb_5_2->DataBindings["Text"]->ReadValue();
        }
        
        void btn_6_1_Click(Object^ sender, EventArgs^ e)
        {
           if (String::Compare(cast2[0]->NameSchauspieler, 0, "Pet", 0, 3) == 0)
            {
                cast2[0]->NameSchauspieler = "Humphrey Bogart";
            }
            else
            {
                cast2[0]->NameSchauspieler = "Peter Falk";
            }
            tb_6_2->DataBindings["Text"]->ReadValue();
        }

        void btn_7_1_Click(Object^ sender, EventArgs^ e)
        {
            listBox_7_1->BindingContext[cast3]->SuspendBinding();
            
            if (String::Compare(cast3[0]->NameSchauspieler, 0, "Pet", 0, 3) == 0)
            {
                cast3[0] = gcnew Filmfigur("Kommissar", "Lino Ventura");
            }
            else
            {
                cast3[0] = gcnew Filmfigur("Detektiv", "Peter Falk");
            }
            listBox_7_1->SelectedIndex = 0;
            
            listBox_7_1->BindingContext[cast3]->ResumeBinding();
        }


	};
}

