Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
Add completion code
Browse files Browse the repository at this point in the history
  • Loading branch information
nadavWeisler committed Sep 30, 2020
1 parent 26bc5f1 commit 97a3d8e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
30 changes: 27 additions & 3 deletions PopUp_Researcher/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion PopUp_Researcher/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ private void SaveButton_Click(object sender, EventArgs e)
}

var newExperiment = new Experiment(NameTextBox.Text,
BackgoundRgbTextBox.Text,
BackgoundRgbTextBox.Text,
CompletionCodeText.Text,
GetFinalTimeline());
newExperiment = ExperimentListToDic(newExperiment);

Expand Down
5 changes: 4 additions & 1 deletion PopUp_Researcher/Models/Experiment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public class Experiment

public string background_color;

public string completion_code;

public List<Dictionary<string, object>> timeline { get; set; }

public List<Trial> trialList;
Expand All @@ -22,10 +24,11 @@ public class Experiment

#region Constructors

public Experiment(string _name, string _background, List<Trial> trialList)
public Experiment(string _name, string _background, string _completionCode, List<Trial> trialList)
{
this.name = _name;
this.background_color = _background;
this.completion_code = _completionCode;
this.trialList = trialList;
}

Expand Down

0 comments on commit 97a3d8e

Please sign in to comment.