private void AuthorDetails(object obj) { _authorDetailsWindow.ViewModel.Author = SelectedAuthor; //if (_authorDetailsWindow.Visibility == Visibility.Hidden) //{ // _authorDetailsWindow.Visibility = Visibility.Visible; //} //else //{ // _authorDetailsWindow.Visibility = Visibility.Visible; //} _authorDetailsWindow.ShowDialog(); }
private void AuthorAction() { AuthorDetailsWindow authorDetails = new AuthorDetailsWindow(_books); authorDetails.ShowDialog(); }