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