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.    if(Form1->ForceConnection())
  23.     if(Form1->ForceMySQLInit())
  24.      {
  25.        Form1->CreateMyIniFile();
  26.        Form1->CreatingShortCut();
  27.       }
  28.     Close();
  29.   }        
  30. }
  31. //---------------------------------------------------------------------------
  32. void __fastcall TForm2::BitBtn2Click(TObject *Sender)
  33. {
  34.  Close();        
  35. }
  36. //---------------------------------------------------------------------------
  37. void __fastcall TForm2::SpeedButton1Click(TObject *Sender)
  38. {
  39.  Application->HelpCommand(HELP_FINDER,0);              
  40. }
  41. //---------------------------------------------------------------------------