home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 May / VPR9705A.ISO / VPR_DATA / PROGRAM / CBTRIAL / SETUP / DATA.Z / CUST.CPP < prev    next >
C/C++ Source or Header  |  1997-02-14  |  1KB  |  37 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #include <vcl.h>
  7. #pragma hdrstop
  8.  
  9. #include "Cust.h"
  10. #include "FindCust.h"
  11. #include "About.h"
  12. #include "DM.h"
  13. //---------------------------------------------------------------------------
  14. #pragma resource "*.dfm"
  15. TfmCustomers *fmCustomers;
  16. //---------------------------------------------------------------------------
  17. __fastcall TfmCustomers::TfmCustomers(TComponent* Owner)
  18.   : TForm(Owner)
  19. {
  20. }
  21. //--------------------------------------------------------------------------- 
  22. void __fastcall TfmCustomers::AboutItemClick(TObject *Sender)
  23. {
  24.  
  25.   TfmAboutBox* fmAbout = new TfmAboutBox(this);
  26.   fmAbout->ShowModal();
  27.   delete fmAbout;
  28. }
  29. //---------------------------------------------------------------------
  30. void __fastcall TfmCustomers::BitBtn1Click(TObject *Sender)
  31. {
  32.   fmFindCust->ShowModal();
  33.   if (fmFindCust->ModalResult == mrOk)
  34.     DM2->Customer->GotoCurrent(DM2->CustLookup);  
  35. }
  36. //---------------------------------------------------------------------
  37.