25 lines
497 B
C#
25 lines
497 B
C#
using System.Windows;
|
|
using Explorer.Presentation.ViewModels;
|
|
|
|
namespace Explorer.App;
|
|
|
|
public partial class GitCommitWindow : Window
|
|
{
|
|
public GitCommitWindow(GitCommitViewModel vm)
|
|
{
|
|
InitializeComponent();
|
|
DataContext = vm;
|
|
vm.CloseRequested += (_, _) =>
|
|
{
|
|
try
|
|
{
|
|
DialogResult = true;
|
|
}
|
|
catch (InvalidOperationException)
|
|
{
|
|
Close();
|
|
}
|
|
};
|
|
}
|
|
}
|