Insert() публичный статический Метод

public static Insert ( bool dbconOpened, string tableName, string uniqueID, int personID, int sessionID, string type, double fixedPulse, int totalPulsesNum, string timeString, string description, int simulated ) : int
dbconOpened bool
tableName string
uniqueID string
personID int
sessionID int
type string
fixedPulse double
totalPulsesNum int
timeString string
description string
simulated int
Результат int
Пример #1
0
    protected override void write()
    {
        int totalPulsesNum = 0;

        totalPulsesNum = Util.GetNumberOfJumps(timesString, false);

        uniqueID = SqlitePulse.Insert(false, Constants.PulseTable, "NULL", personID, sessionID, type,
                                      fixedPulse, totalPulsesNum, timesString,
                                      "", Util.BoolToNegativeInt(simulated) //description
                                      );

        //define the created object
        eventDone = new Pulse(uniqueID, personID, sessionID, type, fixedPulse, totalPulsesNum, timesString, "", Util.BoolToNegativeInt(simulated));

        //string myStringPush =   Catalog.GetString("Last pulse") + ": " + personName + " " + type ;
        if (simulated)
        {
            feedbackMessage = Catalog.GetString(Constants.SimulatedMessage);
        }
        else
        {
            feedbackMessage = "";
        }
        needShowFeedbackMessage = true;


        //app1.PreparePulseGraph(Util.GetLast(timesString), timesString);
        PrepareEventGraphPulseObject = new PrepareEventGraphPulse(Util.GetLast(timesString), timesString);
        needUpdateGraphType          = eventType.PULSE;
        needUpdateGraph = true;
        needEndEvent    = true;      //used for hiding some buttons on eventWindow, and also for updateTimeProgressBar here
    }
Пример #2
0
 public override int InsertAtDB(bool dbconOpened, string tableName)
 {
     return(SqlitePulse.Insert(dbconOpened, tableName,
                               uniqueID.ToString(),
                               personID, sessionID,
                               type, fixedPulse, totalPulsesNum, timesString,
                               description, simulated));
 }