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

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ADODB.hpp>
#include <DB.hpp>
#include <DBGrids.hpp>
#include <Grids.hpp>
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TPageControl *PageControl1;
        TTabSheet *TabSheet1;
        TTabSheet *TabSheet2;
        TTabSheet *TabSheet3;
        TTabSheet *TabSheet4;
        TEdit *StuIdEdit1;
        TEdit *NameEdit1;
        TEdit *GenderEdit1;
        TEdit *BirthdayEdit1;
        TEdit *AddressEdit1;
        TMemo *RemarkMemo1;
        TLabel *Label1;
        TLabel *Label2;
        TLabel *Label3;
        TLabel *Label4;
        TLabel *Label5;
        TLabel *Label6;
        TButton *Button2;
        TDBGrid *DBGrid1;
        TDataSource *DataSource1;
        TADOConnection *ADOConnection1;
        TDBGrid *DBGrid2;
        TButton *Button3;
        TButton *Button4;
        TDBGrid *DBGrid3;
        TButton *Button5;
        TLabel *Label7;
        TLabel *Label8;
        TLabel *Label9;
        TLabel *Label10;
        TLabel *Label11;
        TLabel *Label12;
        TEdit *StuIdEdit2;
        TEdit *NameEdit2;
        TEdit *GenderEdit2;
        TEdit *BirthdayEdit2;
        TEdit *AddressEdit2;
        TMemo *RemarkMemo2;
        TDBGrid *DBGrid4;
        TButton *Button6;
        TEdit *FindEdit;
        TComboBox *FindNameComboBox;
        TLabel *Label13;
        TLabel *Label14;
        TLabel *Label15;
        TButton *Button1;
        TButton *Button7;
        TButton *Button8;
        TButton *Button9;
        TADODataSet *ADODataSet1;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall Button2Click(TObject *Sender);
        void __fastcall Button4Click(TObject *Sender);
        void __fastcall Button3Click(TObject *Sender);
        void __fastcall Button5Click(TObject *Sender);
        void __fastcall Button6Click(TObject *Sender);
        void __fastcall Button1Click(TObject *Sender);
        void __fastcall Button7Click(TObject *Sender);
        void __fastcall Button8Click(TObject *Sender);
        void __fastcall Button9Click(TObject *Sender);
        void __fastcall DBGrid3CellClick(TColumn *Column);
private:	// User declarations
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
        void TableToEdit();
        void ShowTable();         
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
