QueryServerWindow.on_combo_tests_changed C# (CSharp) Method

on_combo_tests_changed() private method

private on_combo_tests_changed ( object o, EventArgs args ) : void
o object
args EventArgs
return void
    private void on_combo_tests_changed(object o, EventArgs args)
    {
        if (UtilGtk.ComboGetActive(combo_test_types) == Catalog.GetString(Constants.UndefinedDefault))
            UtilGtk.ComboUpdate(combo_variables, Util.StringToStringArray(Constants.UndefinedDefault), "");
        else if (UtilGtk.ComboGetActive(combo_test_types) == Catalog.GetString(Constants.JumpSimpleName)) {
            JumpType jt = SqliteJumpType.SelectAndReturnJumpType(UtilGtk.ComboGetActive(combo_tests), false);
            if(jt.StartIn)
                UtilGtk.ComboUpdate(combo_variables, variablesJumpSimple, "");
            else
                UtilGtk.ComboUpdate(combo_variables, variablesJumpSimpleWithTC, "");
        }
        else if (UtilGtk.ComboGetActive(combo_test_types) == Catalog.GetString(Constants.JumpReactiveName))
            UtilGtk.ComboUpdate(combo_variables, variablesJumpReactive, "");
        else if (UtilGtk.ComboGetActive(combo_test_types) == Catalog.GetString(Constants.RunSimpleName))
            UtilGtk.ComboUpdate(combo_variables, variablesRunSimple, "");
        else
            new DialogMessage(Constants.MessageTypes.WARNING, "Problem on tests");

        combo_variables.Active = 0;

        on_entries_required_changed(new object(), new EventArgs());
    }