сохранение records почти доделал вкладку команды, осталось лишь групповые ответы добавить
This commit is contained in:
+17
-1
@@ -135,8 +135,18 @@ begin
|
||||
myConst.cfg1 := myConst.GeneralPath + 'botapp.cfg';
|
||||
|
||||
db := TSettingsDatabase.Create(myConst.DBPath);
|
||||
|
||||
ReadDB;
|
||||
frCommands1.frsgSounds.ObjectRecord:=frCommands1.listSounds;
|
||||
frCommands1.frsgSounds.TableName:='listSounds';
|
||||
frCommands1.frsgSounds.UpdateGrid;
|
||||
frCommands1.frsgFiles.ObjectRecord:=frCommands1.listFiles;
|
||||
frCommands1.frsgFiles.TableName:='listFiles';
|
||||
frCommands1.frsgFiles.UpdateGrid;
|
||||
frCommands1.frsgNeiro.ObjectRecord:=frCommands1.listNeiro;
|
||||
frCommands1.frsgNeiro.TableName:='listNeiro';
|
||||
frCommands1.frsgNeiro.UpdateGrid;
|
||||
|
||||
|
||||
|
||||
for Path in TDirectory.GetFiles(myConst.stlPath) do
|
||||
cbTheme.Items.Add(ExtractFileName(Path));
|
||||
@@ -260,6 +270,12 @@ var
|
||||
procedure LoadGridsData;
|
||||
begin
|
||||
DB.LoadRecordArray<TRandomCounters>('RandomCounters', frCommands1.RandomCounters);
|
||||
DB.LoadRecordArray<TListCommands>('listSounds', frCommands1.listSounds);
|
||||
DB.LoadRecordArray<TListCommands>('listFiles', frCommands1.listFiles);
|
||||
DB.LoadRecordArray<TListCommands>('listNeiro', frCommands1.listNeiro);
|
||||
DB.LoadRecordArray<TListCommands>('listCommands', frCommands1.listCommands);
|
||||
|
||||
frCommands1.UpdateGridFromArray;
|
||||
{ db.LoadGridFromTable('sgRandomInt', frCommands1.sgRandomInt);
|
||||
db.LoadGridFromTable('sgCommands', frCommands1.sgCommands);
|
||||
db.LoadGridFromTable('sgSAFiles', frCommands1.sgSAFiles);
|
||||
|
||||
Reference in New Issue
Block a user