/// <summary> /// Loads a given text file and starts using it as reference for the git diff indicators /// </summary> /// <param name="text"></param> public void LoadText(string text) { _LoadedText = text.WithCarriageReturnLineEndings(); _DiffIndicators.Span.Clear(); BreakpointIndicators.Clear(); CodeEditBox.Document.LoadFromString(text); }
/// <summary> /// Clears all the existing breakpoints /// </summary> /// <param name="sender">The <see cref="MenuFlyoutItem"/> that was clicked</param> /// <param name="e">The <see cref="RoutedEventArgs"/> for the current event</param> private void RemoveAllBreakpointsButton_Clicked(object sender, RoutedEventArgs e) { BreakpointsCleared?.Invoke(this, BreakpointIndicators.Count); BreakpointIndicators.Clear(); UpdateBreakpointsInfo(); IdeOverlaysCanvas.Invalidate(); CodeEditBox.InvalidateOverlays(); }