//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "IWBaseComponent"
#pragma link "IWBaseHTML40Component"
#pragma link "IWBaseHTMLComponent"
#pragma link "IWExtCtrls"
#pragma link "IWBaseControl"
#pragma link "IWBaseHTMLControl"
#pragma link "IWCompText"
#pragma link "IWControl"
#pragma link "IWVCLBaseControl"
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}








//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
	int test_total=0;

	//int x = StaticText1->Caption.ToInt();
	//int y = StaticText2->Caption.ToInt();
	//int y = StaticText2->
	//test_total = x + y;

	//StaticText3->Caption = test_total;

	int x = Edit1->Text.ToInt();
	int y = Edit2->Text.ToInt();
	//int y = StaticText2->
	test_total = x + y;

	Edit3->Text = test_total;





}
//---------------------------------------------------------------------------





void __fastcall TForm1::Button2Click(TObject *Sender)
{
	//int test_index = TreeView1->Items->Count;
	//int test_index02 = TreeView1->Items-
	int index = TreeView1->Selected->Index;
	StaticText1->Caption = index;
}
//---------------------------------------------------------------------------


