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

            frm.id = 0;
            frm.ShowDialog();
        }
コード例 #2
0
        private void btnModify_Click(object sender, EventArgs e)
        {
            if (flx.Rows.Count < 2)
            {
                Box.warnBox("Please select a row.");
                return;
            }

            GradeAddModify frm = new GradeAddModify(this);

            frm.id = Convert.ToInt32(flx[flx.RowSel, "gradeID"]);
            frm.ShowDialog();
        }