Example #1
0
 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()));
 }
Example #2
0
 private void CodeEditor_OnBreakpointsCleared(Brainf_ckIde sender, int args)
 {
     App.Current.Services.GetRequiredService <IAnalyticsService>().Log(EventNames.BreakpointsCleared, (nameof(ItemCollection.Count), args.ToString()));
 }
Example #3
0
 private void CodeEditor_OnCursorPositionChanged(Brainf_ckIde sender, CursorPositionChangedEventArgs args)
 {
     ViewModel.Row    = args.Row;
     ViewModel.Column = args.Column;
 }
Example #4
0
 private void CodeEditor_OnTextChanged(Brainf_ckIde sender, TextChangedEventArgs args)
 {
     ViewModel.Text             = args.PlainText.AsMemory(0, args.PlainText.Length - 1);
     ViewModel.ValidationResult = args.ValidationResult;
 }