コード例 #1
0
        private void btnInsert_Click(object sender, EventArgs e)
        {
            CardInUp frm = new CardInUp();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                DataBindig();
            }
        }
コード例 #2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            string cardNum   = dataGridView1[0, dataGridView1.CurrentRow.Index].Value.ToString();
            string cardUser  = dataGridView1[1, dataGridView1.CurrentRow.Index].Value.ToString();
            string cardLimit = dataGridView1[2, dataGridView1.CurrentRow.Index].Value.ToString();
            string cardID    = dataGridView1[3, dataGridView1.CurrentRow.Index].Value.ToString();

            CardInUp frm = new CardInUp(cardNum, cardUser, cardLimit, cardID);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                DataBindig();
            }
        }