Changeset 130 for branches/generator/Forms/UFormRules.pas
- Timestamp:
- Dec 24, 2017, 11:13:05 AM (7 years ago)
- Location:
- branches/generator
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator
- Property svn:ignore
-
old new 1 generator 1 2 generator.exe 2 3 generator.lps 3 4 lib 4 5 heaptrclog.trc 6 Generated
-
- Property svn:ignore
-
branches/generator/Forms
-
Property svn:ignore
set to
*.lrj
-
Property svn:ignore
set to
-
branches/generator/Forms/UFormRules.pas
r129 r130 189 189 I: Integer; 190 190 begin 191 ListViewSort1.List.Count := Rules.Count; 192 for I := 0 to Rules.Count - 1 do 193 ListViewSort1.List[I] := Rules[I]; 194 //FilterList(ListViewSort1.List); 191 if Assigned(Rules) then begin 192 ListViewSort1.List.Count := Rules.Count; 193 for I := 0 to Rules.Count - 1 do 194 ListViewSort1.List[I] := Rules[I]; 195 //FilterList(ListViewSort1.List); 196 end else ListViewSort1.List.Count := 0; 195 197 end; 196 198 197 199 procedure TFormRules.UpdateInterface; 198 200 begin 199 AModify.Enabled := Assigned(ListView1.Selected); 200 ARemove.Enabled := Assigned(ListView1.Selected); 201 AAdd.Enabled := Assigned(Rules); 202 AModify.Enabled := Assigned(Rules) and Assigned(ListView1.Selected); 203 ARemove.Enabled := Assigned(Rules) and Assigned(ListView1.Selected); 201 204 end; 202 205 203 206 procedure TFormRules.ReloadList; 204 207 begin 205 if Assigned(Rules) then ListViewSort1.Refresh 206 else ListViewSort1.List.Count := 0; 208 ListViewSort1.Refresh; 207 209 ListView1.Refresh; 208 210 end;
Note:
See TracChangeset
for help on using the changeset viewer.