// ------------------------------------------- /* * OnBackButton */ private void OnBackButton() { if (!UsersController.Instance.CurrentUser.Validated) { MenusScreenController.Instance.CreateNewInformationScreen(ScreenInformationView.SCREEN_WAIT, UIScreenTypePreviousAction.KEEP_CURRENT_SCREEN, LanguageController.Instance.GetText("message.info"), LanguageController.Instance.GetText("message.please.wait"), null, SUB_EVENT_SCREENPROFILE_CONFIRMATION_EXIT_WITHOUT_SAVE); CommsHTTPConstants.CheckValidationUser(UsersController.Instance.CurrentUser.Id.ToString()); } else { if (HasChanged) { string warning = LanguageController.Instance.GetText("message.warning"); string description = LanguageController.Instance.GetText("message.exit.without.apply.changes"); MenusScreenController.Instance.CreateNewInformationScreen(ScreenInformationView.SCREEN_CONFIRMATION, UIScreenTypePreviousAction.KEEP_CURRENT_SCREEN, warning, description, null, SUB_EVENT_SCREENPROFILE_CONFIRMATION_EXIT_WITHOUT_SAVE); } else { MenusScreenController.Instance.CreateNewScreenNoParameters(ScreenMainMenuView.SCREEN_MAIN_MENU, UIScreenTypePreviousAction.DESTROY_ALL_SCREENS); } } }
// ------------------------------------------- /* * OnCheckValidatedAccount */ private void OnCheckValidatedAccount() { MenusScreenController.Instance.CreateNewInformationScreen(ScreenInformationView.SCREEN_WAIT, UIScreenTypePreviousAction.KEEP_CURRENT_SCREEN, LanguageController.Instance.GetText("message.info"), LanguageController.Instance.GetText("message.please.wait"), null, ""); CommsHTTPConstants.CheckValidationUser(UsersController.Instance.CurrentUser.Id.ToString()); }