Exemple #1
0
        private void btn1_Click(object sender, EventArgs e)
        {
            vshir vs = new vshir();

            vs.typ = 1;
            vs.ShowDialog(this);
            con.connection();
            dataGridViewX1.DataSource = con.show_data("select * from vshir");
            con.Disconnect();
        }
Exemple #2
0
        private void buttonX1_Click(object sender, EventArgs e)
        {
            if (dataGridViewX1.RowCount == 0)
            {
                return;
            }

            vshir vs = new vshir();

            vs.setstr(dataGridViewX1.CurrentRow);
            vs.typ = 2;
            vs.ShowDialog(this);

            con.connection();
            dataGridViewX1.DataSource = con.show_data("select * from vshir");
            con.Disconnect();
        }