#ifndef LOGON_SERVER_SERVER_DLG_HEAD_FILE
#define LOGON_SERVER_SERVER_DLG_HEAD_FILE

#pragma once

#include "Stdafx.h"
#include "ServiceUnits.h"

//////////////////////////////////////////////////////////////////////////////////

//Ի
class CLogonServerDlg : public CDialog, public IServiceUnitsSink
{
	//
protected:
	CServiceUnits					m_ServiceUnits;						//Ԫ
	CTraceServiceControl			m_TraceServiceControl;				//׷ٴ

	//
public:
	//캯
	CLogonServerDlg();
	//
	virtual ~CLogonServerDlg();

	//غ
protected:
	//ؼ
	virtual VOID DoDataExchange(CDataExchange * pDX);
	//ʼ
	virtual BOOL OnInitDialog();
	//ȷϢ
	virtual VOID OnOK();
	//ȡ
	virtual VOID OnCancel();
	//Ϣ
	virtual BOOL PreTranslateMessage(MSG * pMsg);

	//ӿ
public:
	//״̬
	virtual VOID OnServiceUnitsStatus(enServiceStatus ServiceStatus);

	//ťϢ
protected:
	//
	VOID OnBnClickedStartService();
	//ֹͣ
	VOID OnBnClickedStopService();

	//Ϣӳ
public:
	//رѯ
	BOOL OnQueryEndSession();

	DECLARE_MESSAGE_MAP()
};

//////////////////////////////////////////////////////////////////////////////////

#endif