//---------------------------------------------------------------------------

#ifndef mainFrmH
#define mainFrmH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "LP1C_OCX.h"
#include <Grids.hpp>
#include <OleCtrls.hpp>
#include "LP1C_OCX.h"
#include <Grids.hpp>
#include <OleCtrls.hpp>

#include "LP1C_OCX.h"

#include <OleCtrls.hpp>
#include <Grids.hpp>
#include <comobj.hpp>
#include <Grids.hpp>

//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published:	// IDE-managed Components
        TStringGrid *List;
        TButton *ReadData;
        TButton *WriteData;
        TButton *PageProperties;
        TCheckBox *Enable;
        TCheckBox *Cache;
        TButton *Exit;
        TButton *AddRow;
        TButton *DeleteRow;
        TLP45 *LP451;
        TLabel *Label1;
        TLabel *Label2;
        TComboBox *FirstRecord;
        TComboBox *LastRecord;
        void __fastcall ExitClick(TObject *Sender);
        void __fastcall PagePropertiesClick(TObject *Sender);
        void __fastcall EnableClick(TObject *Sender);
        void __fastcall CacheClick(TObject *Sender);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall AddRowClick(TObject *Sender);
        void __fastcall DeleteRowClick(TObject *Sender);
        void __fastcall ReadDataClick(TObject *Sender);
        void __fastcall WriteDataClick(TObject *Sender);
        void __fastcall FirstRecordChange(TObject *Sender);
        void __fastcall LastRecordChange(TObject *Sender);
private:	// User declarations
public:		// User declarations
        __fastcall TMainForm(TComponent* Owner);
        void UpdateForm ();
        void DisplayError ();
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif
