Esempio n. 1
0
        private void btn1_Click(object sender, EventArgs e)
        {
            tahvilshir tsh = new tahvilshir();

            tsh.type = 1;
            tsh.ShowDialog(this);

            con.connection();
            dataGridViewX1.DataSource = con.show_data("select * from tahvilshir");
            con.Disconnect();
        }
Esempio n. 2
0
        private void buttonX1_Click(object sender, EventArgs e)
        {
            if (dataGridViewX1.RowCount == 0)
            {
                return;
            }
            tahvilshir tsh = new tahvilshir();

            tsh.settxt(dataGridViewX1.CurrentRow);
            tsh.type = 2;
            tsh.ShowDialog(this);
            con.connection();
            dataGridViewX1.DataSource = con.show_data("select * from tahvilshir");
            con.Disconnect();
        }