/// <summary> /// Gets the selected profile for Firefox in a thread-safe manner /// </summary> /// <returns>Selected ProfilePath object</returns> public ProfilePath GetSelectedProfile() { ProfilePath selectedPath = null; BrowserDropDown.InvokeEx(f => selectedPath = (ProfilePath)BrowserDropDown.SelectedItem); return(selectedPath); }
/// <summary> /// Returns the selected source folder /// </summary> /// <returns></returns> public string GetSourceFolder() { // if the browser dropdown is selected, return the full path if (BrowserRadioButton.Checked == true) { ProfilePath profile = GetSelectedProfile(); return(profile.FullPath); } // otherwise select manual profile return(SourceFolderName.Text); }
public void AddProfile(ProfilePath profile) { Profiles.Add(profile); }
/// <summary> /// Change label with selection path to the profile path value /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void BrowserDropDown_SelectionChanged(object sender, EventArgs e) { ProfilePath path = GetSelectedProfile(); lblSourceFolderDisplay.Text = path.FullPath; }