[chronojump] analyze 1RM and neuromuscular hidden on inertial



commit 79a47bd3c5cff8e3c87aa038a8f7bdee549b4635
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri May 27 09:32:07 2016 +0200

    analyze 1RM and neuromuscular hidden on inertial

 src/gui/chronojump.cs |    6 ++++++
 src/gui/encoder.cs    |    8 ++++----
 2 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 511ea55..6fbf25e 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -3061,6 +3061,10 @@ public partial class ChronoJumpWindow
                                
                                currentEncoderGI = Constants.EncoderGI.GRAVITATORY;
                                hbox_capture_1RM.Visible = true;
+                               if(radio_encoder_analyze_individual_current_set.Active || 
radio_encoder_analyze_individual_current_session.Active) {
+                                       radiobutton_encoder_analyze_1RM.Visible = true;
+                                       radiobutton_encoder_analyze_neuromuscular_profile.Visible = true;
+                               }
                        } else {
                                menuitem_mode_selected_power_inertial.Visible = true;
 
@@ -3073,6 +3077,8 @@ public partial class ChronoJumpWindow
                                
                                currentEncoderGI = Constants.EncoderGI.INERTIAL;
                                hbox_capture_1RM.Visible = false;
+                               radiobutton_encoder_analyze_1RM.Visible = false;
+                               radiobutton_encoder_analyze_neuromuscular_profile.Visible = false;
                        }
                        if(changed) {
                                label_encoder_selected.Text = encoderConfigurationCurrent.code;
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index ff1ff54..3a40470 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -2436,10 +2436,10 @@ public partial class ChronoJumpWindow
                
                //this analysis only when not comparing
                radiobutton_encoder_analyze_powerbars.Visible = true;
-               radiobutton_encoder_analyze_1RM.Visible = true;
+               radiobutton_encoder_analyze_1RM.Visible = (currentEncoderGI == 
Constants.EncoderGI.GRAVITATORY);
                radiobutton_encoder_analyze_single.Visible = true;
                radiobutton_encoder_analyze_side.Visible = true;
-               radiobutton_encoder_analyze_neuromuscular_profile.Visible = true;
+               radiobutton_encoder_analyze_neuromuscular_profile.Visible = (currentEncoderGI == 
Constants.EncoderGI.GRAVITATORY);
 
                check_encoder_analyze_eccon_together.Sensitive = true;
                block_check_encoder_analyze_eccon_together_if_needed();
@@ -2476,10 +2476,10 @@ public partial class ChronoJumpWindow
 
                //this analysis only when not comparing
                radiobutton_encoder_analyze_powerbars.Visible = true;
-               radiobutton_encoder_analyze_1RM.Visible = true;
+               radiobutton_encoder_analyze_1RM.Visible = (currentEncoderGI == 
Constants.EncoderGI.GRAVITATORY);
                radiobutton_encoder_analyze_single.Visible = true;
                radiobutton_encoder_analyze_side.Visible = true;
-               radiobutton_encoder_analyze_neuromuscular_profile.Visible = true;
+               radiobutton_encoder_analyze_neuromuscular_profile.Visible = (currentEncoderGI == 
Constants.EncoderGI.GRAVITATORY);
 
                check_encoder_analyze_eccon_together.Sensitive = true;
                block_check_encoder_analyze_eccon_together_if_needed();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]