void CHomeUI::OnBnClickedBtnRestore() { PE_PHONE_SETTING* s = PECore::GetCurPhone(); if (s == NULL) { MessageBox(_T("Device is not connected"),_T("Error"),MB_ICONSTOP|MB_OK); return; } CRestoreDlg *pDlg = new CRestoreDlg(); pDlg->DoModal(); g_iCanSync = 1; delete pDlg; }
void CMainWindow::OnToolsRestore() { CRestoreDlg restoreDlg; restoreDlg.DoModal(); chooser->RefreshStudentList(); }