コード例 #1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            int id = int.Parse(dgvModelo.Rows[dgvModelo.CurrentRow.Index].Cells[0].Value.ToString());

            createForm = new ModelsForm(id);
            createForm.ShowDialog();
        }
コード例 #2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     createForm = new ModelsForm();
     createForm.ShowDialog();
 }