This commit is contained in:
Курнат Андрей
2026-03-24 22:31:05 +03:00
parent 74d793948e
commit d46172beb9
83 changed files with 1159 additions and 22 deletions

View File

@@ -1,4 +1,5 @@
using System.Windows;
using System.Windows.Controls;
namespace XLAB2
{
@@ -13,6 +14,12 @@ namespace XLAB2
private void ViewModelOnCloseRequested(object sender, bool? dialogResult)
{
if (dialogResult.GetValueOrDefault())
{
InstrumentsGrid.CommitEdit(DataGridEditingUnit.Cell, true);
InstrumentsGrid.CommitEdit(DataGridEditingUnit.Row, true);
}
DialogResult = dialogResult;
Close();
}