public ModifyMemberPage(LibraryMember _member, Object content, MainWindow _context) { InitializeComponent(); member = _member; previousContent = content; context = _context; firstName.Text = member.Name; }
public void RefreshDataGrid() { currentMedia = null; selectedMember = null; libraryItems.ItemsSource = null; libraryItems.ItemsSource = Library.medias; membersGrid.ItemsSource = null; membersGrid.ItemsSource = Library.members; }
private void membersGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { selectedMember = ((LibraryMember)membersGrid.SelectedItem); }