FizVizController/FizVizController/Views/GoogleAnalyticsConfig.xaml.cs
/// <summary>
/// Save current settings to the Analytics FizViz interface
/// </summary>
Save current settings to the Analytics FizViz interface
Save current settings to the Analytics FizViz interface
private void UpdateAnalyticsSettings()
        {
            ViewUtility.ResetControlBorders(ControlGrid);
            float? metricMinimum, metricMaximum, angleMinimum, angleMaximum;
            metricMinimum = ViewUtility.GetFloat(MinimumMetricTextBox);
            metricMaximum = ViewUtility.GetFloat(MaximumMetricTextBox);
            angleMinimum = ViewUtility.GetFloat(MinimumAngleTextBox);
            angleMaximum = ViewUtility.GetFloat(MaximumAngleTextBox);
            if (!metricMinimum.HasValue || !metricMaximum.HasValue || !angleMaximum.HasValue || !angleMinimum.HasValue)
                return;
            App.AnalyticsFizVizInterface.MetricMinimum = metricMinimum.Value;
            App.AnalyticsFizVizInterface.MetricMaximum = metricMaximum.Value;
            App.AnalyticsFizVizInterface.DisplayAngleMaximum = angleMaximum.Value;
            App.AnalyticsFizVizInterface.DisplayAngleMinimum = angleMinimum.Value;
            if (NeedlePositionMetricComboBox.SelectedValue != null)
            {
                App.AnalyticsFizVizInterface.Metric = (string) NeedlePositionMetricComboBox.SelectedValue;
            }
        }
private void UpdateAnalyticsSettings ( ) { ViewUtility . ResetControlBorders ( ControlGrid ) ; float ? metricMinimum , metricMaximum , angleMinimum , angleMaximum ; metricMinimum = ViewUtility . GetFloat ( MinimumMetricTextBox ) ; metricMaximum = ViewUtility . GetFloat ( MaximumMetricTextBox ) ; angleMinimum = ViewUtility . GetFloat ( MinimumAngleTextBox ) ; angleMaximum = ViewUtility . GetFloat ( MaximumAngleTextBox ) ; if ( ! metricMinimum . HasValue || ! metricMaximum . HasValue || ! angleMaximum . HasValue || ! angleMinimum . HasValue ) return ; App . AnalyticsFizVizInterface . MetricMinimum = metricMinimum . Value ; App . AnalyticsFizVizInterface . MetricMaximum = metricMaximum . Value ; App . AnalyticsFizVizInterface . DisplayAngleMaximum = angleMaximum . Value ; App . AnalyticsFizVizInterface . DisplayAngleMinimum = angleMinimum . Value ; if ( NeedlePositionMetricComboBox . SelectedValue != null ) { App . AnalyticsFizVizInterface . Metric = ( string ) NeedlePositionMetricComboBox . SelectedValue ; } }
Save current settings to the Analytics FizViz interface
Save current settings to the Analytics FizViz interface