SavePSAllForm.cpp
上传用户:szb0815
上传日期:2007-06-13
资源大小:338k
文件大小:1k
源码类别:

生物技术

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. #include "SavePSAllForm.h"
  5. #include "TreeViewMainForm.h"
  6. //---------------------------------------------------------------------------
  7. #pragma package(smart_init)
  8. #pragma resource "*.dfm"
  9. TForm1 *Form1;
  10. //---------------------------------------------------------------------------
  11. __fastcall TForm1::TForm1(TComponent* Owner)
  12.     : TForm(Owner)
  13. {
  14.     if (TreeViewMainForm->Cluster->TopNode == NULL)
  15.     {
  16.         SaveGeneTreeCheckBox = false;
  17.         SaveGeneTreeCheckBox->Enabled = false;
  18.     }
  19.     if (TreeViewMainForm->Cluster->TopNode == NULL)
  20.     {
  21.         SaveGeneTreeCheckBox = false;
  22.         SaveGeneTreeCheckBox->Enabled = false;
  23.     }
  24. }
  25. //---------------------------------------------------------------------------
  26. void __fastcall TForm1::Button1Click(TObject *Sender)
  27. {
  28.     if (SaveDialog1->Execute)
  29.     {
  30.         TreeViewMainForm->SavePSAll(SaveDialog1->FileName);
  31.     }
  32. }
  33. //---------------------------------------------------------------------------