home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 January / Chip_2001-01_cd1.bin / tema / mysql / mysql-3.23.28g-win-source.exe / winmysqladmin / images / initsetup.cpp
C/C++ Source or Header  |  2000-05-09  |  1KB  |  43 lines

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