Exemplo n.º 1
0
void
FormModeSelect::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{
	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);

	switch(actionId)
	{
	case IDA_BUTTON_TIME:
		if(checkHeart()) {
			pSceneManager->GoForward(ForwardSceneTransition(SCENE_GAME_TIMETRIAL, SCENE_TRANSITION_ANIMATION_TYPE_FADE_IN_OUT));
		}
		break;
	case IDA_BUTTON_SECONDS:
		if(checkHeart()) {
			pSceneManager->GoForward(ForwardSceneTransition(SCENE_GAME_SECONDS, SCENE_TRANSITION_ANIMATION_TYPE_FADE_IN_OUT));
		}
		break;
	case IDA_BUTTON_MULTI:
		GHPlayerController *playerController = new GHPlayerController();
		bool isLogin = playerController->isLogin();
		if(isLogin) {
			if(checkHeart()) {
				pSceneManager->GoForward(ForwardSceneTransition(SCENE_GAME_MULTI, SCENE_TRANSITION_ANIMATION_TYPE_FADE_IN_OUT));
			}
		} else {
			playerController->playerLogin(this);
		}
		break;
	}
}
Exemplo n.º 2
0
void
SettingForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{
		SceneManager* pSceneManager = SceneManager::GetInstance();
		AppAssert(pSceneManager);

		switch(actionId)
		{
		case ID_FOOTER_ITEM1:
			pSceneManager->GoForward(ForwardSceneTransition(SCENE_MAIN_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
			break;
		case ID_FOOTER_ITEM2:
			pSceneManager->GoForward(ForwardSceneTransition(SCENE_CHATTING_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
			break;
		case ID_FOOTER_ITEM3:
			pSceneManager->GoForward(ForwardSceneTransition(SCENE_PARTNER_LIST_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
			break;
		case ID_FOOTER_ITEM4:
			pSceneManager->GoForward(ForwardSceneTransition(SCENE_PARTNER_SEARCH_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
			break;
		case ID_FOOTER_ITEM5:
			pSceneManager->GoForward(ForwardSceneTransition(SCENE_SETTING_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
			break;
		default:
			break;
		}

}
Exemplo n.º 3
0
void
EventListForm::OnGroupedListViewItemStateChanged(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
{
	if (status == LIST_ITEM_STATUS_SELECTED)
	{
		CalEventInstance* pCalEventInstance = null;

		if (groupIndex == GROUP_INDEX_ALL_DAY_EVENT)
		{
			pCalEventInstance = GetAllDayEventAt(index);
		}
		else
		{
			pCalEventInstance = GetNonAllDayEventAt(index);
		}

		if (pCalEventInstance != null)
		{
			SceneManager* pSceneManager = SceneManager::GetInstance();
			AppAssert(pSceneManager);

			ArrayList* pList = new (std::nothrow) ArrayList();
			pList->Construct();
			pList->Add(*(new (std::nothrow) CalEventInstance(*pCalEventInstance)));
			pSceneManager->GoForward(ForwardSceneTransition(SCENE_EVENT_DETAIL), pList);
		}
	}
}
Exemplo n.º 4
0
void BMCategoriesForm::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView & listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
{
  BookMarkManager & mngr = GetBMManager();
  if (elementId == ID_EYE)
  {
    bool bVisible = mngr.IsCategoryVisible(index);
    mngr.SetCategoryVisible(index, !bVisible);
  }
  if (elementId == ID_DELETE)
  {
    if (m_categoryToDelete == index)
      m_categoryToDelete = -1;
    else
      m_categoryToDelete = index;
  }
  if (elementId == ID_DELETE_TXT)
  {
    mngr.DeleteCategory(index);
    m_categoryToDelete = -1;
  }

  if (elementId == ID_NAME || elementId == ID_SIZE)
  {
    ArrayList * pList = new ArrayList;
    pList->Construct();
    pList->Add(new Integer(index));
    SceneManager * pSceneManager = SceneManager::GetInstance();
    pSceneManager->GoForward(ForwardSceneTransition(SCENE_CATEGORY,
        SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_ADD_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pList);
    return;
  }
  UpdateState();
}
Exemplo n.º 5
0
void
SplashForm::OnTimerExpired(Tizen::Base::Runtime::Timer& timer)
{
	SceneManager* pSceneManager = SceneManager::GetInstance();
	pSceneManager->GoForward( SceneTransitionId( TR_MAIN ) );

}
Exemplo n.º 6
0
bool
UiControls::OnAppInitializing(AppRegistry& appRegistry)
{
	// TODO:
	// Initialize UI resources (forms, buttons, etc.) and application specific data.
	// The application's permanent data and context can be obtained from the appRegistry.
	// If this method is successful, return true; otherwise, return false.
	// If this method returns false, the application will be terminated.
	/////////////////////////////////////////////////////////////////////////////////////
	//this codes is automatically inserted by Tizen application wizard.
	Frame* pAppFrame = new Frame();
	pAppFrame->Construct();
	AddFrame(*pAppFrame);
	////////////////////////////////////////////////////////////////////////////////////

	// Prepare Scene management.

	SceneRegister::RegisterAllScenes();
	SceneManager* pSceneManager = SceneManager::GetInstance();
	pSceneManager->GoForward(ForwardSceneTransition(SCENE_MAIN_FORM));

	// Uncomment the following statement to listen to the screen on/off events.
	//PowerManager::SetScreenEventListener(*this);
	
	return true;
}
Exemplo n.º 7
0
void LoginForm::loginPlayerFinished(Tizen::Base::String statusCode)
{
	AppLogDebug("STAUS : %S",statusCode.GetPointer());

	MessageBox msgBox;
	int modalResult;

	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);

	ArrayList* pList = new (std::nothrow)ArrayList;
	AppAssert(pList);
	pList->Construct();

	if(statusCode !=  "0")	// (로그인 성공 시) 로그인, 개인페이지로 이동
	{
		String playerKey = statusCode;
		pList->Add( new Tizen::Base::String(playerKey) );	// playerId
		pSceneManager->GoForward(ForwardSceneTransition(SCENE_PLAYER, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT, SCENE_HISTORY_OPTION_NO_HISTORY), pList);
	}
	else		// (로그인 실패 시) 로그인 실패 팝업
	{
		msgBox.Construct(L"Login", L"LOGIN fail", MSGBOX_STYLE_OK);
		msgBox.ShowAndWait(modalResult);
	}
}
Exemplo n.º 8
0
void Idl_intro::OnTimerExpired(Tizen::Base::Runtime::Timer& timer)
{
		SceneManager* pSceneManager = SceneManager::GetInstance();
		AppAssert(pSceneManager);
		pSceneManager->GoForward(ForwardSceneTransition(SCENE_TUTORIAL1, SCENE_TRANSITION_ANIMATION_TYPE_NONE));

}
Exemplo n.º 9
0
void
EditPanel::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
{
	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);
	draw_timer.Cancel();
	pSceneManager->GoForward(ForwardSceneTransition(SCENE_MAIN_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
}
Exemplo n.º 10
0
void
Idl_tutorial2::OnTouchReleased(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo)
{
    // TODO: Add your implementation codes here
    SceneManager* pSceneManager = SceneManager::GetInstance();
    AppAssert(pSceneManager);
    e_end = currentPosition.x;
    if(e_start > e_end)
    {
        pSceneManager->GoForward(ForwardSceneTransition(SCENE_TUTORIAL3, SCENE_TRANSITION_ANIMATION_TYPE_LEFT));

    }
    else
    {
        pSceneManager->GoForward(ForwardSceneTransition(SCENE_TUTORIAL1, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
    }
}
Exemplo n.º 11
0
void
Idl_intro::OnTouchDoublePressed(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo)
{
	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);
	// TODO: Add your implementation codes here
	pSceneManager->GoForward(ForwardSceneTransition(SCENE_MAIN_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
}
Exemplo n.º 12
0
void
CreateProfileForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{
	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);

	switch (actionId)
	{
	case ID_BUTTON_SAVE:
		if (__pProfileNameEditField->GetText().IsEmpty())
		{
			int doModal;
			MessageBox messageBox;
			String getError, getProfileNameError;
			AppResource * pAppResource = Application::GetInstance()->GetAppResource();
			pAppResource->GetString(IDS_PROFILE_NAME_ERROR, getProfileNameError);
			pAppResource->GetString(IDS_ERROR, getError);
			messageBox.Construct(getError, getProfileNameError, MSGBOX_STYLE_OK, 0);
			messageBox.ShowAndWait(doModal);
		}
		else
		{
			pSceneManager->GoBackward(BackwardSceneTransition());

			ProfileListForm *pProfileListForm = static_cast< ProfileListForm* >(Application::GetInstance()->GetAppFrame()->GetFrame()->GetControl(FORM_LIST));
			if (pProfileListForm != NULL) {
			    long long id;
				DateTime startDateTime, dueDateTime;

			    Tizen::System::SystemTime::GetTicks(id);
				startDateTime.SetValue(__pStartEditDate->GetYear(),
						__pStartEditDate->GetMonth(),
						__pStartEditDate->GetDay(),
						__pStartEditTime->GetHour(),
						__pStartEditTime->GetMinute(),
						0);
				dueDateTime.SetValue(__pDueEditDate->GetYear(),
						__pDueEditDate->GetMonth(),
						__pDueEditDate->GetDay(),
						__pDueEditTime->GetHour(),
						__pDueEditTime->GetMinute(),
						0);
				_profile_t_ profileSave = { id, __pProfileNameEditField->GetText(), startDateTime, dueDateTime, __latitude, __longitude, __pVolumeSlider->GetValue(),
						__pWifiCheckButton->IsSelected()?1:0,
						__pDescriptionEditField->GetText() };

				pProfileListForm->SaveUsingmodeProfile(profileSave);	//Create
			}
		}
		break;
	case ID_LOCATION_BUTTON:
		pSceneManager->GoForward(ForwardSceneTransition(SCENE_LOCATION));
		break;
	default:
		break;
	}
}
Exemplo n.º 13
0
void
Idl_tutorial1::OnTouchLongPressed(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo)
{


	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);
	pSceneManager->GoForward(ForwardSceneTransition(SCENE_MAIN_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
}
Exemplo n.º 14
0
void
CreateProfileForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{
	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);

	switch (actionId)
	{
	case ID_BUTTON_SAVE:
		if (__pSubjectEditField->GetText().IsEmpty())
		{
			int doModal;
			MessageBox messageBox;
			String getError, getProfileNameError;
			Application::GetInstance()->GetAppResource()->GetString(IDS_PROFILE_NAME_ERROR, getProfileNameError);
			Application::GetInstance()->GetAppResource()->GetString(IDS_ERROR, getError);
			messageBox.Construct(getError, getProfileNameError, MSGBOX_STYLE_OK, 0);
			messageBox.ShowAndWait(doModal);
		}
		else
		{
			AppLog("mobilehunter.net test!!!");
			pSceneManager->GoBackward(BackwardSceneTransition());

			ProfileListForm *pProfileListForm = static_cast< ProfileListForm* >(Application::GetInstance()->GetAppFrame()->GetFrame()->GetControl(FORM_LIST));
			if (pProfileListForm != NULL) {
				pProfileListForm->SaveUsingmodeProfile(__pSubjectEditField->GetText(),
						__pStartEditDate->GetYear(),
						__pStartEditDate->GetMonth(),
						__pStartEditDate->GetDay(),
						__pStartEditTime->GetHour(),
						__pStartEditTime->GetMinute(),
						__pDueEditDate->GetYear(),
						__pDueEditDate->GetMonth(),
						__pDueEditDate->GetDay(),
						__pDueEditTime->GetHour(),
						__pDueEditTime->GetMinute(),
						0,
						0,
						__pVolumeSlider->GetValue(),
						__pWifiCheckButton->IsSelected()?1:0,
						__pDescriptionEditField->GetText());
				AppLog("mobilehunter.net test!!!111");
			}
		}
		break;
	case ID_LOCATION_BUTTON:
		pSceneManager->GoForward(ForwardSceneTransition(SCENE_LOCATION));
		break;
	default:
		break;
	}
}
void
ShoppingListMainForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{
	SceneManager* pSceneManager = SceneManager::GetInstance();

	AppAssert(pSceneManager);

	switch(actionId)
	{
	case ID_HEADER_ITEM1:
		pSceneManager->GoForward(SceneTransitionId(IDSCNT_1));
		break;
	case ID_HEADER_ITEM2:
		pSceneManager->GoForward(SceneTransitionId(IDSCNT_2));
		break;
	case ID_OPTION_ADD:
		LaunchNewListDialog();
		break;
	default:
		break;
	}
}
Exemplo n.º 16
0
void
PartnerListForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{
	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);

	switch(actionId)
	{
	case ID_FOOTER_ITEM1:
		pSceneManager->GoForward(ForwardSceneTransition(SCENE_MAIN_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
		break;
	case ID_FOOTER_ITEM2:
		pSceneManager->GoForward(ForwardSceneTransition(SCENE_CHATTING_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
		break;
	case ID_FOOTER_ITEM3:
		pSceneManager->GoForward(ForwardSceneTransition(SCENE_PARTNER_LIST_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
		break;
	case ID_FOOTER_ITEM4:
		pSceneManager->GoForward(ForwardSceneTransition(SCENE_PARTNER_SEARCH_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
		break;
	case ID_FOOTER_ITEM5:
		pSceneManager->GoForward(ForwardSceneTransition(SCENE_SETTING_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE));
		break;
	case ID_LIST_PARTNER_LEFT:
		toast = new Toast();
		toast->Construct(Rectangle(30,1100 ,660,70), L"들어온 파트너 요청페이지로 이동합니다", 2000);
		break;
	case ID_LIST_PARTNER_RIGHT:
		toast = new Toast();
		toast->Construct(Rectangle(30,1100 ,660,70), L"언어를 선택합니다", 2000);
		break;

	default:
		break;
	}
}
Exemplo n.º 17
0
result HelloWorldFrame::OnInitializing(void)
{
  // Prepare Scene management.
  SceneManager* pSceneManager = SceneManager::GetInstance();
  static HelloWorldFormFactory formFactory;
  static HelloWorldPanelFactory panelFactory;
  pSceneManager->RegisterFormFactory(formFactory);
  pSceneManager->RegisterPanelFactory(panelFactory);
  pSceneManager->RegisterScene(L"workflow");

  // Go to the scene.
  result r = pSceneManager->GoForward(SceneTransitionId(IDSCNT_MAIN_SCENE));

  // TODO: Add your frame initialization code here.
  return r;
}
Exemplo n.º 18
0
bool RoundedAvatar::OnTouchReleased(Tizen::Ui::Control& source, const Tizen::Ui::TouchEventInfo& touchEventInfo) {
	if (!pressAllowed)
		return false;

	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);

	ArrayList* pList = new (std::nothrow) ArrayList(SingleObjectDeleter);

	pList->Construct(1);
	pList->Add(_pUserJson->CloneN());

	pSceneManager->GoForward(ForwardSceneTransition(SCENE_USER, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_ADD_HISTORY), pList);

	return true;
}
Exemplo n.º 19
0
bool
ThreadUI::OnAppInitializing(AppRegistry& appRegistry)
{
	////////////////////////////////////////////////////////////////////////////////////
	//this codes is automatically inserted by Tizen Application Wizard.
	Tizen::Ui::Controls::Frame* pAppMainFrame = new Tizen::Ui::Controls::Frame();
	pAppMainFrame->Construct();
	pAppMainFrame->SetName(L"MainFrame");
	AddFrame(*pAppMainFrame);
	////////////////////////////////////////////////////////////////////////////////////
	// TODO:
	// Initialize UI resources and application specific data.
	// The application's permanent data and context can be obtained from the appRegistry.
	//
	// If this method is successful, return true; otherwise, return false.
	// If this method returns false, the application will be terminated.

	// Uncomment the following statement to listen to the screen on/off events.
	//PowerManager::SetScreenEventListener(*this);

	//set sharedInstance
	GHSharedAuthData & sharedInstance = GHSharedAuthData::getSharedInstance();
	sharedInstance.setGameId("key_aa");

	// Prepare Scene management.
	SceneRegister::RegisterAllScenes();
	SceneManager* pSceneManager = SceneManager::GetInstance();
	pSceneManager->GoForward(ForwardSceneTransition(SCENE_GAME_SECLECT));

	/*// Create a form
	Form1 *pForm1 = new Form1();
	pForm1->Initialize();

	// Add the form to the frame
	Frame *pFrame = GetAppFrame()->GetFrame();
	pFrame->AddControl(*pForm1);

	// Set the current form
	pFrame->SetCurrentForm(*pForm1);

	// Draw and Show the form
	pForm1->Draw();
	pForm1->Show();*/

	return true;
}
Exemplo n.º 20
0
result
ProjectGiraffeFrame::OnInitializing(void)
{
	// Prepare Scene management.
	SceneManager* pSceneManager = SceneManager::GetInstance();
	static ProjectGiraffeFormFactory formFactory;
	static ProjectGiraffePanelFactory panelFactory;
	pSceneManager->RegisterFormFactory(formFactory);
	pSceneManager->RegisterPanelFactory(panelFactory);
	pSceneManager->RegisterScene(L"workflow");

	// Goto the scene.
	result r = pSceneManager->GoForward(SceneTransitionId(L"ID_SCNT_START"));

	// TODO: Add your initialization code here
	return r;
}
Exemplo n.º 21
0
void Chatting::OnFormBackRequested(Tizen::Ui::Controls::Form& source) {
	SceneManager* pSceneManager = SceneManager::GetInstance();

	if (ischeck_key == false, ischeck_plus == false) {
		pSceneManager->GoForward(
				ForwardSceneTransition(SCENE_CHATTING_FORM,
						SCENE_TRANSITION_ANIMATION_TYPE_NONE));

	} else if (ischeck_plus == true && ischeck_key == false) {
		__pChattControl->SetPosition(where2.x, where2.y);
		__pChattControl->Draw();
		__pPanel->SetPosition(where.x, where.y);
		__pPanel->Draw();

		ischeck_plus = false;

	}

}
void
cantataMainForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{
	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);
	switch(actionId)
	{
		case ID_BUTTON_PHOTOSTORY:
		{
			AppLogTag("cantata", "Open PhotoStoryList");
			pSceneManager->GoForward(ForwardSceneTransition(SCENE_PHOTOSTORY_MAIN, SCENE_TRANSITION_ANIMATION_TYPE_LEFT));

			break;
		}

		default:
			break;
	}
}
void GHGameListItemEventListener::OnListViewItemStateChanged
(Tizen::Ui::Controls::ListView &listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
{
    if (status == Tizen::Ui::Controls::LIST_ITEM_STATUS_SELECTED) {
        if(index >= list.GetCount()) {
            return ;
        }
        Tizen::Base::String gameId = ((GHGame*)(list.GetAt(index)))->getId();

        Tizen::Base::Collection::ArrayList* pList = new (std::nothrow)Tizen::Base::Collection::ArrayList;
        AppAssert(pList);
        pList->Construct();
        pList->Add( gameId );

        // Scene 이동
        SceneManager* pSceneManager = SceneManager::GetInstance();
        pSceneManager->GoForward(ForwardSceneTransition(SCENE_GAME, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pList);
    }
}
void GHPlayerListItemEventListener::OnListViewItemStateChanged
(Tizen::Ui::Controls::ListView &listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
{
	if (status == Tizen::Ui::Controls::LIST_ITEM_STATUS_SELECTED) {
		if(index < list.GetCount())
		{
			Tizen::Base::String playerId = ((GHPlayer*)(list.GetAt(index)))->getId();

			Tizen::Base::Collection::ArrayList* pList = new (std::nothrow)Tizen::Base::Collection::ArrayList;
			AppAssert(pList);
			pList->Construct();
			pList->Add( playerId );	// playerId

			// Scene 이동
			SceneManager* pSceneManager = SceneManager::GetInstance();
			SceneId sceneId = (playerId.Equals(GHSharedAuthData::getSharedInstance().getPlayerId()) ? SCENE_PLAYER : SCENE_PLAYERFRIEND);
			pSceneManager->GoForward(ForwardSceneTransition(sceneId, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pList);
		}
	}
}
Exemplo n.º 25
0
void
LoginForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{
	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);

	ArrayList* pList = new (std::nothrow)ArrayList;
	AppAssert(pList);
	pList->Construct();

	switch(actionId)
	{
	case IDA_BUTTON_JOIN:
		pList->Add( new Tizen::Base::Integer(1) );	// isJoin
		pSceneManager->GoForward(ForwardSceneTransition(SCENE_JOIN, SCENE_TRANSITION_ANIMATION_TYPE_DEPTH_IN), pList);
		break;
	case IDA_BUTTON_LOGIN:
		doLogin();
		break;
	}
}
Exemplo n.º 26
0
void UserForm::OpenDialog() {
	ArrayList* pList = new (std::nothrow) ArrayList(SingleObjectDeleter);

	JsonObject *dialogJson = new JsonObject();
	dialogJson->Construct();

	int uid;
	JsonParseUtils::GetInteger(*_pUserJson, L"id", uid);

	const String * userId = new String(L"user_id");
	JsonNumber *const userIdNumber = new JsonNumber(uid);
	dialogJson->Add(userId, userIdNumber);

	const String * userJson = new String(L"user_json");
	JsonObject *const constPtr = _pUserJson->CloneN();
	dialogJson->Add(userJson, constPtr);

	pList->Construct(1);
	pList->Add(dialogJson);

	SceneManager* pSceneManager = SceneManager::GetInstance();
	pSceneManager->GoForward(ForwardSceneTransition(SCENE_DIALOG, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), pList);
}
Exemplo n.º 27
0
void
ProfileListForm::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
{
	if (status == LIST_ITEM_STATUS_SELECTED)
	{
	    AppLog("OnListViewItemLongPressed.2222");

	    SceneManager* pSceneManager = SceneManager::GetInstance();
		AppAssert(pSceneManager);

		ArrayList* pList = new (std::nothrow) ArrayList();
		pList->Construct();
	    result r= E_SUCCESS;
	    __currentIndex = index;

	    DbEnumerator* pEnum;
	    DbStatement* pStmt;

	    pStmt = __pProfileDatabase->CreateStatementN(L"SELECT title, "
	    		"year, month, day, hour, minute, "
	    		"year2, month2, day2, hour2, minute,2 "
	    				"latitude, longitude, volume, wifi, memo FROM profile WHERE id = ?");
	    Integer* itemId = static_cast<Integer*>(__pIndexList.GetAt(index));
	    pList->Add(*new (std::nothrow) Integer(index/**itemId*/));
	    r = pStmt->BindInt(0, itemId->ToInt());
	    pEnum = __pProfileDatabase->ExecuteStatementN(*pStmt);
	    if (pEnum) {
	        String title;
	        pEnum->MoveNext();
	        r = pEnum->GetStringAt(0, title);
		    pList->Add(*new (std::nothrow) String(title));
		    int intItem;
		    double item;
	        r = pEnum->GetIntAt(1, intItem);	//year
		    pList->Add(*new (std::nothrow) Integer(intItem));
	        r = pEnum->GetIntAt(2, intItem);	//month
		    pList->Add(*new (std::nothrow) Integer(intItem));
	        r = pEnum->GetIntAt(3, intItem);	//day
		    pList->Add(*new (std::nothrow) Integer(intItem));
	        r = pEnum->GetIntAt(4, intItem);	//hour
		    pList->Add(*new (std::nothrow) Integer(intItem));
	        r = pEnum->GetIntAt(5, intItem);	//minute
		    pList->Add(*new (std::nothrow) Integer(intItem));
	        r = pEnum->GetIntAt(6, intItem);	//year2
		    pList->Add(*new (std::nothrow) Integer(intItem));
	        r = pEnum->GetIntAt(7, intItem);	//month2
		    pList->Add(*new (std::nothrow) Integer(intItem));
	        r = pEnum->GetIntAt(8, intItem);	//day2
		    pList->Add(*new (std::nothrow) Integer(intItem));
	        r = pEnum->GetIntAt(9, intItem);	//hour2
		    pList->Add(*new (std::nothrow) Integer(intItem));
	        r = pEnum->GetIntAt(10, intItem);	//minute2
		    pList->Add(*new (std::nothrow) Integer(intItem));
	        r = pEnum->GetDoubleAt(11, item);	//latitude
		    pList->Add(*new (std::nothrow) Double(item));
	        r = pEnum->GetDoubleAt(12, item);	//longitude
		    pList->Add(*new (std::nothrow) Double(item));
	        r = pEnum->GetIntAt(13, intItem);	//volume
		    pList->Add(*new (std::nothrow) Integer(intItem));
	        r = pEnum->GetIntAt(14, intItem);	//wifi
		    pList->Add(*new (std::nothrow) Integer(intItem));
	        r = pEnum->GetStringAt(15, title);	//memo
		    pList->Add(*new (std::nothrow) String(title));
	        delete pEnum;
	    }
	    delete pStmt;
		pSceneManager->GoForward(ForwardSceneTransition(SCENE_DETAIL), pList);
	    __isUpdateMode = true;
	}
}
Exemplo n.º 28
0
void
EditEventForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{
	result r = E_SUCCESS;

	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);

	ScrollPanel* pScrollPanel = static_cast< ScrollPanel* >(GetControl(0));
	AppAssert(pScrollPanel);

	static const int CONTEXT_POSITION = 200;

	switch (actionId)
	{
	case ID_BUTTON_REMINDER:
		__pReminderContextMenu->SetAnchorPosition(Point(__pReminderContextMenu->GetAnchorPosition().x, source.GetBounds().y + CONTEXT_POSITION - pScrollPanel->GetScrollPosition()));
		__pReminderContextMenu->SetFocusable(true);
		__pReminderContextMenu->SetShowState(true);
		__pReminderContextMenu->Show();
		break;

	case ID_CONTEXT_REMINDER_MINUTE:
		__selectedReminder = REMINDER_TIME_UNIT_MINUTE;
		__pReminderContextButton->SetText(L"Minute(s)");
		__pReminderContextButton->Invalidate(false);
		break;

	case ID_CONTEXT_REMINDER_HOUR:
		__selectedReminder = REMINDER_TIME_UNIT_HOUR;
		__pReminderContextButton->SetText(L"Hour(s)");
		__pReminderContextButton->Invalidate(false);
		break;

	case ID_CONTEXT_REMINDER_DAY:
		__selectedReminder = REMINDER_TIME_UNIT_DAY;
		__pReminderContextButton->SetText(L"Day(s)");
		__pReminderContextButton->Invalidate(false);
		break;

	case ID_CONTEXT_REMINDER_WEEK:
		__selectedReminder = REMINDER_TIME_UNIT_WEEK;
		__pReminderContextButton->SetText(L"Week(s)");
		__pReminderContextButton->Invalidate(false);
		break;

	case ID_BUTTON_RECURRENCE:
	{
		ArrayList* pList = new (std::nothrow) ArrayList();
		pList->Construct();

		DateTime startDate = __pStartEditDate->GetDate();
		DateTime endDate = __pEndEditDate->GetDate();

		pList->Add(*(new (std::nothrow) DateTime(startDate)));
		pList->Add(*(new (std::nothrow) DateTime(endDate)));

		if (__pRecurrence != null)
		{
			pList->Add(*(new (std::nothrow) Recurrence(*__pRecurrence)));
		}

		pSceneManager->GoForward(ForwardSceneTransition(SCENE_EVENT_SETRECURRENCE), pList);
	}
	break;

	case ID_BUTTON_PRIORITY:
		__pPriorityContextMenu->SetAnchorPosition(Point(__pPriorityContextMenu->GetAnchorPosition().x, source.GetBounds().y + CONTEXT_POSITION - pScrollPanel->GetScrollPosition()));
		__pPriorityContextMenu->SetFocusable(true);
		__pPriorityContextMenu->SetShowState(true);
		__pPriorityContextMenu->Show();
		break;

	case ID_CONTEXT_PRIORITY_HIGH:
		__selectedPriority = EVENT_PRIORITY_HIGH;
		__pPriorityContextButton->SetText(L"High");
		__pPriorityContextButton->Invalidate(false);
		break;

	case ID_CONTEXT_PRIORITY_NORMAL:
		__selectedPriority = EVENT_PRIORITY_NORMAL;
		__pPriorityContextButton->SetText(L"Normal");
		__pPriorityContextButton->Invalidate(false);
		break;

	case ID_CONTEXT_PRIORITY_LOW:
		__selectedPriority = EVENT_PRIORITY_LOW;
		__pPriorityContextButton->SetText(L"Low");
		__pPriorityContextButton->Invalidate(false);
		break;

	case ID_BUTTON_SENSITIVITY:
		__pSensitivityContextMenu->SetAnchorPosition(Point(__pSensitivityContextMenu->GetAnchorPosition().x, source.GetBounds().y + CONTEXT_POSITION - pScrollPanel->GetScrollPosition()));
		__pSensitivityContextMenu->SetFocusable(true);
		__pSensitivityContextMenu->SetShowState(true);
		__pSensitivityContextMenu->Show();
		break;

	case ID_CONTEXT_SENSITIVITY_PUBLIC:
		__selectedSensitivity = SENSITIVITY_PUBLIC;
		__pSensitivityContextButton->SetText(L"Public");
		__pSensitivityContextButton->Invalidate(false);
		break;

	case ID_CONTEXT_SENSITIVITY_PRIVATE:
		__selectedSensitivity = SENSITIVITY_PRIVATE;
		__pSensitivityContextButton->SetText(L"Private");
		__pSensitivityContextButton->Invalidate(false);
		break;

	case ID_CONTEXT_SENSITIVITY_CONFIDENTIAL:
		__selectedSensitivity = SENSITIVITY_CONFIDENTIAL;
		__pSensitivityContextButton->SetText(L"Confidential");
		__pSensitivityContextButton->Invalidate(false);
		break;

	case ID_BUTTON_STATUS:
		__pStatusContextMenu->SetAnchorPosition(Point(__pStatusContextMenu->GetAnchorPosition().x, source.GetBounds().y + CONTEXT_POSITION - pScrollPanel->GetScrollPosition()));
		__pStatusContextMenu->SetFocusable(true);
		__pStatusContextMenu->SetShowState(true);
		__pStatusContextMenu->Show();
		break;

	case ID_CONTEXT_STATUS_NONE:
		__selectedStatus = EVENT_STATUS_NONE;
		__pStatusContextButton->SetText(L"None");
		__pStatusContextButton->Invalidate(false);
		break;

	case ID_CONTEXT_STATUS_CONFIRMED:
		__selectedStatus = EVENT_STATUS_CONFIRMED;
		__pStatusContextButton->SetText(L"Confirmed");
		__pStatusContextButton->Invalidate(false);
		break;

	case ID_CONTEXT_STATUS_CANCELLED:
		__selectedStatus = EVENT_STATUS_CANCELLED;
		__pStatusContextButton->SetText(L"Cancelled");
		__pStatusContextButton->Invalidate(false);
		break;

	case ID_CONTEXT_STATUS_TENTATIVE:
		__selectedStatus = EVENT_STATUS_TENTATIVE;
		__pStatusContextButton->SetText(L"Tentative");
		__pStatusContextButton->Invalidate(false);
		break;

	case ID_CHKBUTTON_ISALLDAY_CHECKED:
	{
		if (__pStartEditTime != null)
		{
			__pStartEditTime->SetShowState(false);
		}

		if (__pEndEditTime != null)
		{
			__pEndEditTime->SetShowState(false);
		}
	}
	break;

	case ID_CHKBUTTON_ISALLDAY_UNCHECKED:
	{
		if (__pStartEditTime != null)
		{
			__pStartEditTime->SetShowState(true);
		}

		if (__pEndEditTime != null)
		{
			__pEndEditTime->SetShowState(true);
		}
	}
	break;

	case ID_FOOTER_SAVE:
		if (__pSubjectEditField->GetText().IsEmpty())
		{
			MessageBox messageBox;
			messageBox.Construct(L"Error", "Please enter the subject", MSGBOX_STYLE_OK, 0);
			int doModal;
			messageBox.ShowAndWait(doModal);
		}
		else
		{
			if (__pCalEvent != null)
			{
				r = UpdateEvent();
				TryReturnVoid(!IsFailed(r), "[%s] Failed to edit event.", GetErrorMessage(r));
			}
			else
			{
				MessageBox messageBox;
				messageBox.Construct(L"Error", "Failed to edit the event.", MSGBOX_STYLE_OK, 0);
				int doModal;
				messageBox.ShowAndWait(doModal);
			}

			pSceneManager->GoBackward(BackwardSceneTransition(SCENE_EVENT_LIST));
		}
		break;

	}

}
Exemplo n.º 29
0
void
Form2::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{

	switch(actionId)
	{
	case ID_BUTTON_OK:
		{
			Integer num(__score);
			__pLabel->SetText(num.ToString());

			for(int i= 0 ; i < 9 ; i++){
					pButton[i] = static_cast< Button* >(GetControl(button_l[i]));
					if (pButton[i] != null)
					{
						pButton[i]->SetActionId(button_const[i]);
						pButton[i]->AddActionEventListener(*this);
						//pButton[i]->SetNormalBackgroundBitmap(*__pBitmapResources[9]);
						pButton[i]->SetColor(ButtonStatus(0),Color::GetColor(COLOR_ID_BLACK));
					}
			}

			//첫 시작시
			if(count == 0)
			{
				pThread->Construct(this,__threadid);
				//__manager.AddThread(pThread);
				pThread->Start();
			}

			//다음 시작시
			else
			{
				__score = 0;
				pThread->setlive(true);
				pThread->Start();
			}

			count ++;
			__pButtonOk->SetEnabled(false);
			__pButtonLank->SetEnabled(false);

			long long tick ;
			Tizen::Base::TimeSpan  uptime(0);
			result r = Tizen::System::SystemTime::GetUptime(uptime);
			if (IsFailed(r))
			{
				AppLog("System uptime not available\n");
				return ;
			}
			tick = uptime.GetTicks();
			TimeSpan span = static_cast<long>(tick);

			__startTick = uptime.GetTicks();
			__pTimer->Start(10);

			RequestRedraw();

		}
		break;
	case ID_BUTTON_1:
		//if(pButton[0]->SetDisabledBitmap() == __pBitmapResources[1])
		//if(pBitmapResources[1] != null)

		//AppLogDebug(__pBitmapResources[1]);

		if(pButton[0]->GetColor(ButtonStatus(0)) == Color::GetColor(COLOR_ID_BLUE) && flag_clicked == false)

		//if(pButton[0]->GetCapturedBitmapN() == Color::GetColor(COLOR_ID_BLUE))

		//if(pButton[0]->GetText().CompareTo("1") == 0)
			{
					//if(pButton[btn_num]->GetColor(ButtonStatus(2)) == Color::GetColor(COLOR_ID_RED))
					{
						__score++;

						flag_clicked = true;

						//AppLogDebug("빨간색");
					}

				}

		//flag_clicked = true;
			break;
	case ID_BUTTON_2:
		//if((pButton[1]->GetText()).CompareTo("1") == 0)
		//if(pButton[1]->GetCapturedBitmapN() == __pBitmapResources[2])
		if(pButton[1]->GetColor(ButtonStatus(0)) == Color::GetColor(COLOR_ID_BLUE)  && flag_clicked == false)
				{
					//if(pButton[btn_num]->GetColor(ButtonStatus(2)) == Color::GetColor(COLOR_ID_RED))
					{
						__score++;


						flag_clicked = true;
					    //AppLogDebug("빨간색");
					}

				}


			break;
	case ID_BUTTON_3:
		//if(pButton[2]->GetText().CompareTo("1") == 0)
		//if(pButton[2]->GetCapturedBitmapN() == __pBitmapResources[3])
		if(pButton[2]->GetColor(ButtonStatus(0)) == Color::GetColor(COLOR_ID_BLUE)  && flag_clicked == false)
				{
					//if(pButton[btn_num]->GetColor(ButtonStatus(2)) == Color::GetColor(COLOR_ID_RED))
					{
						__score++;

						flag_clicked = true;
						//AppLogDebug("빨간색");
					}

				}

		//flag_clicked = true;
			break;
	case ID_BUTTON_4:
		//if(pButton[3]->GetText().CompareTo("1") == 0)
		//if(pButton[3]->GetCapturedBitmapN() == __pBitmapResources[4])
		if(pButton[3]->GetColor(ButtonStatus(0)) == Color::GetColor(COLOR_ID_BLUE)  && flag_clicked == false)
				{
					//if(pButton[btn_num]->GetColor(ButtonStatus(2)) == Color::GetColor(COLOR_ID_RED))
					{
						__score++;

						flag_clicked = true;
						//AppLogDebug("빨간색");
					}
				}
			break;
	case ID_BUTTON_5:
		//if(pButton[4]->GetText().CompareTo("1") == 0)
		//if(pButton[4]->GetCapturedBitmapN() == __pBitmapResources[5])
		if(pButton[4]->GetColor(ButtonStatus(0)) == Color::GetColor(COLOR_ID_BLUE)  && flag_clicked == false)
				{
					//if(pButton[btn_num]->GetColor(ButtonStatus(2)) == Color::GetColor(COLOR_ID_RED))
					{
						__score++;

						flag_clicked = true;
						//AppLogDebug("빨간색");
					}

				}
			break;
	case ID_BUTTON_6:
		//if(pButton[5]->GetText().CompareTo("1") == 0)
		//if(pButton[5]->GetCapturedBitmapN() == __pBitmapResources[6])
		if(pButton[5]->GetColor(ButtonStatus(0)) == Color::GetColor(COLOR_ID_BLUE)  && flag_clicked == false)
				{
					//if(pButton[btn_num]->GetColor(ButtonStatus(2)) == Color::GetColor(COLOR_ID_RED))
					{
						__score++;

						flag_clicked = true;

						//AppLogDebug("빨간색");
					}
				}
			break;
	case ID_BUTTON_7:
		//if(pButton[6]->GetText().CompareTo("1") == 0)
		//if(pButton[6]->GetCapturedBitmapN() == __pBitmapResources[7])
		if(pButton[6]->GetColor(ButtonStatus(0)) == Color::GetColor(COLOR_ID_BLUE)  && flag_clicked == false)
				{
					//if(pButton[btn_num]->GetColor(ButtonStatus(2)) == Color::GetColor(COLOR_ID_RED))
					{
						__score++;

						flag_clicked = true;
						//AppLogDebug("빨간색");
					}
				}
			break;
	case ID_BUTTON_8:
		//if(pButton[7]->GetText().CompareTo("1") == 0)
		//if(pButton[7]->GetCapturedBitmapN() == __pBitmapResources[8])
		if(pButton[7]->GetColor(ButtonStatus(0)) == Color::GetColor(COLOR_ID_BLUE)  && flag_clicked == false)
				{
					//if(pButton[btn_num]->GetColor(ButtonStatus(2)) == Color::GetColor(COLOR_ID_RED))
					{
						__score++;

						flag_clicked = true;
						//AppLogDebug("빨간색");
					}
				}
			break;
	case ID_BUTTON_9:
		//if(pButton[8]->GetText().CompareTo("1") == 0)
		//if(pButton[8]->GetCapturedBitmapN() == __pBitmapResources[9])
		if(pButton[8]->GetColor(ButtonStatus(0)) == Color::GetColor(COLOR_ID_BLUE)  && flag_clicked == false)
				{
					//if(pButton[btn_num]->GetColor(ButtonStatus(2)) == Color::GetColor(COLOR_ID_RED))
					{
						__score++;

						flag_clicked = true;
					}
				}
			break;

	//팝업
	case ID_BUTTON_POPUP_OK:
	{
			HidePopup(__pPopup);
			//재시작
			//__score = 0;
			pThread->setlive(true);
			//pThread->Start();

			__pButtonOk->SetEnabled(true);

			break;
	}


	// cancel to add new todo.
	case ID_BUTTON_POPUP_CANCEL:
	{
			HidePopup(__pPopup);

			//화면 넘어가서 결과(score) 확인하기

			__pButtonOk->SetEnabled(true);


			break;
	}

	case ID_BUTTON_LANK:
	{
			SceneManager* pSceneManager = SceneManager::GetInstance();
			AppAssert(pSceneManager);


			//String __getWatch = __pLabel2->GetText();  //__watchText 를 얻어옴
			//__pWatchTextList->Add(new String(__getWatch.GetPointer()));

			//InsertItem();

/*
			ArrayList* pList = new (std::nothrow) ArrayList;
			AppAssert(pList);
			pList->Construct();
			pList->Add(*(new (std::nothrow) String(userName)));
			pList->Add(*(new (std::nothrow) String(favoriteColor)));
*/

			//__pWatchTextList = new (std::nothrow) ArrayList();
			//AppAssert(__pWatchTextList);
			//__pWatchTextList->Construct();

			/*if(!__pWatchTextList)
			{
				__pWatchTextList->Add(new String("NULL"));
			}
			else
			{*/
				pLanking->setList_boolean(false);
				pSceneManager->GoForward(ForwardSceneTransition(SCENE_Ranking), __pWatchTextList);
			//}

			break;
	}
	default:

			break;
	}
}
void ForUsDocForm::OnActionPerformed(const Tizen::Ui::Control& source,
		int actionId) {

	int year = __pSelectCalendar->GetTimeField(TIME_FIELD_YEAR);
	int month = __pSelectCalendar->GetTimeField(TIME_FIELD_MONTH);

	result r = E_SUCCESS;

	String port = "39000";
	int __iport = 39000;
	bool __isProtocol = false;
	bool __isServer = true;

	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);

	ArrayList* pList = new (std::nothrow) ArrayList;
	AppAssert(pList);

	__year = year;
	__month = month;

	switch (actionId) {
	case ID_BUTTON_PREV_MONTH_ID:
		TryReturnVoid((year > 1) || (month > 1), "At first page");
		__pSelectCalendar->AddTimeField(TIME_FIELD_MONTH, -1);
		AppLog("PREV_MONTH Button is clicked\n");
		break;
	case ID_BUTTON_NEXT_MONTH_ID:
		TryReturnVoid((year < 9999) || (month < 12), "At last page");
		__pSelectCalendar->AddTimeField(TIME_FIELD_MONTH, 1);
		AppLog("NEXT_MONTH Button is clicked\n");
		break;
	case ID_BUTTON_PREV_YEAR_ID:
		TryReturnVoid(year > 1, "At starting year");
		__pSelectCalendar->AddTimeField(TIME_FIELD_YEAR, -1);
		AppLog("PREV_YEAR Button is clicked\n");
		break;
	case ID_BUTTON_NEXT_YEAR_ID:
		TryReturnVoid(year < 9999, "At starting year");
		__pSelectCalendar->AddTimeField(TIME_FIELD_YEAR, 1);
		AppLog("NEXT_YEAR Button is clicked\n");
		break;
	case dayBtn0:
	case dayBtn1:
	case dayBtn2:
	case dayBtn3:
	case dayBtn4:
	case dayBtn5:
	case dayBtn6:
	case dayBtn7:
	case dayBtn8:
	case dayBtn9:
	case dayBtn10:
	case dayBtn11:
	case dayBtn12:
	case dayBtn13:
	case dayBtn14:
	case dayBtn15:
	case dayBtn16:
	case dayBtn17:
	case dayBtn18:
	case dayBtn19:
	case dayBtn20:
	case dayBtn21:
	case dayBtn22:
	case dayBtn23:
	case dayBtn24:
	case dayBtn25:
	case dayBtn26:
	case dayBtn27:
	case dayBtn28:
	case dayBtn29:
	case dayBtn30:
	case dayBtn31:
	case dayBtn32:
	case dayBtn33:
	case dayBtn34:
	case dayBtn35:
	case dayBtn36:
	case dayBtn37:
	case dayBtn38:
	case dayBtn39:
	case dayBtn40:
	case dayBtn41: {
		int temp = actionId;
		AppLog("DayBtn is clicked");
		AppLog("Btn Num is &d", temp);

		r = pList->Construct();
		{
			TryCatch(r == E_SUCCESS, , "Failed to construct the Array list.");
			CATCH: {
			}
		}

		r = pList->Add(*(new (std::nothrow) Boolean(__isServer)));
		{
			TryCatch(r == E_SUCCESS, ,
				"Failed to add the client/server to the Array list.");

		}

		r = pList->Add(*(new (std::nothrow) Integer(__iport)));
		TryCatch(r == E_SUCCESS, ,
				"Failed to add port number to the Array list.");

		r = pList->Add(*(new (std::nothrow) Boolean(__isProtocol)));
		TryCatch(r == E_SUCCESS, ,
				"Failed to add the protocol to the Array list.");

		r = pList->Add(*(new (std::nothrow) Integer(__year)));
		TryCatch(r == E_SUCCESS, , "Failed to add year to the Array list.");

		r = pList->Add(*(new (std::nothrow) Integer(__month)));
		TryCatch(r == E_SUCCESS, , "Failed to add month to the Array list.");

		String strTmp = __pDayBtn[actionId]->GetText();

		int day;
		r = Tizen::Base::Integer::Parse(strTmp, day);
		r = pList->Add(*new (std::nothrow) Integer(day));
		TryCatch(r == E_SUCCESS, , "Failed to add day to the Array list.");

		if (__pEnrollment != null) {
			delete __pEnrollment;
			__pEnrollment = null;
		}

		pSceneManager->GoForward(ForwardSceneTransition(SCENE_ENROLLMENT),
				pList);

	}
		break;

	default:
		break;
	}

	UpdateCalendarDisplay();

}