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

#ifndef USBMessage_FormH
#define USBMessage_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "Com.h"
#include "TntForms.hpp"
#include "TntStdCtrls.hpp"
//---------------------------------------------------------------------------
class TUSBMessageForm : public TTntForm
{
__published:	// IDE-managed Components
	TTntLabel *Label1;
	TTntLabel *Label2;
	TTntLabel *BoardNameLabel;
	TTntLabel *Label3;
	TTntLabel *ErrorMessageLabel;
	TTntButton *Button1;
	TTntButton *IgnoreButton;
	TTntButton *CancelButton;
	TTntLabel *Label5;
	TTntGroupBox *GroupBox1;
	TTntLabel *Label4;
	TTntLabel *TXHeaderLabel;
	TTntLabel *Label7;
	TTntLabel *TXCommandLabel;
	TTntLabel *Label9;
	TTntLabel *TXRequestKindLabel;
	TTntLabel *Label11;
	TTntLabel *TXSmallLengthLabel;
	TTntLabel *Label13;
	TTntLabel *TXLargeLengthLabel;
	TTntGroupBox *GroupBox2;
	TTntLabel *Label15;
	TTntLabel *RXHeaderLabel;
	TTntLabel *Label17;
	TTntLabel *RXCommandLabel;
	TTntLabel *Label19;
	TTntLabel *RXRequestKindLabel;
	TTntLabel *Label21;
	TTntLabel *RXSmallLengthLabel;
	TTntLabel *Label23;
	TTntLabel *RXLargeLengthLabel;
	void __fastcall IgnoreButtonClick(TObject *Sender);
	void __fastcall FormCreate(TObject *Sender);
    void __fastcall TntFormActivate(TObject *Sender);
private:	// User declarations
public:		// User declarations
	__fastcall TUSBMessageForm(TComponent* Owner);
	void __fastcall SetPacketHeader(TUSBDataHeader *txHeader, TUSBDataHeader *rxHeader); 
	int __fastcall ShowMessage(AnsiString boardName, AnsiString message);
};
//---------------------------------------------------------------------------
extern PACKAGE TUSBMessageForm *USBMessageForm;
//---------------------------------------------------------------------------
#endif
