void Enrollment::OnSceneActivatedN( const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs) { AppLog("ChatFrm::OnSceneActivatedN"); Ip4Address* pAddress = null; if (pArgs != null) { if (pArgs->GetCount()) { Boolean* pServer = dynamic_cast<Boolean*>(pArgs->GetAt(0)); TryCatch(pServer != null, , "Failed to retrieve the client/server from the Array list."); __isServer = pServer->ToBool(); if (__isServer) { Integer* pPort = dynamic_cast<Integer*>(pArgs->GetAt(1)); TryCatch(pPort != null, , "Failed to retrieve the port number from the Array list."); __port = pPort->ToInt(); Boolean* pProtocol = dynamic_cast<Boolean*>(pArgs->GetAt(2)); TryCatch(pProtocol != null, , "Failed to retrieve the protocol type from the Array list."); __isTcp = pProtocol->ToBool(); Integer* pYear = dynamic_cast<Integer*>(pArgs->GetAt(3)); TryCatch(pProtocol != null, , "Failed to retrieve the year from the Array list."); __year = pYear->ToInt(); Integer* pMonth = dynamic_cast<Integer*>(pArgs->GetAt(4)); TryCatch(pProtocol != null, , "Failed to retrieve the month from the Array list."); __month = pMonth->ToInt(); Integer* pDay = dynamic_cast<Integer*>(pArgs->GetAt(5)); TryCatch(pProtocol != null, , "Failed to retrieve the month from the Array list."); __day = ""; __day = pDay->ToString(); if (__day == "") { AppLog("Day Error"); }; String myDay = ""; myDay.Append(__year); myDay.Append("/"); myDay.Append(__month); myDay.Append("/"); myDay.Append(__day); myDay.Append(""); __pDate->SetText(myDay); } else { pAddress = dynamic_cast<Ip4Address*>(pArgs->GetAt(1)); TryCatch(pAddress !=null, , "Failed to retrieve the Ipaddress from the Array list."); Integer* pPort = dynamic_cast<Integer*>(pArgs->GetAt(2)); TryCatch(pPort != null, , "Failed to retrieve the port number from the Array list."); __port = pPort->ToInt(); Boolean* pProtocol = dynamic_cast<Boolean*>(pArgs->GetAt(3)); TryCatch(pProtocol != null, , "Failed to retrieve the protocol type from the Array list."); __isTcp = pProtocol->ToBool(); Integer* pYear = dynamic_cast<Integer*>(pArgs->GetAt(3)); TryCatch(pProtocol != null, , "Failed to retrieve the year from the Array list."); __year = pYear->ToInt(); Integer* pMonth = dynamic_cast<Integer*>(pArgs->GetAt(4)); TryCatch(pProtocol != null, , "Failed to retrieve the month from the Array list."); __month = pMonth->ToInt(); Integer* pDay = dynamic_cast<Integer*>(pArgs->GetAt(5)); TryCatch(pProtocol != null, , "Failed to retrieve the month from the Array list."); __day = ""; __day = pDay->ToString(); if (__day == "") { AppLog("Day Error"); }; String myDay = ""; myDay.Append(__year); myDay.Append("/"); myDay.Append(__month); myDay.Append("/"); myDay.Append(__day); myDay.Append("."); __pDate->SetText(myDay); } }