Changeset 122 for branches/generator/Forms/UFormRules.pas
- Timestamp:
- Nov 29, 2017, 2:03:17 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/Forms/UFormRules.pas
r121 r122 116 116 procedure TFormRules.ARemoveExecute(Sender: TObject); 117 117 var 118 Item: TListItem; 119 begin 120 for Item in ListView1.Items do 121 if Item.Selected then 122 Rules.Remove(TRule(Item.Data)); 118 I: Integer; 119 begin 120 if MessageDlg('Remove item(s)', 'Do you want to remove selected item(s)?', 121 mtConfirmation, mbYesNo, 0) = mrYes then 122 for I := ListView1.Items.Count - 1 downto 0 do 123 if ListView1.Items[I].Selected then 124 Rules.Remove(TRule(ListView1.Items[I].Data)); 123 125 ReloadList; 124 126 end;
Note:
See TracChangeset
for help on using the changeset viewer.