Insert() public static method

public static Insert ( bool dbconOpened, string tableName, string uniqueID, int personID, int sessionID, string type, double time, string description, int simulated ) : int
dbconOpened bool
tableName string
uniqueID string
personID int
sessionID int
type string
time double
description string
simulated int
return int
Example #1
0
    protected override void write()
    {
        /*
         * string myStringPush =
         *      personName + " " +
         *      type + " " + Catalog.GetString("Time") + ": " + Util.TrimDecimals( time.ToString(), pDN ) ;
         */

        if (simulated)
        {
            feedbackMessage = Catalog.GetString(Constants.SimulatedMessage);
        }
        else
        {
            feedbackMessage = "";
        }
        needShowFeedbackMessage = true;

        string table = Constants.ReactionTimeTable;

        uniqueID = SqliteReactionTime.Insert(
            false, table,
            "NULL", personID, sessionID, type,
            time, description, Util.BoolToNegativeInt(simulated));

        //define the created object
        eventDone = new ReactionTime(uniqueID, personID, sessionID, type, time, description, Util.BoolToNegativeInt(simulated));

        //app1.PrepareJumpSimpleGraph(tv, tc);
        PrepareEventGraphReactionTimeObject = new PrepareEventGraphReactionTime(time, sessionID, personID, table, type);
        needUpdateGraphType = eventType.REACTIONTIME;
        needUpdateGraph     = true;

        needEndEvent = true;         //used for hiding some buttons on eventWindow
    }
Example #2
0
 public override int InsertAtDB(bool dbconOpened, string tableName)
 {
     return(SqliteReactionTime.Insert(dbconOpened, tableName,
                                      uniqueID.ToString(),
                                      personID, sessionID,
                                      type, time,
                                      description, simulated));
 }