using System; using System.Windows.Forms; namespace CLIP.eForm.Consent.Dfh.UI { /// /// 동의서목록 > 동의서 삭제 사유등록 팝업창 클래스 /// /// ///

[설계자]

///

클립소프트 연구소 홍지철 (jchong@clipsoft.co.kr)

///

[원본 작성자]

///

클립소프트 기술부 이창훈 (chlee@clipsoft.co.kr)

///

[수정 작성자]

///

클립소프트 기술부 이인희

///

----------------------------------------------------------------------------------------

///

[HISTORY]

///

2016-07-11 : 최초작성

///

----------------------------------------------------------------------------------------

///
public partial class ReasonForUseN : Form { public ReasonForUseN(bool bDel) { InitializeComponent(); if (bDel) { this.labelReasonForUseN.Text = string.Format(Properties.Resources.msg_show_consent_record_deleted); } else { this.labelReasonForUseN.Text = string.Format(Properties.Resources.msg_show_paper_out_consent_record_deleted); } } private void btnOK_Click(object sender, EventArgs e) { //if (!string.IsNullOrEmpty(this.textBoxReasonForUseN.Text)) //{ // this.DialogResult = System.Windows.Forms.DialogResult.OK; //} } public string GetReasonForUseN() { if (this.comboReason.SelectedItem.ToString() == "(직접입력)") return this.textBoxReasonForUseN.Text.ToString(); else return this.comboReason.SelectedItem.ToString(); } private void ReasonForUseN_Load(object sender, EventArgs e) { this.comboReason.SelectedIndex = 0; } private void comboReason_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboReason.SelectedItem.ToString() == "(직접입력)") { this.textBoxReasonForUseN.Enabled = true; this.textBoxReasonForUseN.TabIndex = 0; } else { this.textBoxReasonForUseN.Text = ""; this.textBoxReasonForUseN.Enabled = false; } } } }