filter for passed / failed
This commit is contained in:
parent
5264bd482d
commit
375ea625a6
@ -416,8 +416,8 @@ namespace EduNetworkBuilder
|
|||||||
List<string> tags = new List<string>(pi.PuzzleTags);
|
List<string> tags = new List<string>(pi.PuzzleTags);
|
||||||
if(oursettings.HasReplay(puzzle_name)) tags.Add(TestString);
|
if(oursettings.HasReplay(puzzle_name)) tags.Add(TestString);
|
||||||
else tags.Add(NoTestString);
|
else tags.Add(NoTestString);
|
||||||
//tags.Add(PassedString);
|
if (oursettings.HasPassed(puzzle_name)) tags.Add(PassedString);
|
||||||
//tags.Add(FailedString);
|
if (oursettings.HasFailed(puzzle_name)) tags.Add(FailedString);
|
||||||
foreach (string tag in tags)
|
foreach (string tag in tags)
|
||||||
{
|
{
|
||||||
if (isChecked(tag))
|
if (isChecked(tag))
|
||||||
|
@ -178,7 +178,20 @@ namespace EduNetworkBuilder
|
|||||||
if (NA == null) return false;
|
if (NA == null) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
public bool HasPassed(string networkname)
|
||||||
|
{
|
||||||
|
if (UserActions == null) return false;
|
||||||
|
NetworkAction NA = UserActions.FindAction(networkname);
|
||||||
|
if (NA == null) return false;
|
||||||
|
return NA.HasPassed;
|
||||||
|
}
|
||||||
|
public bool HasFailed(string networkname)
|
||||||
|
{
|
||||||
|
if (UserActions == null) return false;
|
||||||
|
NetworkAction NA = UserActions.FindAction(networkname);
|
||||||
|
if (NA == null) return false;
|
||||||
|
return NA.HasFailed;
|
||||||
|
}
|
||||||
public void SetPassed(string networkname)
|
public void SetPassed(string networkname)
|
||||||
{
|
{
|
||||||
if (UserActions == null) return;
|
if (UserActions == null) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user