-
Notifications
You must be signed in to change notification settings - Fork 0
/
CenterLoginUnit.h
45 lines (42 loc) · 1.4 KB
/
CenterLoginUnit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//---------------------------------------------------------------------------
#ifndef CenterLoginUnitH
#define CenterLoginUnitH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.Graphics.hpp>
#include <Vcl.Mask.hpp>
#include <Vcl.Buttons.hpp>
#include <IdBaseComponent.hpp>
#include <IdComponent.hpp>
#include <IdHTTP.hpp>
#include <IdTCPClient.hpp>
#include <IdTCPConnection.hpp>
//---------------------------------------------------------------------------
class TLoginForm : public TForm
{
__published: // IDE-managed Components
TLabel *Label1;
TLabel *Label2;
TImage *Image1;
TEdit *EditAccount;
TMaskEdit *MaskEditPasswd;
TBitBtn *BitBtn1;
TCheckBox *CheckBoxRemenber;
TShape *Shape1;
TShape *Shape2;
TIdHTTP *IdHTTP;
void __fastcall BitBtn1Click(TObject *Sender);
private: // User declarations
AnsiString CenterLogin(AnsiString account, AnsiString passwd);
AnsiString PackageHeadJson(AnsiString cmd, AnsiString body, AnsiString account, AnsiString passwd);
public: // User declarations
__fastcall TLoginForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TLoginForm *LoginForm;
//---------------------------------------------------------------------------
#endif