예제 #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            ProgramModel objStudent = new ProgramModel();


            objStudent.ProgramCode        = txtcode.Text;
            objStudent.ProgramName        = txtName.Text;
            objStudent.ProgramDescription = txtDes.Text;

            objStudCore.insertProgram(objStudent);

            //reset feilds
            txtcode.Text = "";
            txtName.Text = "";
            txtDes.Text  = "";

            loadData();
        }