2024-02-05 23:08:37 -08:00
|
|
|
using Avalonia.Controls;
|
2024-11-15 22:54:50 -08:00
|
|
|
using Avalonia.Interactivity;
|
|
|
|
using Avalonia.VisualTree;
|
2024-02-05 23:08:37 -08:00
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
namespace SourceGit.Views
|
|
|
|
{
|
|
|
|
public partial class DiffView : UserControl
|
|
|
|
{
|
|
|
|
public DiffView()
|
|
|
|
{
|
2024-02-05 23:08:37 -08:00
|
|
|
InitializeComponent();
|
|
|
|
}
|
2024-11-15 22:54:50 -08:00
|
|
|
|
|
|
|
private void OnGotoPrevChange(object _, RoutedEventArgs e)
|
|
|
|
{
|
2024-12-08 05:02:30 -08:00
|
|
|
var textDiff = this.FindDescendantOfType<TextDiffView>();
|
|
|
|
textDiff?.GotoPrevChange();
|
|
|
|
e.Handled = true;
|
2024-11-15 22:54:50 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
private void OnGotoNextChange(object _, RoutedEventArgs e)
|
|
|
|
{
|
2024-12-08 05:02:30 -08:00
|
|
|
var textDiff = this.FindDescendantOfType<TextDiffView>();
|
|
|
|
textDiff?.GotoNextChange();
|
|
|
|
e.Handled = true;
|
2024-11-15 22:54:50 -08:00
|
|
|
}
|
2024-02-05 23:08:37 -08:00
|
|
|
}
|
2024-03-31 01:54:29 -07:00
|
|
|
}
|