#pragma once

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;


namespace Dialoge {

	/// <summary>
	/// Zusammenfassung für OptionenNMDialog
	///
	/// 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 OptionenNMDialog : public System::Windows::Forms::Form
	{
    private:
        Form^ form;

	public:
		OptionenNMDialog(Form^ form)
		{
			InitializeComponent();
		
         this->form = form;
		}

	protected:
		/// <summary>
		/// Verwendete Ressourcen bereinigen.
		/// </summary>
		~OptionenNMDialog()
		{
			if (components)
			{
				delete components;
			}
		}
   private: System::Windows::Forms::Button^  btnCancel;
   private: System::Windows::Forms::Button^  btnOK;
   private: System::Windows::Forms::GroupBox^  groupBox2;
   public: System::Windows::Forms::RadioButton^  radioButton6;
   public: System::Windows::Forms::RadioButton^  radioButton5;
   public: System::Windows::Forms::RadioButton^  radioButton4;
   private: System::Windows::Forms::GroupBox^  groupBox1;
   public: System::Windows::Forms::RadioButton^  radioButton3;
   public: System::Windows::Forms::RadioButton^  radioButton2;
   public: System::Windows::Forms::RadioButton^  radioButton1;
   private: System::Windows::Forms::Button^  btnUebernehmen;
   public: 


	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->btnCancel = (gcnew System::Windows::Forms::Button());
            this->btnOK = (gcnew System::Windows::Forms::Button());
            this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
            this->radioButton6 = (gcnew System::Windows::Forms::RadioButton());
            this->radioButton5 = (gcnew System::Windows::Forms::RadioButton());
            this->radioButton4 = (gcnew System::Windows::Forms::RadioButton());
            this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
            this->radioButton3 = (gcnew System::Windows::Forms::RadioButton());
            this->radioButton2 = (gcnew System::Windows::Forms::RadioButton());
            this->radioButton1 = (gcnew System::Windows::Forms::RadioButton());
            this->btnUebernehmen = (gcnew System::Windows::Forms::Button());
            this->groupBox2->SuspendLayout();
            this->groupBox1->SuspendLayout();
            this->SuspendLayout();
            // 
            // btnCancel
            // 
            this->btnCancel->DialogResult = System::Windows::Forms::DialogResult::Cancel;
            this->btnCancel->Location = System::Drawing::Point(210, 174);
            this->btnCancel->Name = L"btnCancel";
            this->btnCancel->Size = System::Drawing::Size(85, 23);
            this->btnCancel->TabIndex = 7;
            this->btnCancel->Text = L"Abbrechen";
            this->btnCancel->UseVisualStyleBackColor = true;
            this->btnCancel->Click += gcnew System::EventHandler(this, &OptionenNMDialog::btnCancel_Click);
            // 
            // btnOK
            // 
            this->btnOK->DialogResult = System::Windows::Forms::DialogResult::OK;
            this->btnOK->Location = System::Drawing::Point(123, 174);
            this->btnOK->Name = L"btnOK";
            this->btnOK->Size = System::Drawing::Size(85, 23);
            this->btnOK->TabIndex = 6;
            this->btnOK->Text = L"OK";
            this->btnOK->UseVisualStyleBackColor = true;
            this->btnOK->Click += gcnew System::EventHandler(this, &OptionenNMDialog::btnOK_Click);
            // 
            // groupBox2
            // 
            this->groupBox2->Controls->Add(this->radioButton6);
            this->groupBox2->Controls->Add(this->radioButton5);
            this->groupBox2->Controls->Add(this->radioButton4);
            this->groupBox2->Location = System::Drawing::Point(195, 33);
            this->groupBox2->Name = L"groupBox2";
            this->groupBox2->Size = System::Drawing::Size(149, 127);
            this->groupBox2->TabIndex = 5;
            this->groupBox2->TabStop = false;
            this->groupBox2->Text = L"Hintergrundfarbe";
            // 
            // radioButton6
            // 
            this->radioButton6->AutoSize = true;
            this->radioButton6->Location = System::Drawing::Point(36, 94);
            this->radioButton6->Name = L"radioButton6";
            this->radioButton6->Size = System::Drawing::Size(66, 17);
            this->radioButton6->TabIndex = 2;
            this->radioButton6->TabStop = true;
            this->radioButton6->Text = L"Schwarz";
            this->radioButton6->UseVisualStyleBackColor = true;
            // 
            // radioButton5
            // 
            this->radioButton5->AutoSize = true;
            this->radioButton5->Location = System::Drawing::Point(36, 63);
            this->radioButton5->Name = L"radioButton5";
            this->radioButton5->Size = System::Drawing::Size(50, 17);
            this->radioButton5->TabIndex = 1;
            this->radioButton5->TabStop = true;
            this->radioButton5->Text = L"Weiß";
            this->radioButton5->UseVisualStyleBackColor = true;
            // 
            // radioButton4
            // 
            this->radioButton4->AutoSize = true;
            this->radioButton4->Location = System::Drawing::Point(36, 32);
            this->radioButton4->Name = L"radioButton4";
            this->radioButton4->Size = System::Drawing::Size(68, 17);
            this->radioButton4->TabIndex = 0;
            this->radioButton4->TabStop = true;
            this->radioButton4->Text = L"Standard";
            this->radioButton4->UseVisualStyleBackColor = true;
            // 
            // groupBox1
            // 
            this->groupBox1->Controls->Add(this->radioButton3);
            this->groupBox1->Controls->Add(this->radioButton2);
            this->groupBox1->Controls->Add(this->radioButton1);
            this->groupBox1->Location = System::Drawing::Point(40, 33);
            this->groupBox1->Name = L"groupBox1";
            this->groupBox1->Size = System::Drawing::Size(149, 127);
            this->groupBox1->TabIndex = 4;
            this->groupBox1->TabStop = false;
            this->groupBox1->Text = L"Vordergrundfarbe";
            // 
            // radioButton3
            // 
            this->radioButton3->AutoSize = true;
            this->radioButton3->Location = System::Drawing::Point(29, 94);
            this->radioButton3->Name = L"radioButton3";
            this->radioButton3->Size = System::Drawing::Size(42, 17);
            this->radioButton3->TabIndex = 2;
            this->radioButton3->TabStop = true;
            this->radioButton3->Text = L"Rot";
            this->radioButton3->UseVisualStyleBackColor = true;
            // 
            // radioButton2
            // 
            this->radioButton2->AutoSize = true;
            this->radioButton2->Location = System::Drawing::Point(29, 63);
            this->radioButton2->Name = L"radioButton2";
            this->radioButton2->Size = System::Drawing::Size(50, 17);
            this->radioButton2->TabIndex = 1;
            this->radioButton2->TabStop = true;
            this->radioButton2->Text = L"Weiß";
            this->radioButton2->UseVisualStyleBackColor = true;
            // 
            // radioButton1
            // 
            this->radioButton1->AutoSize = true;
            this->radioButton1->Location = System::Drawing::Point(29, 32);
            this->radioButton1->Name = L"radioButton1";
            this->radioButton1->Size = System::Drawing::Size(66, 17);
            this->radioButton1->TabIndex = 0;
            this->radioButton1->TabStop = true;
            this->radioButton1->Text = L"Schwarz";
            this->radioButton1->UseVisualStyleBackColor = true;
            // 
            // btnUebernehmen
            // 
            this->btnUebernehmen->Location = System::Drawing::Point(297, 174);
            this->btnUebernehmen->Name = L"btnUebernehmen";
            this->btnUebernehmen->Size = System::Drawing::Size(85, 23);
            this->btnUebernehmen->TabIndex = 8;
            this->btnUebernehmen->Text = L"Übernehmen";
            this->btnUebernehmen->UseVisualStyleBackColor = true;
            this->btnUebernehmen->Click += gcnew System::EventHandler(this, &OptionenNMDialog::btnUebernehmen_Click);
            // 
            // OptionenNMDialog
            // 
            this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
            this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
            this->ClientSize = System::Drawing::Size(391, 209);
            this->Controls->Add(this->btnUebernehmen);
            this->Controls->Add(this->btnCancel);
            this->Controls->Add(this->btnOK);
            this->Controls->Add(this->groupBox2);
            this->Controls->Add(this->groupBox1);
            this->Name = L"OptionenNMDialog";
            this->Text = L"OptionenNMDialog";
            this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &OptionenNMDialog::OptionenNMDialog_FormClosing);
            this->groupBox2->ResumeLayout(false);
            this->groupBox2->PerformLayout();
            this->groupBox1->ResumeLayout(false);
            this->groupBox1->PerformLayout();
            this->ResumeLayout(false);

        }
#pragma endregion
   private: 
      void btnOK_Click(Object^  sender, EventArgs^  e) 
      {
         btnUebernehmen_Click(btnOK, e);
         this->Close();
      }
      void btnCancel_Click(Object^  sender, EventArgs^  e) 
      {
         this->Close();
      }
      void btnUebernehmen_Click(Object^  sender, EventArgs^  e) 
      {
         // Vordergrundfarbe
         if (this->radioButton1->Checked)
             form->ForeColor = Color::Black;
         if (this->radioButton2->Checked)
             form->ForeColor = Color::White;
         if (this->radioButton3->Checked)
             form->ForeColor = Color::Red;
             
         // Hintergrundfarbe
         if (this->radioButton4->Checked)
             form->BackColor = SystemColors::Control;
         if (this->radioButton5->Checked)
             form->BackColor = Color::White;
         if (this->radioButton6->Checked)
             form->BackColor = Color::Black;
      }

      void OptionenNMDialog_FormClosing(Object^, FormClosingEventArgs^ );
};
}
