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(); } }