private void CancelChanges(object obj) { if (WorkVM.IsEdititig) { WorkVM.CancelWork(); IsEditing = false; MainWindow.IsEnable = true; } }