UpLoadFile() public method

Ups the load file.
public UpLoadFile ( String filePath ) : void
filePath String The file path.
return void
Beispiel #1
0
 /// <summary>
 /// Resets the user preferences.
 /// </summary>
 /// <param name="userDetails">The user details.</param>
 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);
 }
Beispiel #2
0
 public void UploadFile(string filePath)
 {
     DialogManager fileDialog = new DialogManager(Telerik);
     fileDialog.UpLoadFile(filePath);
 }