initsetup.cpp
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. #include "initsetup.h"
  5. #include "main.h"
  6. //---------------------------------------------------------------------------
  7. #pragma package(smart_init)
  8. #pragma resource "*.dfm"
  9. TForm2 *Form2;
  10. //---------------------------------------------------------------------------
  11. __fastcall TForm2::TForm2(TComponent* Owner)
  12.         : TForm(Owner)
  13. {
  14. }
  15. //---------------------------------------------------------------------------
  16. void __fastcall TForm2::BitBtn1Click(TObject *Sender)
  17. {
  18.  if ((Edit1->Text).IsEmpty() || (Edit2->Text).IsEmpty())
  19.   Application->MessageBox("Fill the User name and Password text boxs ", "Winmysqladmin 1.0", MB_OK |MB_ICONINFORMATION);
  20.  else
  21.   {
  22.     Form1->GetServerFile();
  23.     Form1->CreateMyIniFile();
  24.     Form1->CreatingShortCut();
  25.     Close();
  26.   }        
  27. }
  28. //---------------------------------------------------------------------------
  29. void __fastcall TForm2::BitBtn2Click(TObject *Sender)
  30. {
  31.  Close();        
  32. }
  33. //---------------------------------------------------------------------------
  34. void __fastcall TForm2::SpeedButton1Click(TObject *Sender)
  35. {
  36.  Application->HelpCommand(HELP_FINDER,0);              
  37. }
  38. //---------------------------------------------------------------------------