} //close method btnSCPath_Click()... /// <summary> /// to help users select the destination folder on their PC... /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnPCPath_Click(object sender, RoutedEventArgs e) { FolderSelecter f = new FolderSelecter(); f.select_file_rather_than_folder = false; f.selected_path = txtPCPath.Text; f.Show(); txtPCPath.Text = f.selected_path; f.Close(); //let's log this interaction play_sound(); Record_User_Interactions.log_interaction_to_database("UploadNewImages_btnPCPath_click", txtPCPath.Text); } //close method btnPCPath_Click()...
} //end method get_number_of_images_in_event() /// <summary> /// to help users select the source folder on the SenseCam... /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSCPath_Click(object sender, RoutedEventArgs e) { FolderSelecter f = new FolderSelecter(); f.select_file_rather_than_folder = false; f.selected_path = txtSCPath.Text; f.Show(); txtSCPath.Text = f.selected_path; f.Close(); //to allow user then upload images if ((!uploading_from_flash_drive && !txtSCPath.Text.Equals("")) || (uploading_from_flash_drive && !detect_Autographer_USB_data_directory(txtSCPath.Text).Equals("")) ) { btnUpload.Visibility = Visibility.Visible; } //let's log this interaction play_sound(); Record_User_Interactions.log_interaction_to_database("UploadNewImages_btnSCPath_click", txtSCPath.Text); } //close method btnSCPath_Click()...
/// <summary> /// to help users select the source folder on the SenseCam... /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSCPath_Click(object sender, RoutedEventArgs e) { FolderSelecter f = new FolderSelecter(); f.select_file_rather_than_folder = false; f.selected_path = txtSCPath.Text; f.Show(); txtSCPath.Text = f.selected_path; f.Close(); //to allow user then upload images if ( (!uploading_from_flash_drive && !txtSCPath.Text.Equals("")) || (uploading_from_flash_drive && !detect_Autographer_USB_data_directory(txtSCPath.Text).Equals("")) ) btnUpload.Visibility = Visibility.Visible; //let's log this interaction play_sound(); Record_User_Interactions.log_interaction_to_database("UploadNewImages_btnSCPath_click", txtSCPath.Text); }
/// <summary> /// to help users select the destination folder on their PC... /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnPCPath_Click(object sender, RoutedEventArgs e) { FolderSelecter f = new FolderSelecter(); f.select_file_rather_than_folder = false; f.selected_path = txtPCPath.Text; f.Show(); txtPCPath.Text = f.selected_path; f.Close(); //let's log this interaction play_sound(); Record_User_Interactions.log_interaction_to_database("UploadNewImages_btnPCPath_click", txtPCPath.Text); }