private void LoadBreakpoints() { _loadingBreakpoints = true; var solution = _shell.CurrentSolution; if (solution != null) { var file = System.IO.Path.Combine(Platform.GetUserDataDirectory(solution), "Breakpoints.xml"); if (System.IO.File.Exists(file)) { using (var reader = XmlReader.Create(file)) { var doc = new XmlDocument(); doc.Load(reader); Breakpoints.Load(doc.DocumentElement); } } } else { Breakpoints.Clear(); } _loadingBreakpoints = false; }