Exemplo n.º 1
0
        private void btn1_Click(object sender, EventArgs e)
        {
            analizekarkhane ak = new analizekarkhane();

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

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

            analizekarkhane ak = new analizekarkhane();

            ak.type = 2;
            ak.settxt(dataGridViewX1.CurrentRow);
            ak.ShowDialog(this);

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