Ignore:
Timestamp:
Mar 24, 2019, 10:52:35 PM (6 years ago)
Author:
chronos
Message:
  • Modified: More forms use data item property instead Load/Save methods.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormPlayers.pas

    r284 r288  
    106106    FormPlayer := TFormPlayer.Create(Self);
    107107    try
    108       FormPlayer.LoadData(TempEntry);
     108      FormPlayer.Player := TempEntry;
    109109      if FormPlayer.ShowModal = mrOk then begin
    110         FormPlayer.SaveData(TempEntry);
    111110        TPlayer(ListView1.Selected.Data).Assign(TempEntry);
    112111        UpdateList;
     
    136135    TempEntry.Agressivity := caMedium;
    137136    TempEntry.Game := Players.Game;
    138     FormPlayer.LoadData(TempEntry);
     137    FormPlayer.Player := TempEntry;
    139138    if FormPlayer.ShowModal = mrOk then begin
    140       FormPlayer.SaveData(TempEntry);
    141139      Players.Add(TempEntry);
    142140      TempEntry := nil;
Note: See TracChangeset for help on using the changeset viewer.