Beispiel #1
0
 private void btnNew_Click(object sender, RoutedEventArgs e)
 {
     Member newMember = new Member();
     MembersRepository.Add(newMember);
     current = MembersRepository.GetAll().Count - 1;
     DataContext = newMember;
 }
Beispiel #2
0
        private void btnNew_Click(object sender, RoutedEventArgs e)
        {
            Member newMember = new Member();
            MembersRepository.Add(newMember);
            membersView.MoveCurrentToLast();

        }
Beispiel #3
0
 private void btnNew_Click(object sender, RoutedEventArgs e)
 {
     Member newMember = new Member();
     MembersRepository.Add(newMember);
     current = MembersRepository.GetAll().Count - 1;
     DataContext = newMember;
     grdData.Visibility = Visibility.Visible;
     grdNodata.Visibility = Visibility.Hidden;
 }
Beispiel #4
0
 public void Execute(object parameter)
 {
     ICollectionView membersView = CollectionViewSource.GetDefaultView(MembersRepository.GetAll());
     Member newMember = new Member();
     MembersRepository.Add(newMember);
     membersView.MoveCurrentToLast();
 }
Beispiel #5
0
 public static bool Add(Member member)
 {
     Members.Add(member);
     return true;
 }