Exemplo n.º 1
0
 /// <summary>
 /// Processes and Sets all the Information needed (populates the Information).
 /// </summary>
 public override void populate()
 {
     if (previousTimeLog != null && Program != previousTimeLog.Program)
     {
         previousTimeLog = null;
     }
     setPhase();
     setInterrupt();
     setDelta();
     setComment();
     setStarted();
     setSpace();
     setEnded();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes the Data needed to process the Information..
 /// </summary>
 /// <param name="data">The data.</param>
 /// <param name="previousTimeLog">The previous time log.</param>
 public void initialize(Data data, TimeLog previousTimeLog)
 {
     this.data            = data;
     this.previousTimeLog = previousTimeLog;
     if (data.ContainsKey("path") && data["path"] != null)
     {
         //Contains the Program and the Phase
         path = data["path"].Split('/');
     }
     if (path == null)
     {
         return;
     }
     setProgram();
 }