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

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <Menus.hpp>
#include <ScktComp.hpp>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
class TSCForm : public TForm
{
__published:	// IDE-managed Components
        TMainMenu *MainMenu1;
        TStatusBar *StatusBar1;
        TClientSocket *ClientSocket1;
        TServerSocket *ServerSocket1;
        TMenuItem *File1;
        TMenuItem *Listen1;
        TMenuItem *Connect1;
        TMenuItem *Disconnect1;
        TMenuItem *Exit1;
        TMemo *Memo1;
        TMemo *Memo2;
        TOpenDialog *OpenDialog1;
        TMenuItem *Open1;
        TSaveDialog *SaveDialog1;
        TMenuItem *Save1;
        TMenuItem *SendFiles1;
        TOpenDialog *OpenDialog2;
        TSaveDialog *SaveDialog2;
        TLabel *Label1;
        TLabel *Label2;
        void __fastcall Listen1Click(TObject *Sender);
        void __fastcall Connect1Click(TObject *Sender);
        void __fastcall Exit1Click(TObject *Sender);
        void __fastcall Memo1KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall ClientSocket1Connect(TObject *Sender,
          TCustomWinSocket *Socket);
        void __fastcall Disconnect1Click(TObject *Sender);
        void __fastcall ClientSocket1Read(TObject *Sender,
          TCustomWinSocket *Socket);
        void __fastcall ServerSocket1ClientRead(TObject *Sender,
          TCustomWinSocket *Socket);
        void __fastcall ServerSocket1Accept(TObject *Sender,
          TCustomWinSocket *Socket);
        void __fastcall ServerSocket1ClientConnect(TObject *Sender,
          TCustomWinSocket *Socket);
        void __fastcall ClientSocket1Disconnect(TObject *Sender,
          TCustomWinSocket *Socket);
        void __fastcall ClientSocket1Error(TObject *Sender,
          TCustomWinSocket *Socket, TErrorEvent ErrorEvent,
          int &ErrorCode);
        void __fastcall ServerSocket1ClientDisconnect(TObject *Sender,
          TCustomWinSocket *Socket);
        void __fastcall Open1Click(TObject *Sender);
        void __fastcall Save1Click(TObject *Sender);
       
private:	// User declarations
public:		// User declarations
        bool IsServer;
        String Server;
        __fastcall TSCForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TSCForm *SCForm;
//---------------------------------------------------------------------------
#endif
