Курсовая работа: Основы разработки электронного учебника
Application->Terminate();
}
//---------------------------------------------------------------------------
void __fastcall TForm2::TreeView1DblClick(TObject *Sender)
{
if (Form2->TreeView1->Selected->AbsoluteIndex==1)
{Form2->Memo1->Lines->LoadFromFile("pages/1.dat");
a=Form2->Memo1->Lines->Text;
};
if (Form2->TreeView1->Selected->AbsoluteIndex==2)
{Form2->Memo1->Lines->LoadFromFile("pages/2.dat");
a=Form2->Memo1->Lines->Text;
};
if (Form2->TreeView1->Selected->AbsoluteIndex==3)
{Form2->Memo1->Lines->LoadFromFile("pages/3.dat");
a=Form2->Memo1->Lines->Text;
};
if (Form2->TreeView1->Selected->AbsoluteIndex==4)
{Form2->Memo1->Lines->LoadFromFile("pages/4.dat");
a=Form2->Memo1->Lines->Text;
};
if (Form2->TreeView1->Selected->AbsoluteIndex==5)
{Form2->Memo1->Lines->LoadFromFile("pages/5.dat");
a=Form2->Memo1->Lines->Text;
};
if (Form2->TreeView1->Selected->AbsoluteIndex==6)
{Form2->Memo1->Lines->LoadFromFile("pages/6.dat");
a=Form2->Memo1->Lines->Text;
};