Initial
This commit is contained in:
27
Bokhantarare/BookSelectionPage.xaml.cs
Normal file
27
Bokhantarare/BookSelectionPage.xaml.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user