示例#1
0
        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();
            }
        }
示例#2
0
 private void catalogCărțiToolStripMenuItem_Click(object sender, EventArgs e)
 {
     valform    = 1;
     fcacatalog = new BooksCatalogue();
     fcacatalog.Show();
 }
示例#3
0
 private void toolStripButton3_Click(object sender, EventArgs e)
 {
     valform    = 1;
     fcacatalog = new BooksCatalogue();
     fcacatalog.Show();
 }
示例#4
0
 private void button4_Click(object sender, EventArgs e)
 {
     fcatbook = new BooksCatalogue();
     fcatbook.Show();
 }