public void addChildUser(User childUser) { if (tree.SelectedItem == null) { return; } (tree.SelectedItem as User).AddChildUser(childUser); userContract.UpdateUser(childUser); }
private void EditUser_FinishedChange(bool isSave, User user) { if (isSave) { if (isNew) { userContract.AddUser(user); } else { userContract.UpdateUser(user); } } editUser.IsEnabled = false; RefreshData(); }