private void btn1_Click(object sender, EventArgs e)
        {
            foroosheshir fsh = new foroosheshir();

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

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

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

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