edit
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user