예제 #1
0
        public Form3(Form13 f13)
        {
            InitializeComponent();
            string connectionString = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;

            myConnection = new OleDbConnection(connectionString);
            myConnection.Open();
            f13.Close();
        }
예제 #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            int index_str = dataGridView1.CurrentRow.Index;

            myConnection.Close();

            peredachaID = Convert.ToInt32(dataGridView1[0, index_str].Value);
            Form13 newForm = new Form13(this, peredachaID);

            newForm.Show();
        }