public static Insert ( bool dbconOpened, string tableName, string uniqueID, int personID, int sessionID, string type, double tv, double tc, double fall, double weight, string description, double angle, int simulated ) : int | ||
dbconOpened | bool | |
tableName | string | |
uniqueID | string | |
personID | int | |
sessionID | int | |
type | string | |
tv | double | |
tc | double | |
fall | double | |
weight | double | |
description | string | |
angle | double | |
simulated | int | |
return | int |
public override int InsertAtDB(bool dbconOpened, string tableName) { return(SqliteJump.Insert(dbconOpened, tableName, uniqueID.ToString(), personID, sessionID, type, tv, tc, fall, weight, description, angle, simulated)); }
protected override void write() { string tcString = ""; if (hasFall) { //Log.WriteLine("TC: {0}", tc.ToString()); tcString = " " + Catalog.GetString("TC") + ": " + Util.TrimDecimals(tc.ToString(), pDN); } else { tc = 0; } /* * string myStringPush = * personName + " " + * type + tcString + " " + Catalog.GetString("TF") + ": " + Util.TrimDecimals( tv.ToString(), pDN ) ; * if(weight > 0) { * myStringPush = myStringPush + "(" + weight.ToString() + "%)"; * } */ if (simulated) { feedbackMessage = Catalog.GetString(Constants.SimulatedMessage); } else { feedbackMessage = ""; } needShowFeedbackMessage = true; string table = Constants.JumpTable; uniqueID = SqliteJump.Insert(false, table, "NULL", personID, sessionID, type, tv, tc, fall, //type, tv, tc, fall weight, description, angle, Util.BoolToNegativeInt(simulated)); //define the created object eventDone = new Jump(uniqueID, personID, sessionID, type, tv, tc, fall, weight, description, angle, Util.BoolToNegativeInt(simulated)); //event will be raised, and managed in chronojump.cs fakeButtonFinished.Click(); PrepareEventGraphJumpSimpleObject = new PrepareEventGraphJumpSimple(tv, tc, sessionID, personID, table, type); needUpdateGraphType = eventType.JUMP; needUpdateGraph = true; needEndEvent = true; //used for hiding some buttons on eventWindow }