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(); } }
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(); } }
private void button1_Click(object sender, EventArgs e) { FormNewBook fd = new FormNewBook(db, -1, bb); fd.Show(); }