Changeset 117 for branches/generator/Forms/UFormRuleItems.pas
- Timestamp:
- Nov 27, 2017, 1:09:38 PM (7 years ago)
- Location:
- branches/generator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator
- Property svn:ignore
-
old new 2 2 generator.lps 3 3 lib 4 heaptrclog.trc
-
- Property svn:ignore
-
branches/generator/Forms/UFormRuleItems.pas
r116 r117 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 Menus, ActnList, StdCtrls, URules ;9 Menus, ActnList, StdCtrls, URules, UFormRuleItem; 10 10 11 11 type … … 48 48 Selected: Boolean); 49 49 private 50 { private declarations }50 FormRuleItem: TFormRuleItem; 51 51 public 52 52 RuleItems: TRuleItems; … … 63 63 implementation 64 64 65 uses66 UFormRuleItem;67 65 68 66 {$R *.lfm} … … 84 82 NewRuleItem := TRuleItem.Create; 85 83 NewRuleItem.Grammer := RuleItems.Grammer; 84 FormRuleItem := TFormRuleItem.Create(nil); 86 85 FormRuleItem.LoadData(NewRuleItem); 87 86 if FormRuleItem.ShowModal = mrOk then begin … … 91 90 ReloadList; 92 91 end else FreeAndNil(NewRuleItem); 92 FreeAndNil(FormRuleItem); 93 93 end; 94 94 … … 98 98 begin 99 99 RuleItem := TRuleItem(ListView.Selected.Data); 100 FormRuleItem := TFormRuleItem.Create(nil); 100 101 FormRuleItem.LoadData(RuleItem); 101 102 if FormRuleItem.ShowModal = mrOk then begin … … 103 104 ReloadList; 104 105 end; 106 FreeAndNil(FormRuleItem); 105 107 end; 106 108
Note:
See TracChangeset
for help on using the changeset viewer.