From 2d90ad51b822b2251062c1ca99f47b7f0c78111d Mon Sep 17 00:00:00 2001
From: Tim Young <tim.young@lightsys.org>
Date: Mon, 19 Jun 2017 13:39:22 -0500
Subject: [PATCH] Allow us to ctrl-alt click a puzzle and mark it as solved. 
 This is used often when I am testing them.

---
 EduNetworkBuilder/ListBoxWindow.cs | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/EduNetworkBuilder/ListBoxWindow.cs b/EduNetworkBuilder/ListBoxWindow.cs
index 61d86a6..a849025 100644
--- a/EduNetworkBuilder/ListBoxWindow.cs
+++ b/EduNetworkBuilder/ListBoxWindow.cs
@@ -506,6 +506,27 @@ namespace EduNetworkBuilder
             {
                 if(MyMode == LBContents.puzzles)
                 {
+                    if ((Form.ModifierKeys & Keys.Control) == Keys.Control && (Form.ModifierKeys & Keys.Alt) == Keys.Alt)
+                    {
+                        //We are control + alt clicking on something
+                        if (lbWindowData.SelectedItem != null)
+                        {
+                            string TheName = lbWindowData.SelectedItem.ToString();
+                            TheName = Regex.Replace(TheName, @"^\* ", "");
+                            //If the puzzle is solved, mark it as unsolved.
+                            //If it is unsolved, mark it as solved.
+                            NBSettings oursettings = NB.GetSettings();
+                            if(oursettings != null)
+                            {
+                                if (oursettings.ScoreList.Contains(TheName))
+                                {
+                                    oursettings.ScoreList.Remove(TheName);
+                                }
+                                else
+                                    oursettings.ScoreList.Add(TheName);
+                            }
+                        }
+                    }
                     UpdateForm();
                 }
             }