private void btnConfirm_Click(object sender, EventArgs e) { try { if (this.HasEmptyTxt()) { return; } ProgramVO programVO = new ProgramVO { Prog_id = prog_id, Module_id = cboModule_id.SelectedValue.ToInt(), Prog_name = txtProg_name.Text.Trim(), Prog_form_name = txtProg_form_name.Text.Trim(), Prog_seq = (int)nudProg_seq.Value, Prog_use = rdoProg_useY.Checked ? "Y" : "N", Prog_expl = txtProg_expl.Text.Trim(), Regist_employee = employeeVO.Employee_id }; if (programService.SaveProgram(programVO)) { MessageBox.Show("정상적으로 저장되었습니다."); this.DialogResult = DialogResult.OK; this.Close(); } } catch (Exception err) { MessageBox.Show(err.Message); } }