при добавлении через кнопку Files - закрывая несохраняется
Вопрос: почему и как сохранить при закрытии формы когда используется кнопка Files?
Add(MainForm,10772928,91,154)
{
Left=20
Top=105
Width=306
Height=229
Point(Close)
link(Close,4520806:GetData,[])
}
Add(ListBox,15668395,266,175)
{
Left=65
Top=5
Width=230
Height=185
FileName="test.txt"
}
Add(EventFromData,4520806,91,112)
{
link(onEvent,15668395:doSave,[(156,118)(156,216)])
}
Add(MultiElement,1459833,217,166)
{
link(onEvent1,15668395:doAdd,[(257,172)(257,181)])
}
BEGIN_SDK
Add(EditMulti,8040877,3,3)
{
EventCount=1
WorkCount=2
Width=307
link(doWork1,31869:doExecute,[(55,9)(55,17)])
link(doWork2,13000:doBrowse,[(42,16)(42,54)])
}
Add(MultiElement,14536519,152,38)
{
link(onEvent1,11904:doEvent2,[(190,44)(190,26)])
}
BEGIN_SDK
Add(EditMulti,66027,3,3)
{
EventCount=1
WorkCount=1
link(doWork1,12756:doEvent1,[(8,9)(8,13)])
}
Add(FileSearch,53884,196,129)
{
Ext="*.wav"
link(onSearch,37190:doEvent6,[(243,135)(243,48)])
}
Add(Hub,37190,259,7)
{
InCount=8
OutCount=1
link(onEvent1,66027:onEvent1,[(297,13)(297,9)])
}
Add(FileSearch,12188,119,73)
{
Ext="*.ogg"
link(onSearch,37190:doEvent4,[(201,79)(201,34)])
}
Add(FileSearch,88062,70,10)
{
Ext="*.mp3"
link(onSearch,37190:doEvent1,[(177,16)(177,13)])
}
Add(Hub,12756,14,7)
{
OutCount=8
link(onEvent1,88062:doSearch,[(54,13)(54,16)])
link(onEvent4,12188:doSearch,[(79,34)(79,79)])
link(onEvent6,53884:doSearch,[(121,48)(121,135)])
}
END_SDK
Add(ODialog,31869,108,11)
{
Filter="Audio (mp3, ogg, wav)|*.mp3;*.ogg;*.wav;|MP3|*.mp3;|OGG|*.ogg;|WAVE|*.wav;"
Title="Audio"
Select=1
link(onExecute,11904:doEvent1,[(161,17)(161,19)])
}
Add(Browse,13000,103,48)
{
Title=" Load from folders"
link(onBrowse,14536519:doWork1,[(143,54)(143,44)])
}
Add(Hub,11904,197,13)
{
InCount=2
OutCount=1
link(onEvent1,8040877:onEvent1,[(266,19)(266,9)])
}
END_SDK
Add(Button,3821606,175,126)
{
Left=5
Top=5
Caption="Files"
link(onClick,1459833:doWork1,[(212,132)(212,172)])
}
Add(Button,3882570,175,175)
{
Left=5
Top=30
Caption="Folder"
link(onClick,1459833:doWork2,[(212,181)(212,179)])
}