private void LineSave(string UseCheck, string Status, int line_id) { if (MessageBox.Show($"라인을 {Status}하시겠습니까?", "", MessageBoxButtons.YesNo) == DialogResult.Yes) { LineVO line = new LineVO { line_id = line_id, factory_id = cboFactoryName.SelectedValue.ToInt(), line_name = txtLineName.Text, line_seq = Convert.ToInt32((nudLine_seq.Value.ToString().Length > 0) ? nudLine_seq.Value.ToString() : "0"), line_use = UseCheck, first_regist_employee = employeeName, final_regist_employee = employeeName, line_note1 = txtNote1.Text, line_note2 = txtNote2.Text }; if (service.SaveLine(line)) { this.DialogResult = DialogResult.OK; this.Close(); } } }