Пример #1
0
void
InfoForm::OnFormBackRequested(Osp::Ui::Controls::Form& form)
{
	Frame *pFrame = Application::GetInstance()->GetAppFrame()->GetFrame();
	FormManager *pFormMgr = static_cast<FormManager *>(pFrame->GetControl("FormManager"));
	if (pFormMgr != null) {
		pFormMgr->SendUserEvent(FormManager::REQUEST_ITEMLIST, null);
	}
}
Пример #2
0
void
CategoryItemForm::OnFormBackRequested(Osp::Ui::Controls::Form& form)
{
	__pFooter->SetBackButtonEnabled(false);
	Frame *pFrame = Application::GetInstance()->GetAppFrame()->GetFrame();
	FormManager *pFormMgr = static_cast<FormManager *>(pFrame->GetControl("FormManager"));
	if (pFormMgr != null) {
		pFormMgr->SendUserEvent(FormManager::REQUEST_CATEGORYLISTBACK, null);
	}
}
Пример #3
0
void
CategoryItemForm::OnActionPerformed(const Osp::Ui::Control& source, int actionId)
{
	ItemListForm::OnActionPerformed(source, actionId);

	if(actionId == SOFTKEY_BACK) {
		Frame *pFrame = Application::GetInstance()->GetAppFrame()->GetFrame();
		FormManager *pFormMgr = static_cast<FormManager *>(pFrame->GetControl("FormManager"));
		if (pFormMgr != null) {
			pFormMgr->SendUserEvent(FormManager::REQUEST_CATEGORYLISTBACK, null);
		}
	}

	if(actionId == SOFTKEY_INFO) {
			Frame *pFrame = Application::GetInstance()->GetAppFrame()->GetFrame();
			FormManager *pFormMgr = static_cast<FormManager *>(pFrame->GetControl("FormManager"));
			if (pFormMgr != null) {
				pFormMgr->SendUserEvent(FormManager::REQUEST_INFO, null);
			}
		}
}
Пример #4
0
void
UserProfileForm::OnActionPerformed(const Control& source, int actionId)
{
	Frame *pFrame = Application::GetInstance()->GetAppFrame()->GetFrame();
	FormManager *pFormManager = static_cast<FormManager *>(pFrame->GetControl(L"FormManager"));
	switch (actionId)
	{
	case ID_BUTTON_FRIENDS_CLICKED:

		if (pFormManager == null)
			return;
		pFormManager->SendUserEvent(FormManager::REQUEST_FRIENDSFORM, null);
		break;

	case ID_BUTTON_LOGOUT_CLICKED:

		if (pFormManager == null)
			return;
		pFormManager->SendUserEvent(FormManager::REQUEST_MAINFORM, null);
		break;
	}
}