private void button4_Click(object sender, EventArgs e) { FormHome.valform = 0; fcatbook = new BooksCatalogue(); fcatbook.ShowDialog(); idca = BooksCatalogue.idcarte; if (idca != 0) { mycon.Open(); OleDbCommand cmd = new OleDbCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = @"SELECT * FROM Carti WHERE (id = " + idca + ")"; cmd.Connection = mycon; OleDbDataReader rd = cmd.ExecuteReader(); rd.Read(); label18.Text = Convert.ToString(rd[1]); label19.Text = Convert.ToString(rd[3]); label20.Text = Convert.ToString(rd[4]); rd.Close(); mycon.Close(); } }
private void catalogCărțiToolStripMenuItem_Click(object sender, EventArgs e) { valform = 1; fcacatalog = new BooksCatalogue(); fcacatalog.Show(); }
private void toolStripButton3_Click(object sender, EventArgs e) { valform = 1; fcacatalog = new BooksCatalogue(); fcacatalog.Show(); }
private void button4_Click(object sender, EventArgs e) { fcatbook = new BooksCatalogue(); fcatbook.Show(); }