Ecolab.Pages.GeneralTabPage.ResetUserPreferences C# (CSharp) Method

ResetUserPreferences() public method

Resets the user preferences.
public ResetUserPreferences ( string userDetails ) : void
userDetails string The user details.
return void
        public void ResetUserPreferences(string[] userDetails)
        {
            //Set the preferred language
            GetHtmlControl<HtmlSelect>(guiMap, "SelectPreferredLanguage").SelectByText("English US", true);
            //Set the preferred currency 
            GetHtmlControl<HtmlSelect>(guiMap, "SelectPreferredCurrency").SelectByText(userDetails[1], true);
            //Set the Unit of measure
            GetHtmlControl<HtmlSelect>(guiMap, "SelectUOM").SelectByText(userDetails[2], true);
            //Set the flat fee
            GetHtmlControl<HtmlSelect>(guiMap, "SelectBudgetCustomerFlatFee").SelectByText(userDetails[3], true);
            //Set the live time
            GetHtmlControl<HtmlSelect>(guiMap, "SelectDBLiveTimeYears").SelectByText(userDetails[4], true);
            //Set the Database Path
            GetHtmlControl<HtmlInputText>(guiMap, "txtDatabaseExportPath").Text = userDetails[5];
            //Upload the file
            DialogManager fileDialog = new DialogManager(Telerik);
            imagePath = Path.GetFullPath(userDetails[6]);
            fileDialog.UpLoadFile(imagePath);
        }