private void updateGraphReactionTimes() { if (currentPerson == null || currentSession == null) { return; } //intializeVariables if not done before event_execute_initializeVariables( !cp2016.StoredCanCaptureContacts, //is simulated currentPerson.UniqueID, currentPerson.Name, Catalog.GetString("Phases"), //name of the different moments Constants.ReactionTimeTable, //tableName currentReactionTimeType.Name ); PrepareEventGraphReactionTime eventGraph = new PrepareEventGraphReactionTime( 1, //unused currentSession.UniqueID, currentPerson.UniqueID, Constants.ReactionTimeTable, currentReactionTimeType.Name); if (eventGraph.rtsAtSQL.Length > 0) { PrepareReactionTimeGraph(eventGraph, false); //don't animate } }
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 }
private void updateGraphReactionTimes() { if(currentPerson == null || currentSession == null) return; //intializeVariables if not done before event_execute_initializeVariables( ! cp2016.StoredCanCaptureContacts, //is simulated currentPerson.UniqueID, currentPerson.Name, Catalog.GetString("Phases"), //name of the different moments Constants.ReactionTimeTable, //tableName currentReactionTimeType.Name ); PrepareEventGraphReactionTime eventGraph = new PrepareEventGraphReactionTime( 1, //unused currentSession.UniqueID, currentPerson.UniqueID, Constants.ReactionTimeTable, currentReactionTimeType.Name); if(eventGraph.rtsAtSQL.Length > 0) PrepareReactionTimeGraph(eventGraph, false); //don't animate }
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; uniqueID = SqliteReactionTime.Insert( false, Constants.ReactionTimeTable, "NULL", personID, sessionID, "", //type time, "", Util.BoolToNegativeInt(simulated)); //time, description, simulated //define the created object eventDone = new ReactionTime(uniqueID, personID, sessionID, time, "", Util.BoolToNegativeInt(simulated)); //event will be raised, and managed in chronojump.cs fakeButtonFinished.Click(); //app1.PrepareJumpSimpleGraph(tv, tc); PrepareEventGraphReactionTimeObject = new PrepareEventGraphReactionTime(time); needUpdateGraphType = eventType.REACTIONTIME; needUpdateGraph = true; needEndEvent = true; //used for hiding some buttons on eventWindow }