27 lines
578 B
C#
27 lines
578 B
C#
using System.Windows;
|
|
|
|
namespace Bokhantarare;
|
|
|
|
public partial class BookSelectionPage : Window
|
|
{
|
|
public BookSelectionPage()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public BookSelectionPage(BareBookInfo[] books) : this()
|
|
{
|
|
BookSelector.ItemsSource = books;
|
|
}
|
|
|
|
public BareBookInfo getSelectedBook()
|
|
{
|
|
return BookSelector.SelectedItem as BareBookInfo;
|
|
}
|
|
|
|
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
|
|
{
|
|
this.DialogResult = true; // Close the dialog with 'OK' result.
|
|
this.Close();
|
|
}
|
|
} |