QueryServerWindow.printUnits C# (CSharp) Method

printUnits() private method

private printUnits ( string result ) : void
result string
return void
    private void printUnits(string result)
    {
        string testType = UtilGtk.ComboGetActive(combo_test_types);
        if(testType == Catalog.GetString(Constants.JumpSimpleName) ||
                testType == Catalog.GetString(Constants.JumpReactiveName))
            label_results_num_units.Text = Catalog.GetString("jumps");
        else if (testType == Catalog.GetString(Constants.RunSimpleName))
            label_results_num_units.Text = Catalog.GetString("races");

        string strVariable = UtilGtk.ComboGetActive(combo_variables);
        if(result == "0")
            label_results_avg_units.Text = "";
        else if(strVariable == "TV" || strVariable == "TC" || strVariable == Catalog.GetString("Time"))
            label_results_avg_units.Text = Catalog.GetString("seconds");
        else if(strVariable == Constants.RJPotencyBoscoFormula)
            label_results_avg_units.Text = Catalog.GetString("watts");
        else if(strVariable == Constants.QIndexFormula)
            label_results_avg_units.Text = "";
        else
            label_results_avg_units.Text = "%";
    }