//---------------------------------------------------------------------------
#include <fmx.h>
#ifdef _WIN32
#include <tchar.h>
#endif
#pragma hdrstop
#include <System.StartUpCopy.hpp>
//---------------------------------------------------------------------------
USEFORM("Settings.cpp", FormSettings);
USEFORM("Main.cpp", FormMain);
//---------------------------------------------------------------------------
extern "C" int FMXmain()
{
  try
  {
    Application->Initialize();
    Application->CreateForm(__classid(TFormMain), &FormMain);
    Application->CreateForm(__classid(TFormSettings), &FormSettings);
    Application->Run();
  }
  catch (Exception &exception)
  {
    Application->ShowException(&exception);
  }
  catch (...)
  {
    try
    {
      throw Exception("");
    }
    catch (Exception &exception)
    {
      Application->ShowException(&exception);
    }
  }
  return 0;
}
//---------------------------------------------------------------------------