Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.8 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: ProgramModeDlg.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of ProgramModeDlg.cpp
  13. //----------------------------------------------------------------------------
  14. // ProgramModeDlg.cpp : implementation file
  15. //
  16. #include "stdafx.h"
  17. #include "chicago.h"
  18. #include "..\DLIB\AuxLib.h"
  19. #include "ProgramModeDlg.h"
  20. #include "..\..\LgLib\Version.h"
  21. #ifdef _DEBUG
  22. #define new DEBUG_NEW
  23. #undef THIS_FILE
  24. static char THIS_FILE[] = __FILE__;
  25. #endif
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CProgramModeDlg dialog
  28. CProgramModeDlg::CProgramModeDlg(CWnd* pParent /*=NULL*/)
  29. : CDialog(CProgramModeDlg::IDD, pParent)
  30. {
  31. //{{AFX_DATA_INIT(CProgramModeDlg)
  32. m_nMode = 0;
  33. //}}AFX_DATA_INIT
  34. LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CProgramModeDlg::CProgramModeDlg") );
  35. }
  36. void CProgramModeDlg::DoDataExchange(CDataExchange* pDX)
  37. {
  38. CDialog::DoDataExchange(pDX);
  39. //{{AFX_DATA_MAP(CProgramModeDlg)
  40. DDX_Radio(pDX, IDC_RADIO_START_MODE, m_nMode);
  41. //}}AFX_DATA_MAP
  42. }
  43. BEGIN_MESSAGE_MAP(CProgramModeDlg, CDialog)
  44. //{{AFX_MSG_MAP(CProgramModeDlg)
  45. // NOTE: the ClassWizard will add message map macros here
  46. //}}AFX_MSG_MAP
  47. END_MESSAGE_MAP()
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CProgramModeDlg message handlers
  50. int CProgramModeDlg::GetMode()
  51. {
  52. switch( m_nMode )
  53. {
  54. case 0: return MODE_HOST;
  55. case 1: return MODE_MOBILEMAP;
  56. case 2: return MODE_BACKUP;
  57. }
  58. return MODE_MOBILEMAP;
  59. }