ClientForm.cpp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  1. // CClientForm.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "LYFZIPManage.h"
  5. #include "ClientForm.h"
  6. #include "MyMdi.H"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. #include "ClientDlg.h"
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CClientForm
  15. IMPLEMENT_DYNCREATE(CClientForm, CFormView)
  16. CClientForm::CClientForm()
  17. : CFormView(CClientForm::IDD)
  18. {
  19. //{{AFX_DATA_INIT(CClientForm)
  20. m_filter = _T("");
  21. m_days = 7;
  22. m_radio = 0;
  23. m_oldmode=0;
  24. m_bInit=0;
  25. //}}AFX_DATA_INIT
  26. }
  27. CClientForm::~CClientForm()
  28. {
  29. }
  30. void CClientForm::DoDataExchange(CDataExchange* pDX)
  31. {
  32. CFormView::DoDataExchange(pDX);
  33. //{{AFX_DATA_MAP(CClientForm)
  34. DDX_Control(pDX, IDC_SPIN1, m_spin1);
  35. DDX_Control(pDX, IDC_COMBO1, m_combo1);
  36. DDX_Control(pDX, IDC_LIST2, m_List1);
  37. DDX_Control(pDX, IDC_STATIC1, m_static1);
  38. DDX_CBString(pDX, IDC_COMBO1, m_filter);
  39. DDX_Text(pDX, IDC_EDIT1, m_days);
  40. DDV_MinMaxUInt(pDX, m_days, 1, 365);
  41. DDX_Radio(pDX, IDC_RADIO1, m_radio);
  42. //}}AFX_DATA_MAP
  43. }
  44. BEGIN_MESSAGE_MAP(CClientForm, CFormView)
  45. //{{AFX_MSG_MAP(CClientForm)
  46. ON_BN_CLICKED(IDC_BUTclose, OnBUTclose)
  47. ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
  48. ON_NOTIFY(NM_DBLCLK, IDC_LIST2, OnDblclkList2)
  49. ON_CBN_SELCHANGE(IDC_COMBO1, OnSelchangeCombo1)
  50. ON_WM_TIMER()
  51. ON_BN_CLICKED(IDC_BUTmodify, OnBUTmodify)
  52. ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
  53. ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
  54. ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
  55. ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
  56. ON_BN_CLICKED(IDC_RADIO9, OnRadio9)
  57. ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
  58. //}}AFX_MSG_MAP
  59. END_MESSAGE_MAP()
  60. /////////////////////////////////////////////////////////////////////////////
  61. // CClientForm diagnostics
  62. #ifdef _DEBUG
  63. void CClientForm::AssertValid() const
  64. {
  65. CFormView::AssertValid();
  66. }
  67. void CClientForm::Dump(CDumpContext& dc) const
  68. {
  69. CFormView::Dump(dc);
  70. }
  71. #endif //_DEBUG
  72. /////////////////////////////////////////////////////////////////////////////
  73. // CClientForm message handlers
  74. void CClientForm::OnInitialUpdate()
  75. {
  76. CFormView::OnInitialUpdate();
  77. // TODO: Add your specialized code here and/or call the base class
  78. CMyMdi Mdi;
  79. Mdi.SetSubView((CWnd*)GetParent(), (CWnd*)this);
  80. // Here we create the outbar control using the splitter as its parent
  81. // and setting its id to the first pane.
  82. CRect rc2;
  83. GetWindowRect(rc2);
  84. ::MoveWindow(m_hWnd,g_rc.left,g_rc.top,g_rc.Width(),g_rc.Height(),TRUE);
  85. EnumChildWindows(m_hWnd,(WNDENUMPROC)EnumChildProc,0);
  86. m_static1.SetFont (&g_titlefont);
  87. m_List1.SetHeadings("订单号,0;男宾姓名,100;女宾姓名,100;男宾电话,100;女宾电话,100;男宾地址,100;女宾地址,100;男宾职业,100;女宾职业,100;婚期,100;男宾生日,100;女宾生日,100;套系名称,100;套系价格,100;预约时间,100" );
  88. m_List1.LoadColumnInfo (108);
  89. g_sendhead.bsql=0;
  90. g_sendhead.code[0]=15;
  91. g_sendhead.code[1]=6;
  92. g_sendhead.tabcount=2;
  93. // CString sql;
  94. // sql.Format ("time1='"+m_date+"';dat='"+m_date+"';dat='"+m_date+"'");
  95. g_pMainWnd->ProcessChatMessageRequest2(15);if(g_bSendOK==0)return;
  96. DataToArray(&m_List1array, &g_List1array);
  97. for(int i=0; i<g_List1array.GetSize (); i++)
  98. {
  99. if(m_combo1.FindString (0, g_List1array.ElementAt (i).ElementAt (1))==-1)
  100. m_combo1.AddString (g_List1array.ElementAt (i).ElementAt (1) );
  101. }
  102. FillGrid();m_bInit=1;
  103. m_combo1.GetWindowRect (rc2);
  104. ScreenToClient(rc2);
  105. rc2.bottom +=200;
  106. m_combo1.MoveWindow (rc2);
  107. m_spin1.SetRange (1, 365);
  108. }
  109. void CClientForm::FillGrid(int mode)
  110. {
  111. m_oldmode=mode;
  112. UpdateData();
  113. m_List1.DeleteAllItems2 ();
  114. int ii=0;
  115. m_List1.m_arLabels.SetSize( m_List1array.GetSize (), 1 );
  116. int count=0;
  117. if(mode==0)
  118. {
  119. if(m_filter.IsEmpty ())
  120. {
  121. for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
  122. {
  123. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  124. }
  125. }
  126. else
  127. {
  128. int type=GetType(m_filter);
  129. if(type==1)//电话
  130. {
  131. for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
  132. {
  133. if(m_List1array.ElementAt (ii).ElementAt (3).Find (m_filter)!=-1 || \
  134. m_List1array.ElementAt (ii).ElementAt (4).Find (m_filter)!=-1)
  135. {
  136. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  137. }
  138. }
  139. }
  140. else if(type==2)//拼音
  141. {
  142. m_filter.MakeUpper ();
  143. for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
  144. {
  145. if(m_List1array.ElementAt (ii).ElementAt (17).Find (m_filter)!=-1 || \
  146. m_List1array.ElementAt (ii).ElementAt (18).Find (m_filter)!=-1)
  147. {
  148. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  149. }
  150. }
  151. }
  152. else
  153. {
  154. for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
  155. {
  156. if(m_List1array.ElementAt (ii).ElementAt (0).Find (m_filter)!=-1 || \
  157. m_List1array.ElementAt (ii).ElementAt (1).Find (m_filter)!=-1 ||\
  158. m_List1array.ElementAt (ii).ElementAt (2).Find (m_filter)!=-1 ||\
  159. m_List1array.ElementAt (ii).ElementAt (3).Find (m_filter)!=-1 ||\
  160. m_List1array.ElementAt (ii).ElementAt (4).Find (m_filter)!=-1 ||\
  161. m_List1array.ElementAt (ii).ElementAt (12).Find (m_filter)!=-1)
  162. {
  163. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  164. }
  165. }
  166. }
  167. }
  168. }
  169. else if(mode==1)//生日
  170. {
  171. CString strdate1,strdate2;
  172. CTime tm=CTime::GetCurrentTime ();
  173. strdate1=tm.Format ("%m-%d");
  174. if(m_radio==0)
  175. {
  176. CTimeSpan dt(m_days, 0, 0, 0);
  177. tm+=dt;
  178. strdate2=tm.Format ("%m-%d");
  179. }
  180. else if(m_radio==1)
  181. {
  182. strdate2=strdate1;
  183. }
  184. else
  185. {
  186. CTimeSpan dt(1, 0, 0, 0);
  187. tm+=dt;
  188. strdate1=strdate2=tm.Format ("%m-%d");
  189. }
  190. if(m_filter.IsEmpty ())//2009-01-01
  191. {
  192. for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
  193. {
  194. if(m_List1array.ElementAt (ii).ElementAt (10).GetLength ()==10 || m_List1array.ElementAt (ii).ElementAt (11).GetLength ()==10)
  195. {
  196. if(m_List1array.ElementAt (ii).ElementAt (10).Right (5)>=strdate1 && m_List1array.ElementAt (ii).ElementAt (10).Right (5)<=strdate2)
  197. {
  198. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  199. }
  200. else if(m_List1array.ElementAt (ii).ElementAt (11).Right (5)>=strdate1 && m_List1array.ElementAt (ii).ElementAt (11).Right (5)<=strdate2)
  201. {
  202. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  203. }
  204. }
  205. }
  206. }
  207. else
  208. {
  209. int type=GetType(m_filter);
  210. if(type==1)//电话
  211. {
  212. for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
  213. {
  214. if(m_List1array.ElementAt (ii).ElementAt (3).Find (m_filter)!=-1 || \
  215. m_List1array.ElementAt (ii).ElementAt (4).Find (m_filter)!=-1)
  216. {
  217. if(m_List1array.ElementAt (ii).ElementAt (10).GetLength ()==10 || m_List1array.ElementAt (ii).ElementAt (11).GetLength ()==10)
  218. {
  219. if(m_List1array.ElementAt (ii).ElementAt (10).Right (5)>=strdate1 && m_List1array.ElementAt (ii).ElementAt (10).Right (5)<=strdate2)
  220. {
  221. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  222. }
  223. else if(m_List1array.ElementAt (ii).ElementAt (11).Right (5)>=strdate1 && m_List1array.ElementAt (ii).ElementAt (11).Right (5)<=strdate2)
  224. {
  225. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  226. }
  227. }
  228. }
  229. }
  230. }
  231. else if(type==2)//拼音
  232. {
  233. m_filter.MakeUpper ();
  234. for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
  235. {
  236. if(m_List1array.ElementAt (ii).ElementAt (17).Find (m_filter)!=-1 || \
  237. m_List1array.ElementAt (ii).ElementAt (18).Find (m_filter)!=-1)
  238. {
  239. if(m_List1array.ElementAt (ii).ElementAt (10).GetLength ()==10 || m_List1array.ElementAt (ii).ElementAt (11).GetLength ()==10)
  240. {
  241. if(m_List1array.ElementAt (ii).ElementAt (10).Right (5)>=strdate1 && m_List1array.ElementAt (ii).ElementAt (10).Right (5)<=strdate2)
  242. {
  243. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  244. }
  245. else if(m_List1array.ElementAt (ii).ElementAt (11).Right (5)>=strdate1 && m_List1array.ElementAt (ii).ElementAt (11).Right (5)<=strdate2)
  246. {
  247. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  248. }
  249. }
  250. }
  251. }
  252. }
  253. else
  254. {
  255. for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
  256. {
  257. if(m_List1array.ElementAt (ii).ElementAt (0).Find (m_filter)!=-1 || \
  258. m_List1array.ElementAt (ii).ElementAt (1).Find (m_filter)!=-1 ||\
  259. m_List1array.ElementAt (ii).ElementAt (2).Find (m_filter)!=-1 ||\
  260. m_List1array.ElementAt (ii).ElementAt (3).Find (m_filter)!=-1 ||\
  261. m_List1array.ElementAt (ii).ElementAt (4).Find (m_filter)!=-1 ||\
  262. m_List1array.ElementAt (ii).ElementAt (12).Find (m_filter)!=-1)
  263. {
  264. if(m_List1array.ElementAt (ii).ElementAt (10).GetLength ()==10 || m_List1array.ElementAt (ii).ElementAt (11).GetLength ()==10)
  265. {
  266. if(m_List1array.ElementAt (ii).ElementAt (10).Right (5)>=strdate1 && m_List1array.ElementAt (ii).ElementAt (10).Right (5)<=strdate2)
  267. {
  268. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  269. }
  270. else if(m_List1array.ElementAt (ii).ElementAt (11).Right (5)>=strdate1 && m_List1array.ElementAt (ii).ElementAt (11).Right (5)<=strdate2)
  271. {
  272. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  273. }
  274. }
  275. }
  276. }
  277. }
  278. }
  279. }
  280. else if(mode==2)//结婚纪念
  281. {
  282. CString strdate1,strdate2;
  283. CTime tm=CTime::GetCurrentTime ();
  284. strdate1=tm.Format ("%m-%d");
  285. if(m_radio==0)
  286. {
  287. CTimeSpan dt(m_days, 0, 0, 0);
  288. tm+=dt;
  289. strdate2=tm.Format ("%m-%d");
  290. }
  291. else if(m_radio==1)
  292. {
  293. strdate2=strdate1;
  294. }
  295. else
  296. {
  297. CTimeSpan dt(1, 0, 0, 0);
  298. tm+=dt;
  299. strdate2=tm.Format ("%m-%d");
  300. }
  301. if(m_filter.IsEmpty ())//2009-01-01
  302. {
  303. for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
  304. {
  305. if( m_List1array.ElementAt (ii).ElementAt (9).GetLength ()==10)
  306. {
  307. if(m_List1array.ElementAt (ii).ElementAt (9).Right (5)>=strdate1 && m_List1array.ElementAt (ii).ElementAt (9).Right (5)<=strdate2)
  308. {
  309. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  310. }
  311. }
  312. }
  313. }
  314. else
  315. {
  316. int type=GetType(m_filter);
  317. if(type==1)//电话
  318. {
  319. for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
  320. {
  321. if(m_List1array.ElementAt (ii).ElementAt (3).Find (m_filter)!=-1 || \
  322. m_List1array.ElementAt (ii).ElementAt (4).Find (m_filter)!=-1)
  323. {
  324. if( m_List1array.ElementAt (ii).ElementAt (9).GetLength ()==10)
  325. {
  326. if(m_List1array.ElementAt (ii).ElementAt (9).Right (5)>=strdate1 && m_List1array.ElementAt (ii).ElementAt (9).Right (5)<=strdate2)
  327. {
  328. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  329. }
  330. }
  331. }
  332. }
  333. }
  334. else if(type==2)//拼音
  335. {
  336. m_filter.MakeUpper ();
  337. for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
  338. {
  339. if(m_List1array.ElementAt (ii).ElementAt (17).Find (m_filter)!=-1 || \
  340. m_List1array.ElementAt (ii).ElementAt (18).Find (m_filter)!=-1)
  341. {
  342. if( m_List1array.ElementAt (ii).ElementAt (9).GetLength ()==10)
  343. {
  344. if(m_List1array.ElementAt (ii).ElementAt (9).Right (5)>=strdate1 && m_List1array.ElementAt (ii).ElementAt (9).Right (5)<=strdate2)
  345. {
  346. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  347. }
  348. }
  349. }
  350. }
  351. }
  352. else
  353. {
  354. for(ii=0; ii<m_List1.m_arLabels.GetSize (); ii++)
  355. {
  356. if(m_List1array.ElementAt (ii).ElementAt (0).Find (m_filter)!=-1 || \
  357. m_List1array.ElementAt (ii).ElementAt (1).Find (m_filter)!=-1 ||\
  358. m_List1array.ElementAt (ii).ElementAt (2).Find (m_filter)!=-1 ||\
  359. m_List1array.ElementAt (ii).ElementAt (3).Find (m_filter)!=-1 ||\
  360. m_List1array.ElementAt (ii).ElementAt (4).Find (m_filter)!=-1 ||\
  361. m_List1array.ElementAt (ii).ElementAt (12).Find (m_filter)!=-1)
  362. {
  363. if( m_List1array.ElementAt (ii).ElementAt (9).GetLength ()==10)
  364. {
  365. if(m_List1array.ElementAt (ii).ElementAt (9).Right (5)>=strdate1 && m_List1array.ElementAt (ii).ElementAt (9).Right (5)<=strdate2)
  366. {
  367. m_List1.m_arLabels.ElementAt (count++).Copy (m_List1array.ElementAt (ii));
  368. }
  369. }
  370. }
  371. }
  372. }
  373. }
  374. }
  375. m_List1.m_arLabels.SetSize(count, 1);
  376. ii=count;
  377. m_List1.m_LabelCount=ii;
  378. m_List1.SetItemCountEx (ii);
  379. }
  380. void CClientForm::OnBUTclose()
  381. {
  382. // TODO: Add your control notification handler code here
  383. GetParent()->SendMessage(WM_CLOSE);
  384. }
  385. void CClientForm::OnDblclkList2(NMHDR* pNMHDR, LRESULT* pResult)
  386. {
  387. // TODO: Add your control notification handler code here
  388. OnBUTmodify();
  389. *pResult = 0;
  390. }
  391. void CClientForm::OnSelchangeCombo1()
  392. {
  393. // TODO: Add your control notification handler code here
  394. SetTimer(1, 100, NULL);
  395. }
  396. void CClientForm::OnTimer(UINT nIDEvent)
  397. {
  398. // TODO: Add your message handler code here and/or call default
  399. KillTimer(nIDEvent);
  400. OnButton1();
  401. }
  402. void CClientForm::OnBUTmodify()
  403. {
  404. // TODO: Add your control notification handler code here
  405. POSITION pos;
  406. pos=m_List1.GetFirstSelectedItemPosition();
  407. if(pos==NULL)
  408. {
  409. return;
  410. }
  411. int iItem=m_List1.GetNextSelectedItem(pos);
  412. CString id=m_List1.GetItemText (iItem, 0);
  413. CClientDlg dlg;
  414. dlg.id =id;
  415. if(dlg.DoModal ()==IDOK)
  416. {
  417. g_sendhead.bsql=0;
  418. g_sendhead.code[0]=15;
  419. g_sendhead.tabcount=1;
  420. g_pMainWnd->ProcessChatMessageRequest2(15);if(g_bSendOK==0)return;
  421. DataToArray(&m_List1array);
  422. FillGrid();
  423. }
  424. }
  425. BOOL CClientForm::PreTranslateMessage(MSG* pMsg)
  426. {
  427. // TODO: Add your specialized code here and/or call the base class
  428. try
  429. {
  430. if(pMsg->message==WM_KEYDOWN)
  431. {
  432. switch (pMsg->wParam)
  433. {
  434. case VK_RETURN:
  435. OnButton1();
  436. return 1;
  437. case 0x43: // copy
  438. if ( ( GetKeyState( VK_CONTROL ) & 0x80 ) )
  439. {
  440. GetFocus()->SendMessage(WM_COPY);
  441. return TRUE;
  442. }
  443. break;
  444. case 0x56: //Ctrl + V:
  445. if ( ( GetKeyState( VK_CONTROL ) & 0x80 ) )
  446. {
  447. GetFocus()->SendMessage(WM_PASTE);
  448. return TRUE;
  449. }
  450. break;
  451. case 0x58: // cut
  452. if ( ( GetKeyState( VK_CONTROL ) & 0x80 ) )
  453. {
  454. GetFocus()->SendMessage(WM_CUT);
  455. return TRUE;
  456. }
  457. break;
  458. case 0x5A: //undo
  459. case 0x59: //redo
  460. if ( ( GetKeyState( VK_CONTROL ) & 0x80 ) )
  461. {
  462. GetFocus()->SendMessage(WM_UNDO);
  463. return TRUE;
  464. }
  465. break;
  466. }
  467. }
  468. return CFormView::PreTranslateMessage(pMsg);
  469. }
  470. catch(...)
  471. {
  472. }
  473. }
  474. void CClientForm::OnButton1()
  475. {
  476. // TODO: Add your control notification handler code here
  477. UpdateData();
  478. m_filter.TrimLeft ();
  479. m_filter.TrimRight ();
  480. FillGrid();
  481. }
  482. void CClientForm::OnButton2()
  483. {
  484. // TODO: Add your control notification handler code here
  485. UpdateData();
  486. m_filter.TrimLeft ();
  487. m_filter.TrimRight ();
  488. FillGrid(1);
  489. }
  490. void CClientForm::OnButton3()
  491. {
  492. // TODO: Add your control notification handler code here
  493. UpdateData();
  494. m_filter.TrimLeft ();
  495. m_filter.TrimRight ();
  496. FillGrid(2);
  497. }
  498. void CClientForm::OnRadio1()
  499. {
  500. // TODO: Add your control notification handler code here
  501. FillGrid(m_oldmode);
  502. }
  503. void CClientForm::OnRadio2()
  504. {
  505. // TODO: Add your control notification handler code here
  506. OnRadio1();
  507. }
  508. void CClientForm::OnRadio9()
  509. {
  510. // TODO: Add your control notification handler code here
  511. OnRadio1();
  512. }
  513. void CClientForm::OnChangeEdit1()
  514. {
  515. // TODO: If this is a RICHEDIT control, the control will not
  516. // send this notification unless you override the CFormView::OnInitDialog()
  517. // function and call CRichEditCtrl().SetEventMask()
  518. // with the ENM_CHANGE flag ORed into the mask.
  519. if(m_bInit==0)return;
  520. OnRadio1();
  521. // TODO: Add your control notification handler code here
  522. }