Ignore:
Timestamp:
Mar 9, 2012, 8:11:13 AM (13 years ago)
Author:
chronos
Message:
  • Added: Remember last password in login dialog.
  • Fixed: Some Add, Edit, View, Select dialog display.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UItemList.pas

    r39 r40  
    117117  NewItemEditForm: TItemEditForm;
    118118begin
    119   if Assigned(ListView1.Selected) then begin
     119  if Assigned(ListView1.Selected) then
     120  try
    120121    NewItemEditForm := TItemEditForm.Create(nil);
    121122    NewItemEditForm.SelectedObject.Assign(SelectedObject);
    122123    NewItemEditForm.SelectedItemId := Integer(ListView1.Selected.Data);
    123124    NewItemEditForm.Caption := NewItemEditForm.Caption + ' ' + SelectedObject.Name;
    124     MainForm.SetMainPanelForm(NewItemEditForm);
     125    NewItemEditForm.ShowModal;
     126  finally
     127    NewItemEditForm.Free;
    125128  end;
    126129end;
     
    130133  NewItemAddForm: TItemAddForm;
    131134begin
    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;
    137144end;
    138145
Note: See TracChangeset for help on using the changeset viewer.