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 / initsetup.cpp < prev    next >
C/C++ Source or Header  |  2000-04-20  |  1KB  |  41 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.     Form1->GetServerFile();
  24.     Form1->CreateMyIniFile();
  25.     Form1->CreatingShortCut();
  26.  
  27.     Close();
  28.   }        
  29. }
  30. //---------------------------------------------------------------------------
  31. void __fastcall TForm2::BitBtn2Click(TObject *Sender)
  32. {
  33.  Close();        
  34. }
  35. //---------------------------------------------------------------------------
  36. void __fastcall TForm2::SpeedButton1Click(TObject *Sender)
  37. {
  38.  Application->HelpCommand(HELP_FINDER,0);              
  39. }
  40. //---------------------------------------------------------------------------
  41.