public BookReport() { InitializeComponent(); AddBranch ab = new AddBranch(); dataGridView1.DataSource = b.GetAllBooks(); }
public AddBook() { InitializeComponent(); AddPublication ap = new AddPublication(); foreach (DataGridViewRow row in ap.dataGridView1.Rows) { comboBox1.Items.Add(row.Cells[0].Value.ToString()); } AddBranch ab = new AddBranch(); foreach (DataGridViewRow row in ab.dataGridView1.Rows) { comboBox2.Items.Add(row.Cells[0].Value.ToString()); } }
private void button3_Click(object sender, EventArgs e) { AddBranch abr = new AddBranch(); abr.Show(); }