2024-02-05 23:08:37 -08:00
|
|
|
using Avalonia.Controls;
|
2024-03-14 03:23:36 -07:00
|
|
|
using Avalonia.Input;
|
2024-02-05 23:08:37 -08:00
|
|
|
using Avalonia.Interactivity;
|
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
namespace SourceGit.Views
|
|
|
|
{
|
2024-06-12 20:54:10 -07:00
|
|
|
public partial class AssumeUnchangedManager : ChromelessWindow
|
2024-03-17 18:37:06 -07:00
|
|
|
{
|
|
|
|
public AssumeUnchangedManager()
|
|
|
|
{
|
2024-02-05 23:08:37 -08:00
|
|
|
InitializeComponent();
|
|
|
|
}
|
|
|
|
|
2024-07-14 00:55:15 -07:00
|
|
|
private void BeginMoveWindow(object _, PointerPressedEventArgs e)
|
2024-03-17 18:37:06 -07:00
|
|
|
{
|
2024-03-14 03:23:36 -07:00
|
|
|
BeginMoveDrag(e);
|
|
|
|
}
|
|
|
|
|
2024-06-06 00:31:02 -07:00
|
|
|
private void OnRemoveButtonClicked(object sender, RoutedEventArgs e)
|
|
|
|
{
|
2024-05-30 00:13:59 -07:00
|
|
|
if (DataContext is ViewModels.AssumeUnchangedManager vm && sender is Button button)
|
|
|
|
vm.Remove(button.DataContext as string);
|
|
|
|
|
|
|
|
e.Handled = true;
|
|
|
|
}
|
2024-02-05 23:08:37 -08:00
|
|
|
}
|
2024-03-31 01:54:29 -07:00
|
|
|
}
|