FindID() public method

public FindID ( string name ) : int
name string
return int
コード例 #1
0
    protected internal static void addChronojumpProfileAndBilateral()
    {
        string [] jumps = SqliteJumpType.SelectJumpTypes(true, "", "", false);

        IDNameList jList = new IDNameList(jumps, ':');

        List <ExecuteAutoSQL> eaSQLlist = new List <ExecuteAutoSQL> {
            new ExecuteAutoSQL(-1, "Chronojump profile", ExecuteAuto.ModeTypes.BY_PERSONS, "Complete profile using jumps",
                               new List <int> {
                jList.FindID("SJ"), jList.FindID("SJl"), jList.FindID("CMJ"), jList.FindID("ABK"), jList.FindID("DJa")
            },
                               new List <int> {
            },
                               new List <int> {
            }
                               ),

            new ExecuteAutoSQL(-1, "Bilateral profile by persons", ExecuteAuto.ModeTypes.BY_PERSONS, "Bilateral / Unilateral tests",
                               new List <int> {
                jList.FindID("slCMJright"), jList.FindID("slCMJleft"), jList.FindID("CMJ"),
                jList.FindID("slCMJleft"), jList.FindID("CMJ"), jList.FindID("slCMJright"),
                jList.FindID("CMJ"), jList.FindID("slCMJleft"), jList.FindID("slCMJright"),
            },
                               new List <int> {
            },
                               new List <int> {
            }
                               ),

            new ExecuteAutoSQL(-1, "Bilateral profile by sets", ExecuteAuto.ModeTypes.BY_SETS, "Bilateral / Unilateral tests",
                               new List <int> {
                jList.FindID("slCMJright"), jList.FindID("slCMJleft"), jList.FindID("CMJ")
            },
                               new List <int> {
                jList.FindID("CMJ"), jList.FindID("slCMJleft"), jList.FindID("slCMJright")
            },
                               new List <int> {
                jList.FindID("slCMJleft"), jList.FindID("CMJ"), jList.FindID("slCMJright")
            }
                               )
        };

        foreach (IDName idName in jList.l)
        {
            LogB.SQL(idName.ToString());
        }

        foreach (ExecuteAutoSQL eaSQL in eaSQLlist)
        {
            Insert(true, eaSQL);
        }
    }
コード例 #2
0
ファイル: executeAuto.cs プロジェクト: GNOME/chronojump
    protected internal static void addChronojumpProfileAndBilateral()
    {
        string [] jumps = SqliteJumpType.SelectJumpTypes(true, "", "", false);

        IDNameList jList = new IDNameList(jumps,':');

        List <ExecuteAutoSQL> eaSQLlist = new List<ExecuteAutoSQL> {
            new ExecuteAutoSQL( -1, "Chronojump profile", ExecuteAuto.ModeTypes.BY_PERSONS, "Complete profile using jumps",
                    new List<int> { jList.FindID("SJ"), jList.FindID("SJl"), jList.FindID("CMJ"), jList.FindID("ABK"), jList.FindID("DJa") },
                    new List<int>{},
                    new List<int>{}
                    ),

            new ExecuteAutoSQL( -1, "Bilateral profile by persons", ExecuteAuto.ModeTypes.BY_PERSONS, "Bilateral / Unilateral tests",
                    new List<int> {
                        jList.FindID("slCMJright"), jList.FindID("slCMJleft"), jList.FindID("CMJ"),
                        jList.FindID("slCMJleft"), jList.FindID("CMJ"), jList.FindID("slCMJright"),
                        jList.FindID("CMJ"), jList.FindID("slCMJleft"), jList.FindID("slCMJright"),
                    },
                    new List<int>{},
                    new List<int>{}
                    ),

            new ExecuteAutoSQL( -1, "Bilateral profile by sets", ExecuteAuto.ModeTypes.BY_SETS, "Bilateral / Unilateral tests",
                    new List<int> { jList.FindID("slCMJright"), jList.FindID("slCMJleft"), jList.FindID("CMJ") },
                    new List<int> { jList.FindID("CMJ"), jList.FindID("slCMJleft"), jList.FindID("slCMJright") },
                    new List<int> { jList.FindID("slCMJleft"), jList.FindID("CMJ"), jList.FindID("slCMJright") }
                    )
        };

        foreach(IDName idName in jList.l) {
            LogB.SQL(idName.ToString());
        }

        foreach(ExecuteAutoSQL eaSQL in eaSQLlist) {
            Insert(true, eaSQL);
        }
    }