Skip to content

Commit

Permalink
Re-added full reset button to remove previous runs and any saved paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
GABowers committed Oct 13, 2019
1 parent a641081 commit 47dad7f
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 50 deletions.
9 changes: 9 additions & 0 deletions Capstone Application/ControllerScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ public void ResetGrid(Form1 form)
public void ResetRuns(int val)
{
caRuns = val;
paths = new List<List<Tuple<int, int, int>>>();
}

public Tuple<int, int> TrueLocation(int xValue, int yValue, PictureBoxWithInterpolationMode container)
Expand Down Expand Up @@ -839,6 +840,14 @@ public void GetHist(string time, Form1 form, string filePath)
form.SaveHist(output, time, filePath, paths.Select(x => x.Count() - 1).ToList(), paths.Count);
}

public void UpdatePaths()
{
if (runSettings.SavePaths)
{
paths.AddRange(myCA.GetPaths());
}
}

void CheckFinalDataSave(Form1 form, string time)
{
bool counts = runSettings.SaveCounts;
Expand Down
83 changes: 48 additions & 35 deletions Capstone Application/Form1.Designer.cs

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

Loading

0 comments on commit 47dad7f

Please sign in to comment.