Changeset 111 for branches/generator/Forms/UFormMain.pas
- Timestamp:
- Aug 9, 2017, 12:09:47 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/Forms/UFormMain.pas
r110 r111 56 56 procedure TFormMain.ARulesExecute(Sender: TObject); 57 57 begin 58 FormRules.Rules := Core. Rules;58 FormRules.Rules := Core.Grammer.Rules; 59 59 FormRules.ShowModal; 60 MemoBNF.Lines.Text := Core. Rules.GetBNF;60 MemoBNF.Lines.Text := Core.Grammer.GetBNF; 61 61 end; 62 62 63 63 procedure TFormMain.ASaveAsExecute(Sender: TObject); 64 64 begin 65 SaveDialog1.FileName := Core. Rules.FileName;65 SaveDialog1.FileName := Core.Grammer.FileName; 66 66 if SaveDialog1.Execute then begin 67 Core. Rules.SaveToXmlFile(SaveDialog1.FileName);67 Core.Grammer.SaveToXmlFile(SaveDialog1.FileName); 68 68 end; 69 69 end; … … 71 71 procedure TFormMain.FormShow(Sender: TObject); 72 72 begin 73 MemoBNF.Lines.Text := Core. Rules.GetBNF;73 MemoBNF.Lines.Text := Core.Grammer.GetBNF; 74 74 end; 75 75 … … 81 81 procedure TFormMain.AOpenExecute(Sender: TObject); 82 82 begin 83 OpenDialog1.FileName := Core. Rules.FileName;83 OpenDialog1.FileName := Core.Grammer.FileName; 84 84 if OpenDialog1.Execute then begin 85 Core. Rules.LoadFromXmlFile(OpenDialog1.FileName);85 Core.Grammer.LoadFromXmlFile(OpenDialog1.FileName); 86 86 end; 87 87 end;
Note:
See TracChangeset
for help on using the changeset viewer.