private void CodeEditor_OnBreakpointRemoved(Brainf_ckIde sender, BreakpointToggleEventArgs args) { App.Current.Services.GetRequiredService <IAnalyticsService>().Log( EventNames.BreakpointRemoved, (nameof(BreakpointToggleEventArgs.Row), args.Row.ToString()), (nameof(BreakpointToggleEventArgs.Count), args.Count.ToString())); }
private void CodeEditor_OnBreakpointsCleared(Brainf_ckIde sender, int args) { App.Current.Services.GetRequiredService <IAnalyticsService>().Log(EventNames.BreakpointsCleared, (nameof(ItemCollection.Count), args.ToString())); }
private void CodeEditor_OnCursorPositionChanged(Brainf_ckIde sender, CursorPositionChangedEventArgs args) { ViewModel.Row = args.Row; ViewModel.Column = args.Column; }
private void CodeEditor_OnTextChanged(Brainf_ckIde sender, TextChangedEventArgs args) { ViewModel.Text = args.PlainText.AsMemory(0, args.PlainText.Length - 1); ViewModel.ValidationResult = args.ValidationResult; }