-
Notifications
You must be signed in to change notification settings - Fork 2
/
TaskOrganizer.lpr
39 lines (32 loc) · 1.16 KB
/
TaskOrganizer.lpr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
program TaskOrganizer;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, datetimectrls, tachartlazaruspkg, lazcontrols, main, TasksFrame,
DatabaseDM, taskedit, periodsframe, Models, NonVisualCtrlsDM, PeriodEditFrm
{ you can add units after this },
Dialogs, treelistviewpackage, UniqueInstanceRaw, virtualdbgrid_package,
ReportFrm, Utils;
{$R *.res}
const
ProgId = 'TaskOrganizer' {$IFOPT D+} + '_DEBUG'{$EndIf};
begin
// Check if no another instance is running
if InstanceRunning(ProgId) then
begin
MessageDlg('Another instance already running!', mtWarning, [mbOK], 0);
Exit;
end;
RequireDerivedFormResource:=True;
Application.Title:='Task Organizer';
Application.Initialize;
Application.CreateForm(TMainForm, MainForm);
Application.CreateForm(TDatabaseDataModule, DatabaseDataModule);
Application.CreateForm(TTaskEditForm, TaskEditForm);
Application.CreateForm(TNonVisualCtrlsDataModule, NonVisualCtrlsDataModule);
Application.CreateForm(TPeriodEditForm, PeriodEditForm);
Application.Run;
end.