private void EditUser_FinishedChange(bool isSave, User user) { if (isSave) { if (isNew) { userContract.AddUser(user); } else { userContract.UpdateUser(user); } } editUser.IsEnabled = false; RefreshData(); }