public UbsStaffMisconductPage NavigateToUbsStaffMisconductPage() { Logger.Info(CultureInfo.CurrentCulture, "Navigating to Report misconduct of UBS staff page"); ContactButton.Click(); ReportUbsStaffMisconductLink.Click(); return(new UbsStaffMisconductPage(DriverContext)); }
void Start() { //foreach (tipoDeData cada_item in lista) foreach (ContactData item in contactList.contacts) { ContactButton newButton = Instantiate(contactButton); newButton.transform.SetParent(buttonContainer.transform); newButton.transform.localScale = Vector3.one; // es lo mismo a = new Vector3 (1, 1, 1); newButton.Init(item, popup); } }
/// <summary> /// Manages the interactables of the newly clicked and old contact button that was pressed /// </summary> /// <param name="contactButton"> The ContactButton that was just clicked </param> public void EnableNewContactButton(ContactButton contactButton) { if (ActiveContactButton != null) { ActiveContactButton.Button.interactable = true; } contactButton.Button.interactable = false; ActiveContactButton = contactButton; confirmButton.interactable = true; }
private void AddButtons() { for (int i = 0; i < contacts.Length; i++) { // Get a button and assign it to scroll list GameObject newButton = buttonObjectPool.GetObject(); newButton.transform.SetParent(contactsPanel); // Update button with user information ContactButton contactButton = newButton.GetComponent <ContactButton>(); contactButton.Setup(contacts[i], this); } }
void ReleaseDesignerOutlets() { if (ContactButton != null) { ContactButton.Dispose(); ContactButton = null; } if (QuickDepositTableView != null) { QuickDepositTableView.Dispose(); QuickDepositTableView = null; } }
/// <summary> /// Sets the active contact button if the inputted address is from a saved contact /// </summary> protected override void OnStart() { if (!string.IsNullOrEmpty(sendAssetPopup.Address.contactName.text)) { string inputtedAddress = sendAssetPopup.Address.addressField.Text.ToLower(); for (int i = 0; i < contactsListTransform.childCount; i++) { ContactButton contactButton = contactsListTransform.GetChild(i).GetChild(0).GetComponent <ContactButton>(); if (contactButton.RealContactAddress == inputtedAddress) { EnableNewContactButton(contactButton); } } } }
/// <summary> /// Sets all the necessary popup text elements /// </summary> /// <param name="addingContact"> Checks if adding a contact or editing an existing one </param> /// <param name="name"> The current name of the contact </param> /// <param name="address"> The current address of the contact </param> /// <param name="contactButton"> The ContactButton being edited. </param> public void SetPopupLayout(bool addingContact, string name = "", string address = "", ContactButton contactButton = null) { addOrEditContactPopupAnimator = transform.GetComponent <AddOrEditContactPopupAnimator>(); addOrEditContactPopupAnimator.AddingContact = addingContact; addOrEditContactPopupAnimator.PreviousAddress = address; addOrEditContactPopupAnimator.contactsManager = contactsManager; title.GetComponent <TextMeshProUGUI>().text = addingContact ? "Add Contact" : "Edit Contact"; confirmButton.gameObject.SetActive(!addingContact); addContactButton.gameObject.SetActive(addingContact); if (addingContact) { return; } this.contactButton = contactButton; nameInputField.Text = name; addressInputField.Text = address; previousName = name; previousAddress = address; }
public void NavigateToCustomerSupportPage() { _userInterface.DefaultWait.Until(e => ContactButton.Enabled && ContactButton.Displayed); _userInterface.HtmlViewportService.ScrollIntoView(ContactButton); ContactButton.Click(); }
/// <summary> /// Clicks the contactnavigation button. /// </summary> public void ClickContact() { WaitForLoad(); ContactButton.Click(); }
/// <summary> /// Returns the name string at the contactButton's address /// </summary> /// <param name="contactButton"> The ContactButton being checked </param> /// <returns> The contact name from the given contactButton </returns> private string GetContactName(ContactButton contactButton) => contactsManager.ContactList[contactButton.ButtonInfo.ContactAddress].ContactName;
/// <summary> /// Returns the contact number at the contact button's address /// </summary> /// <param name="contactButton"> The ContactButton being checked </param> /// <returns> Contact number at the contactButton's index </returns> private int GetAddressNum(ContactButton contactButton) => contactsManager.ContactList.IndexOf(contactButton.ButtonInfo.ContactAddress);
/// <summary> /// Sets the contactButton's parent object to active or not /// </summary> /// <param name="contactButton"> The ContactButton being checked </param> /// <param name="isActive"> Checks if setting active or not </param> private void SetButtonObjectActive(ContactButton contactButton, bool isActive) => contactButton.transform.parent.gameObject.SetActive(isActive);
/// <summary> /// Returns a boolean that checks if the address starts with the searched text /// </summary> /// <param name="contactButton"> The ContactButton being checked </param> /// <param name="search"> The inputted search text </param> /// <returns> Whether the address starts with the given string </returns> private bool SearchAddress(ContactButton contactButton, string search) => contactButton.ButtonInfo.ContactAddress.ToLower().StartsWith(search);
/// <summary> /// Returns a boolean that checks if the name containes the searched text /// </summary> /// <param name="contactButton"> The ContactButton being checked </param> /// <param name="search"> The inputted search text </param> /// <returns> Whether the name starts with the given string </returns> private bool SearchName(ContactButton contactButton, string search) => contactButton.ButtonInfo.ContactName.ToLower().Contains(search);