Changeset 123 for branches/generator/Forms/UFormMain.pas
- Timestamp:
- Nov 29, 2017, 3:45:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/Forms/UFormMain.pas
r119 r123 52 52 private 53 53 procedure ReloadMemo; 54 procedure UpdateInterface; 54 55 public 55 56 { public declarations } … … 85 86 if SaveDialog1.Execute then begin 86 87 Core.Grammer.SaveToXmlFile(SaveDialog1.FileName); 88 UpdateInterface; 87 89 end; 88 90 end; … … 91 93 begin 92 94 Core.Grammer.SaveToXmlFile(Core.Grammer.FileName); 95 UpdateInterface; 93 96 end; 94 97 … … 102 105 Core.PersistentForm1.Load(Self, True); 103 106 ReloadMemo; 107 UpdateInterface; 104 108 end; 105 109 … … 107 111 begin 108 112 MemoBNF.Lines.Text := Core.Grammer.GetString; 113 end; 114 115 procedure TFormMain.UpdateInterface; 116 begin 117 Caption := Core.Grammer.FileName + ' - ' + Application.Title; 109 118 end; 110 119 … … 118 127 Core.Grammer.Rules.Clear; 119 128 ReloadMemo; 129 UpdateInterface; 120 130 end; 121 131 … … 131 141 Core.Grammer.LoadFromXmlFile(OpenDialog1.FileName); 132 142 ReloadMemo; 143 UpdateInterface; 133 144 end; 134 145 end;
Note:
See TracChangeset
for help on using the changeset viewer.