/** * If the user presses the back button go back to the share screen * else if user presses the OK button next to the email field, send his mail to the server and go to the goodbye screen **/ private void ManageShareCodeScreen() { if (IsButtonDown(InterfaceButtons.BACK)) { mTimeout.Reset(); mCurrentState = ScreensStates.SHARE_PHOTO; UpdateScreen(); } else if (IsButtonDown(InterfaceButtons.SHARE_EMAIL_OK)) { mTimeout.Reset(); string mail_s = mail.text; mSharingServer.SendToServerMail(mail_s); mail.text = ""; mCurrentState = ScreensStates.GOODBYE; UpdateScreen(); } }