Ejemplo n.º 1
0
    public static void SetToRowWitlLabel(ref bool loaded, Label lblLang, int row, string ThisAppL, IResourceHelper embeddedResourcesH, Action <int, string, FrameworkElement> AddControl, Action <string> Cd_SelectionChanged)
    {
        #region lblLang

        //lblLang.HorizontalAlignment = System.Windows.HorizontalAlignment.Right;
        //Grid.SetRow(lblLang, row);


        //grid.Children.Add(lblLang);
        #endregion

        #region lang
        cd = new CountryDropdown();
        var sc = LocaleHelper.GetCountryForLang2(ThisAppL);
        cd.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;

        cd.SelectedCountry   = sc;
        cd.SelectionChanged += Cd_SelectionChanged;

        Grid.SetRow(cd, row);
        Grid.SetColumn(cd, 1);

        cd.Init(embeddedResourcesH.GetStream("XML/countries.xml"));

        AddControl(row, null, cd);
        //grid.Children.Add(cd);
        #endregion
    }
Ejemplo n.º 2
0
        public void FillRegisterForm(User user, string takeaction = "save")
        {
            FirstNameTextBox.SendKeys(user.FirstName);
            LastNameTextBox.SendKeys(user.LastName);
            PasswordTextBox.SendKeys(user.Password);
            AliasAddressTextBox.SendKeys(user.AliasAddress);
            AddressTextBox.SendKeys(user.Address);
            CityTextBox.SendKeys(user.City);
            ZipCodeTextBox.SendKeys(user.ZipCode);
            CountryDropdown.SelectByText(user.Country);
            StateDropdown.SelectByText(user.State);
            MobilePhoneTextBox.SendKeys(user.MobilePhone);
            SelectDateOfBirth(user.DateOfBirth);

            if (takeaction == "save")
            {
                RegisterButton.Click();
            }
        }
Ejemplo n.º 3
0
 public PersonalInfoRegistrationPage SelectDropdown(string value)
 {
     CountryDropdown.Click();
     CountryDropdownOptions.Single(option => option.GetAttribute("value") == value).Click();
     return(this);
 }
Ejemplo n.º 4
0
 public PersonalInfoRegistrationPage SelectDropdown(int index)
 {
     CountryDropdown.Click();
     CountryDropdownOptions[index].Click();
     return(this);
 }