public void ViewUnconfirmedEmail(NodeAddedEvent e, ScreenNode screen, SelfUserWithUnconfirmedEmailNode userEmail, [JoinAll] Optional <SelfUserWithConfirmedEmailNode> confirmedOptional) { string unconfirmedEmailFormatText = this.GetUnconfirmedEmailFormatText(screen.profileAccountSectionUI); string email = string.Empty; string unconfirmedEmail = userEmail.unconfirmedUserEmail.Email; if (confirmedOptional.IsPresent()) { unconfirmedEmailFormatText = "%EMAIL%\n" + this.GetConfirmedEmailFormatText(screen.profileAccountSectionUI) + " " + getColorFormattedEmail(screen.profileAccountSectionUI, "%UNCEMAIL%"); email = confirmedOptional.Get().confirmedUserEmail.Email; } screen.profileAccountSectionUI.SetEmail(unconfirmedEmailFormatText, email, unconfirmedEmail); }
public void InsertUserEmail(NodeAddedEvent e, SingleNode <ConfirmUserEmailScreenComponent> screen, SelfUserWithUnconfirmedEmailNode user) { ConfirmUserEmailScreenComponent component = screen.component; component.ConfirmationHintWithUserEmail = component.ConfirmationHint.Replace("%EMAIL%", string.Format("<color=#{1}>{0}</color>", user.unconfirmedUserEmail.Email, component.EmailColor.ToHexString())); }
public void SendAgain(ButtonClickEvent e, SingleNode <SendAgainButtonComponent> button, [JoinAll] SelfUserWithUnconfirmedEmailNode user) { base.ScheduleEvent <RequestSendAgainConfirmationEmailEvent>(user); }
public void Cancel(ButtonClickEvent e, SingleNode <CancelButtonComponent> button, [JoinByScreen] SingleNode <ConfirmUserEmailScreenComponent> screen, [Mandatory, JoinAll] SelfUserWithUnconfirmedEmailNode user) { base.ScheduleEvent <CancelChangeUserEmailEvent>(user); base.ScheduleEvent <ShowScreenRightEvent <ViewUserEmailScreenComponent> >(screen); }