} //end constructor... /// <summary> /// called before the user control is displayed, which updates the likely image/event paths... /// </summary> /// <param name="userID"></param> public void update_user_control_with_drive_information(int userID, string user_name, Processing_Finished_Callback param_all_images_deleted_callback) { //firstly let's check that we're not currently deleting SenseCam images (i.e. make sure user hasn't opened this again due to impatience!) if (!Is_Deletion_Process_Currently_Running()) { txtSCPath.Text = detect_Autographer_USB_data_directory(""); txtPCPath.Text = User_Object.get_likely_PC_destination_root(userID, user_name); this.object_userID = userID; this.object_user_name = user_name; //in case other images were uploaded before, we'll reset this button to be enabled... btnUpload.IsEnabled = true; btnClose.IsEnabled = true; btnUpload.Opacity = 1.0; btnClose.Opacity = 1.0; Loading_Animation.Visibility = Visibility.Collapsed; data_processing_finished_callback = param_all_images_deleted_callback; } //close if (!Is_Deletion_Process_Currently_Running()) else { //now let's give the user feedback that they should be waiting on the deletion process to finish... txtSCPath.Text = "still clearing images from SenseCam..."; txtPCPath.Text = "still clearing images from SenseCam..."; this.object_userID = userID; this.object_user_name = user_name; //in case other images were uploaded before, we'll reset this button to be enabled... btnUpload.IsEnabled = false; btnClose.IsEnabled = true; btnUpload.Opacity = 0.3; btnClose.Opacity = 1.0; Loading_Animation.Visibility = Visibility.Visible; data_processing_finished_callback = param_all_images_deleted_callback; } //close else ... if (!Is_Deletion_Process_Currently_Running()) } //close method update_user_control_with_drive_information()...
/// <summary> /// called before the user control is displayed, which updates the likely image/event paths... /// </summary> /// <param name="userID"></param> public void update_user_control_with_drive_information(int userID, string user_name, Processing_Finished_Callback param_all_images_deleted_callback) { //firstly let's check that we're not currently deleting SenseCam images (i.e. make sure user hasn't opened this again due to impatience!) if (!Is_Deletion_Process_Currently_Running()) { txtSCPath.Text = detect_Autographer_USB_data_directory(""); txtPCPath.Text = User_Object.get_likely_PC_destination_root(userID, user_name); this.object_userID = userID; this.object_user_name = user_name; //in case other images were uploaded before, we'll reset this button to be enabled... btnUpload.IsEnabled = true; btnClose.IsEnabled = true; btnUpload.Opacity = 1.0; btnClose.Opacity = 1.0; Loading_Animation.Visibility = Visibility.Collapsed; data_processing_finished_callback = param_all_images_deleted_callback; } //close if (!Is_Deletion_Process_Currently_Running()) else { //now let's give the user feedback that they should be waiting on the deletion process to finish... txtSCPath.Text = "still clearing images from SenseCam..."; txtPCPath.Text = "still clearing images from SenseCam..."; this.object_userID = userID; this.object_user_name = user_name; //in case other images were uploaded before, we'll reset this button to be enabled... btnUpload.IsEnabled = false; btnClose.IsEnabled = true; btnUpload.Opacity = 0.3; btnClose.Opacity = 1.0; Loading_Animation.Visibility = Visibility.Visible; data_processing_finished_callback = param_all_images_deleted_callback; } //close else ... if (!Is_Deletion_Process_Currently_Running()) }