Ignore:
Timestamp:
Aug 8, 2016, 1:41:25 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Non-visual code moved from FormMain to Core data module.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormImportSources.pas

    r85 r86  
    7575
    7676uses
    77   UFormMain, UFormImportSource;
     77  UCore, UFormMain, UFormImportSource;
    7878
    7979resourcestring
     
    193193      ImportSources.Add(NewImportSource);
    194194      NewImportSource := nil;
    195       FormMain.AcronymDb.Modified := True;
     195      Core.AcronymDb.Modified := True;
    196196      UpdateList;
    197197    end else ShowMessage(Format(SImportSourceAlreadyExists, [NewImportSource.Name]));
     
    233233        if not Assigned(ImportSources.SearchByName(NewImportSource.Name)) then begin;
    234234          TImportSource(ListView1.Selected.Data).Assign(NewImportSource);
    235           FormMain.AcronymDb.Modified := True;
     235          Core.AcronymDb.Modified := True;
    236236          UpdateList;
    237237        end else ShowMessage(Format(SImportSourceAlreadyExists, [NewImportSource.Name]));
    238238      end else begin
    239239        TImportSource(ListView1.Selected.Data).Assign(NewImportSource);
    240         FormMain.AcronymDb.Modified := True;
     240        Core.AcronymDb.Modified := True;
    241241        UpdateList;
    242242      end;
     
    249249begin
    250250  if Assigned(ListView1.Selected) then begin
    251     FormMain.AcronymDb.AddedCount := 0;
     251    Core.AcronymDb.AddedCount := 0;
    252252    JobProgressView1.AddJob(SProcessSelectedSource, ProcessImportJob);
    253253    JobProgressView1.Start;
    254     ShowMessage(Format(SAddedCount, [TImportSource(ListView1.Selected.Data).ItemCount, FormMain.AcronymDb.AddedCount]));
     254    ShowMessage(Format(SAddedCount, [TImportSource(ListView1.Selected.Data).ItemCount,
     255      Core.AcronymDb.AddedCount]));
    255256  end;
    256257end;
Note: See TracChangeset for help on using the changeset viewer.