ttaskform.h

来自「我写的SQL Server网络备份工具。(服务器端用VC开发」· C头文件 代码 · 共 79 行

H
79
字号
//---------------------------------------------------------------------------

#ifndef TTaskFormH
#define TTaskFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "CSPIN.h"
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------
class TTaskForm : public TForm
{
__published:	// IDE-managed Components
    TRadioButton *rbWeek;
    TRadioButton *rbDay;
    TGroupBox *GroupBox1;
    TGroupBox *GroupBox2;
    TPanel *MonthBox;
    TPanel *WeekBox;
    TPanel *DayBox;
    TCSpinEdit *txtMonthNum;
    TLabel *Label1;
    TLabel *Label2;
    TCSpinEdit *txtMonthDayNum;
    TLabel *Label3;
    TLabel *Label4;
    TCSpinEdit *txtDayNum;
    TLabel *Label5;
    TLabel *Label6;
    TCSpinEdit *txtWeekNum;
    TLabel *Label7;
    TRadioButton *rbMonth;
    TGroupBox *GroupBox3;
    TCheckBox *chkBackupNow;
    TButton *btnOk;
    TButton *btnCancel;
    TRadioButton *rbMonday;
    TRadioButton *rbTuesday;
    TRadioButton *rbWednesday;
    TRadioButton *rbThursday;
    TRadioButton *rbFriday;
    TRadioButton *rbSaturday;
    TRadioButton *rbSunday;
    TListBox *DatabaseList;
    TLabel *txtDatabase;
    TDateTimePicker *ActiveTime;
    TLabel *Label8;
    TLabel *Label9;
    TDateTimePicker *BeginDate;
    TLabel *Label10;
    void __fastcall OnCycleClick(TObject *Sender);
    void __fastcall FormCreate(TObject *Sender);
    void __fastcall OnDayClick(TObject *Sender);
    void __fastcall DatabaseListClick(TObject *Sender);
    void __fastcall btnOkClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
    __fastcall TTaskForm(TComponent* Owner);
    int GetCycleType();
    int GetCycleCount();
    int GetDayCount();
    AnsiString GetDatabase();
    void SetCycle(int nType , int nCycleCount , int nDayCount);
    TDateTime GetBackupTime();
    void SetBackupTime(TDateTime &value);
    void SetDatabase(AnsiString & strDatabase);
    TDateTime GetBeginDate();
    void SetBeginDate(TDateTime & datBegin);
protected:
    void ChangeBox(int nPage);
    TRadioButton *m_pSelectDay;
};

//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?