Changeset 40 for trunk/Forms/UItemList.pas
- Timestamp:
- Mar 9, 2012, 8:11:13 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UItemList.pas
r39 r40 117 117 NewItemEditForm: TItemEditForm; 118 118 begin 119 if Assigned(ListView1.Selected) then begin 119 if Assigned(ListView1.Selected) then 120 try 120 121 NewItemEditForm := TItemEditForm.Create(nil); 121 122 NewItemEditForm.SelectedObject.Assign(SelectedObject); 122 123 NewItemEditForm.SelectedItemId := Integer(ListView1.Selected.Data); 123 124 NewItemEditForm.Caption := NewItemEditForm.Caption + ' ' + SelectedObject.Name; 124 MainForm.SetMainPanelForm(NewItemEditForm); 125 NewItemEditForm.ShowModal; 126 finally 127 NewItemEditForm.Free; 125 128 end; 126 129 end; … … 130 133 NewItemAddForm: TItemAddForm; 131 134 begin 132 NewItemAddForm := TItemAddForm.Create(nil); 133 NewItemAddForm.SelectedObject.Assign(SelectedObject); 134 NewItemAddForm.SelectedItemId := Integer(ListView1.Selected.Data); 135 NewItemAddForm.Caption := NewItemAddForm.Caption + ' ' + SelectedObject.Name; 136 MainForm.SetMainPanelForm(NewItemAddForm); 135 try 136 NewItemAddForm := TItemAddForm.Create(nil); 137 NewItemAddForm.SelectedObject.Assign(SelectedObject); 138 //NewItemAddForm.SelectedItemId := Integer(ListView1.Selected.Data); 139 NewItemAddForm.Caption := NewItemAddForm.Caption + ' ' + SelectedObject.Name; 140 NewItemAddForm.ShowModal; 141 finally 142 NewItemAddForm.Free; 143 end; 137 144 end; 138 145
Note:
See TracChangeset
for help on using the changeset viewer.