protected internal static new void initializeTable()
{
string [] iniRunTypes = {
//name:distance:tracksLimited:fixedValue:unlimited:description:distancesString
"byLaps:0:1:0:0:Run n laps x distance:",
"byTime:0:0:0:0:Make max laps in n seconds:",
"unlimited:0:0:0:1:Continue running in n distance:", //suppose limited by time
"20m10times:20:1:10:0:Run 10 times a 20m distance:", //only in more runs
"7m30seconds:7:0:30:0:Make max laps in 30 seconds:", //only in more runs
"20m endurance:20:0:0:1:Continue running in 20m distance:", //only in more runs
"MTGUG:-1:1:3:0:Modified time Getup and Go test:1-7-19",
"Agility-3L3R:-1:1:3:0:Turn left three times and turn right three times:24.14-24.14"
};
using(SqliteTransaction tr = dbcon.BeginTransaction())
{
using (SqliteCommand dbcmdTr = dbcon.CreateCommand())
{
dbcmdTr.Transaction = tr;
foreach(string myString in iniRunTypes) {
//RunIntervalTypeInsert(myString, true);
string [] s = myString.Split(new char[] {':'});
RunType type = new RunType();
type.Name = s[0];
type.Distance = Convert.ToDouble(Util.ChangeDecimalSeparator(s[1]));
type.TracksLimited = Util.IntToBool(Convert.ToInt32(s[2]));
type.FixedValue = Convert.ToInt32(s[3]);
type.Unlimited = Util.IntToBool(Convert.ToInt32(s[4]));
type.Description = s[5];
type.DistancesString = s[6];
Insert(type, Constants.RunIntervalTypeTable, true, dbcmdTr);
}
}
tr.Commit();
}
AddGraphLinksRunInterval();
addRSA();
}