Пример #1
0
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;
}
Пример #2
0
void CMainWindow::OnToolsRestore() {
	CRestoreDlg restoreDlg;
	restoreDlg.DoModal();
	chooser->RefreshStudentList();
}