Ejemplo n.º 1
0
        private void Bookbutton_Click(object sender, EventArgs e)
        {
            FormFindAuthor fa = new FormFindAuthor(db);

            DialogResult faresult = fa.ShowDialog();
            var          auid     = fa.authorid;

            //memo("authorid = " + auid.ToString());

            if ((faresult == DialogResult.OK) && (auid >= 0))
            {
                FormNewBook fd = new FormNewBook(db, auid, null);
                fd.Show();
            }
        }
Ejemplo n.º 2
0
        private void OKbutton_Click(object sender, EventArgs e)
        {
            if (savebook())
            {
                saveshorts();
                //Shorts:

                if (CB_another.Checked)
                {
                    FormNewBook fd = new FormNewBook(db, auid, null);
                    fd.Show();
                }

                this.Close();
            }
        }
Ejemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            FormNewBook fd = new FormNewBook(db, -1, bb);

            fd.Show();
        }