private void saveBook_Click(object sender, EventArgs e) { Books bk = new Books(); bk.Title = bookName.Text.ToString(); bk.description = bookDescription.Text.ToString(); BookAdapter.AddBook(bk); currentForm.updateList(); this.Hide(); }
public Form1() { InitializeComponent(); Books bk = new Books("hello"); Pages pg = new Pages("test"); bk.addPage(pg); BookAdapter.AddBook(bk); updateList(); this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); }