#include <string>

using namespace std;
using namespace System;

#pragma once

namespace winForm1{

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(string laArray, int length)
{
InitializeComponent();
//constructor code
}

protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::RichTextBox^ richTextBox1;
protected:
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::RichTextBox^ richTextBox2;
private: System::Windows::Forms::RichTextBox^ richTextBox3;
private: System::Windows::Forms::RichTextBox^ richTextBox4;
private: System::Windows::Forms::RichTextBox^ richTextBox5;
private: System::Windows::Forms::RichTextBox^ richTextBox6;
private: System::Windows::Forms::RichTextBox^ richTextBox7;
private: System::Windows::Forms::RichTextBox^ richTextBox8;
private: System::Windows::Forms::RichTextBox^ richTextBox9;
private: System::Windows::Forms::RichTextBox^ richTextBox10;
private: System::Windows::Forms::RichTextBox^ richTextBox11;
private: System::Windows::Forms::RichTextBox^ richTextBox12;
private: System::Windows::Forms::Button^ button2;
private: System::Windows::Forms::Button^ button3;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::Label^ label3;
private: System::Windows::Forms::Label^ label4;
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::Label^ label6;
private: System::Windows::Forms::Label^ label7;
private: System::Windows::Forms::Label^ label8;
private: System::Windows::Forms::Label^ label9;
private: System::Windows::Forms::Label^ label10;
private: System::Windows::Forms::Label^ label11;
private: System::Windows::Forms::Label^ label12;

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->richTextBox1 = (gcnew System::Windows::Forms::RichTextBox());
this->button1 = (gcnew System::Windows::Forms::Button());
this->richTextBox2 = (gcnew System::Windows::Forms::RichTextBox());
this->richTextBox3 = (gcnew System::Windows::Forms::RichTextBox());
this->richTextBox4 = (gcnew System::Windows::Forms::RichTextBox());
this->richTextBox5 = (gcnew System::Windows::Forms::RichTextBox());
this->richTextBox6 = (gcnew System::Windows::Forms::RichTextBox());
this->richTextBox7 = (gcnew System::Windows::Forms::RichTextBox());
this->richTextBox8 = (gcnew System::Windows::Forms::RichTextBox());
this->richTextBox9 = (gcnew System::Windows::Forms::RichTextBox());
this->richTextBox10 = (gcnew System::Windows::Forms::RichTextBox());
this->richTextBox11 = (gcnew System::Windows::Forms::RichTextBox());
this->richTextBox12 = (gcnew System::Windows::Forms::RichTextBox());
this->button2 = (gcnew System::Windows::Forms::Button());
this->button3 = (gcnew System::Windows::Forms::Button());
this->label1 = (gcnew System::Windows::Forms::Label());
this->label2 = (gcnew System::Windows::Forms::Label());
this->label3 = (gcnew System::Windows::Forms::Label());
this->label4 = (gcnew System::Windows::Forms::Label());
this->label5 = (gcnew System::Windows::Forms::Label());
this->label6 = (gcnew System::Windows::Forms::Label());
this->label7 = (gcnew System::Windows::Forms::Label());
this->label8 = (gcnew System::Windows::Forms::Label());
this->label9 = (gcnew System::Windows::Forms::Label());
this->label10 = (gcnew System::Windows::Forms::Label());
this->label11 = (gcnew System::Windows::Forms::Label());
this->label12 = (gcnew System::Windows::Forms::Label());
this->SuspendLayout();
//
// richTextBox1
//
this->richTextBox1->Location = System::Drawing::Point(40, 42);
this->richTextBox1->Name = L"richTextBox1";
this->richTextBox1->Size = System::Drawing::Size(100, 20);
this->richTextBox1->TabIndex = 0;
this->richTextBox1->Text = L"";
this->richTextBox1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
this->richTextBox1->TextChanged += gcnew System::EventHandler(this, &Form1::richTextBox1_TextChanged);
//
// button1
//
this->button1->Location = System::Drawing::Point(40, 320);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(75, 23);
this->button1->TabIndex = 1;
this->button1->Text = L"&FFmpeg";
this->button1->UseVisualStyleBackColor = true;
this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
//
// richTextBox2
//
this->richTextBox2->Location = System::Drawing::Point(146, 42);
this->richTextBox2->Name = L"richTextBox2";
this->richTextBox2->Size = System::Drawing::Size(100, 20);
this->richTextBox2->TabIndex = 2;
this->richTextBox2->Text = L"";
this->richTextBox2->TextChanged += gcnew System::EventHandler(this, &Form1::richTextBox2_TextChanged);
//
// richTextBox3
//
this->richTextBox3->Location = System::Drawing::Point(252, 42);
this->richTextBox3->Name = L"richTextBox3";
this->richTextBox3->Size = System::Drawing::Size(100, 20);
this->richTextBox3->TabIndex = 3;
this->richTextBox3->Text = L"";
//
// richTextBox4
//
this->richTextBox4->Location = System::Drawing::Point(358, 42);
this->richTextBox4->Name = L"richTextBox4";
this->richTextBox4->Size = System::Drawing::Size(100, 20);
this->richTextBox4->TabIndex = 4;
this->richTextBox4->Text = L"";
//
// richTextBox5
//
this->richTextBox5->Location = System::Drawing::Point(40, 119);
this->richTextBox5->Name = L"richTextBox5";
this->richTextBox5->Size = System::Drawing::Size(100, 20);
this->richTextBox5->TabIndex = 5;
this->richTextBox5->Text = L"";
//
// richTextBox6
//
this->richTextBox6->Location = System::Drawing::Point(146, 119);
this->richTextBox6->Name = L"richTextBox6";
this->richTextBox6->Size = System::Drawing::Size(100, 20);
this->richTextBox6->TabIndex = 6;
this->richTextBox6->Text = L"";
//
// richTextBox7
//
this->richTextBox7->Location = System::Drawing::Point(252, 119);
this->richTextBox7->Name = L"richTextBox7";
this->richTextBox7->Size = System::Drawing::Size(100, 20);
this->richTextBox7->TabIndex = 7;
this->richTextBox7->Text = L"";
//
// richTextBox8
//
this->richTextBox8->Location = System::Drawing::Point(358, 119);
this->richTextBox8->Name = L"richTextBox8";
this->richTextBox8->Size = System::Drawing::Size(100, 20);
this->richTextBox8->TabIndex = 8;
this->richTextBox8->Text = L"";
//
// richTextBox9
//
this->richTextBox9->Location = System::Drawing::Point(40, 191);
this->richTextBox9->Name = L"richTextBox9";
this->richTextBox9->Size = System::Drawing::Size(100, 20);
this->richTextBox9->TabIndex = 9;
this->richTextBox9->Text = L"";
//
// richTextBox10
//
this->richTextBox10->Location = System::Drawing::Point(146, 191);
this->richTextBox10->Name = L"richTextBox10";
this->richTextBox10->Size = System::Drawing::Size(100, 20);
this->richTextBox10->TabIndex = 10;
this->richTextBox10->Text = L"";
//
// richTextBox11
//
this->richTextBox11->Location = System::Drawing::Point(252, 191);
this->richTextBox11->Name = L"richTextBox11";
this->richTextBox11->Size = System::Drawing::Size(100, 20);
this->richTextBox11->TabIndex = 11;
this->richTextBox11->Text = L"";
//
// richTextBox12
//
this->richTextBox12->Location = System::Drawing::Point(358, 191);
this->richTextBox12->Name = L"richTextBox12";
this->richTextBox12->Size = System::Drawing::Size(100, 20);
this->richTextBox12->TabIndex = 12;
this->richTextBox12->Text = L"";
//
// button2
//
this->button2->Location = System::Drawing::Point(146, 320);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(75, 23);
this->button2->TabIndex = 13;
this->button2->Text = L"&IDv3";
this->button2->UseVisualStyleBackColor = true;
this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);
//
// button3
//
this->button3->Location = System::Drawing::Point(382, 320);
this->button3->Name = L"button3";
this->button3->Size = System::Drawing::Size(75, 23);
this->button3->TabIndex = 14;
this->button3->Text = L"&WriteXML";
this->button3->UseVisualStyleBackColor = true;
this->button3->Click += gcnew System::EventHandler(this, &Form1::button3_Click);
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(40, 26);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(35, 13);
this->label1->TabIndex = 15;
this->label1->Text = L"Title";
this->label1->Click += gcnew System::EventHandler(this, &Form1::label1_Click);
//
// label2
//
this->label2->AutoSize = true;
this->label2->Location = System::Drawing::Point(143, 26);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(35, 13);
this->label2->TabIndex = 16;
this->label2->Text = L"Describtion";
//
// label3
//
this->label3->AutoSize = true;
this->label3->Location = System::Drawing::Point(249, 26);
this->label3->Name = L"label3";
this->label3->Size = System::Drawing::Size(35, 13);
this->label3->TabIndex = 17;
this->label3->Text = L"Rating";
//
// label4
//
this->label4->AutoSize = true;
this->label4->Location = System::Drawing::Point(355, 26);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(35, 13);
this->label4->TabIndex = 18;
this->label4->Text = L"Artist";
//
// label5
//
this->label5->AutoSize = true;
this->label5->Location = System::Drawing::Point(37, 103);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(35, 13);
this->label5->TabIndex = 19;
this->label5->Text = L"Album";
//
// label6
//
this->label6->AutoSize = true;
this->label6->Location = System::Drawing::Point(143, 103);
this->label6->Name = L"label6";
this->label6->Size = System::Drawing::Size(35, 13);
this->label6->TabIndex = 20;
this->label6->Text = L"Year";
//
// label7
//
this->label7->AutoSize = true;
this->label7->Location = System::Drawing::Point(249, 103);
this->label7->Name = L"label7";
this->label7->Size = System::Drawing::Size(35, 13);
this->label7->TabIndex = 21;
this->label7->Text = L"Track";
//
// label8
//
this->label8->AutoSize = true;
this->label8->Location = System::Drawing::Point(355, 103);
this->label8->Name = L"label8";
this->label8->Size = System::Drawing::Size(35, 13);
this->label8->TabIndex = 22;
this->label8->Text = L"Genre";
//
// label9
//
this->label9->AutoSize = true;
this->label9->Location = System::Drawing::Point(40, 175);
this->label9->Name = L"label9";
this->label9->Size = System::Drawing::Size(35, 13);
this->label9->TabIndex = 23;
this->label9->Text = L"Comment";
//
// label10
//
this->label10->AutoSize = true;
this->label10->Location = System::Drawing::Point(143, 175);
this->label10->Name = L"label10";
this->label10->Size = System::Drawing::Size(41, 13);
this->label10->TabIndex = 24;
this->label10->Text = L"Bitrate";
//
// label11
//
this->label11->AutoSize = true;
this->label11->Location = System::Drawing::Point(249, 175);
this->label11->Name = L"label11";
this->label11->Size = System::Drawing::Size(41, 13);
this->label11->TabIndex = 25;
this->label11->Text = L"Duration";
//
// label12
//
this->label12->AutoSize = true;
this->label12->Location = System::Drawing::Point(355, 175);
this->label12->Name = L"label12";
this->label12->Size = System::Drawing::Size(41, 13);
this->label12->TabIndex = 26;
this->label12->Text = L"Unused";
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(551, 368);
this->Controls->Add(this->label12);
this->Controls->Add(this->label11);
this->Controls->Add(this->label10);
this->Controls->Add(this->label9);
this->Controls->Add(this->label8);
this->Controls->Add(this->label7);
this->Controls->Add(this->label6);
this->Controls->Add(this->label5);
this->Controls->Add(this->label4);
this->Controls->Add(this->label3);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Controls->Add(this->button3);
this->Controls->Add(this->button2);
this->Controls->Add(this->button1);
this->Controls->Add(this->richTextBox12);
this->Controls->Add(this->richTextBox11);
this->Controls->Add(this->richTextBox10);
this->Controls->Add(this->richTextBox9);
this->Controls->Add(this->richTextBox8);
this->Controls->Add(this->richTextBox7);
this->Controls->Add(this->richTextBox6);
this->Controls->Add(this->richTextBox5);
this->Controls->Add(this->richTextBox4);
this->Controls->Add(this->richTextBox3);
this->Controls->Add(this->richTextBox2);
this->Controls->Add(this->richTextBox1);
this->Name = L"Form1";
this->Text = L"Form1";
this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
this->ResumeLayout(false);
this->PerformLayout();

}
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
LoadMyFile (laArray, 11);
//LoadMyFile (string laArray[], int length);
}
private: System::Void richTextBox1_TextChanged(System::Object^ sender, System::EventArgs^ e) {

}
private: System::Void richTextBox2_TextChanged(System::Object^ sender, System::EventArgs^ e) {
}

public: void LoadMyFile(string laArray,int length)
{

// Load the contents of the file into the RichTextBox.
string fileName1, fileName2;
string display2;
fileName1 = laArray[0];
fileName2 = laArray[1];

richTextBox1->LoadFile(fileName1, RichTextBoxStreamType::PlainText );
richTextBox2->LoadFile(fileName2, RichTextBoxStreamType::PlainText );


}
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
}


private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void label1_Click(System::Object^ sender, System::EventArgs^ e) {
}



};
}