コード例 #1
0
ファイル: Form3.cs プロジェクト: PavelShilin/AIS-employment
        public Form3(Form13 f13)
        {
            InitializeComponent();
            string connectionString = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;

            myConnection = new OleDbConnection(connectionString);
            myConnection.Open();
            f13.Close();
        }
コード例 #2
0
ファイル: Form3.cs プロジェクト: PavelShilin/AIS-employment
        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();
        }