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/UFormNations.pas

    r284 r288  
    102102    FormNation := TFormNation.Create(Self);
    103103    try
    104       FormNation.Load(TempEntry);
     104      FormNation.Nation := TempEntry;
    105105      if FormNation.ShowModal = mrOk then begin
    106         FormNation.Save(TempEntry);
    107106        TNation(ListView1.Selected.Data).Assign(TempEntry);
    108107        UpdateList;
     
    124123  try
    125124    TempEntry.Name := SNewUnitKind;
    126     FormNation.Load(TempEntry);
     125    FormNation.Nation := TempEntry;
    127126    if FormNation.ShowModal = mrOk then begin
    128       FormNation.Save(TempEntry);
    129127      Nations.Add(TempEntry);
    130128      TempEntry := nil;
     
    149147    try
    150148      TempEntry.Name := Nations.GetNextAvailableName(TempEntry.Name);
    151       FormNation.Load(TempEntry);
     149      FormNation.Nation := TempEntry;
    152150      if FormNation.ShowModal = mrOk then begin
    153         FormNation.Save(TempEntry);
    154151        Nations.Add(TempEntry);
    155152        TempEntry := nil;
Note: See TracChangeset for help on using the changeset viewer.