Changeset 110 for branches/generator/Forms/UFormMain.pas
- Timestamp:
- Aug 8, 2017, 11:15:41 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/Forms/UFormMain.pas
r109 r110 20 20 ActionList1: TActionList; 21 21 MainMenu1: TMainMenu; 22 MemoBNF: TMemo; 22 23 MenuItem1: TMenuItem; 23 24 MenuItem2: TMenuItem; … … 33 34 procedure ARulesExecute(Sender: TObject); 34 35 procedure ASaveAsExecute(Sender: TObject); 36 procedure FormShow(Sender: TObject); 35 37 private 36 38 { private declarations } … … 55 57 begin 56 58 FormRules.Rules := Core.Rules; 57 FormRules.Show; 59 FormRules.ShowModal; 60 MemoBNF.Lines.Text := Core.Rules.GetBNF; 58 61 end; 59 62 60 63 procedure TFormMain.ASaveAsExecute(Sender: TObject); 61 64 begin 65 SaveDialog1.FileName := Core.Rules.FileName; 62 66 if SaveDialog1.Execute then begin 63 67 Core.Rules.SaveToXmlFile(SaveDialog1.FileName); 64 68 end; 69 end; 70 71 procedure TFormMain.FormShow(Sender: TObject); 72 begin 73 MemoBNF.Lines.Text := Core.Rules.GetBNF; 65 74 end; 66 75 … … 72 81 procedure TFormMain.AOpenExecute(Sender: TObject); 73 82 begin 83 OpenDialog1.FileName := Core.Rules.FileName; 74 84 if OpenDialog1.Execute then begin 75 85 Core.Rules.LoadFromXmlFile(OpenDialog1.FileName);
Note:
See TracChangeset
for help on using the changeset viewer.