Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            n = dataGridView1.Rows.Count;
            int kod = 0;

            if (n > 0)
            {
                kod = Convert.ToInt32(dataGridView1.Rows[n - 1].Cells["№ п/п"].Value) + 1;
            }
            else
            {
                kod = 1;
            }
            string sql = "INSERT INTO journal(numb) VALUES(" + kod + ")";

            menu.Modification_Execute(sql);
            menu.ds.Tables["journal"].Rows.Add(new object[] { kod, null, null, null });
            dataGridView1.CurrentCell = null;
            prizivnik prizivnik = new prizivnik();

            prizivnik.Show();
        }
Exemple #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            prizivnik prizivnik = new prizivnik();

            prizivnik.Show();
        }