Beispiel #1
0
        private async void AddBookBtn_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new CreateBookWindow();

            dialog.Owner = this;
            dialog.ShowDialog();

            if (dialog.DialogResult == true)
            {
                await RefreshBooksList();
            }
        }
Beispiel #2
0
        private void OnNewBookButtonClick(object sender, RoutedEventArgs e)
        {
            CreateBookWindow bookWindow = new CreateBookWindow();

            bookWindow.Show();
        }