예제 #1
0
        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();
        }
예제 #2
0
        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();
        }