33 lines
756 B
C#
33 lines
756 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace BookShopView
|
|
{
|
|
public partial class FormBook : Form
|
|
{
|
|
public FormBook()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void buttonAdd_Click(object sender, EventArgs e)
|
|
{
|
|
var service = Program.ServiceProvider?.GetService(typeof(FormBookAuthor));
|
|
if (service is FormBookAuthor form)
|
|
{
|
|
if (form.ShowDialog() == DialogResult.OK)
|
|
{
|
|
//LoadData();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|