private void btnOK_Click(object sender, System.EventArgs e) { if (edtName.Text != "") { HONUS.MaterialPropertiesEstimation.Component.MPE_DB MPE_DB1 = new HONUS.MaterialPropertiesEstimation.Component.MPE_DB(); int count = MPE_DB1.ISNameSame(edtName.Text); if (count == 0) { this.DialogResult = DialogResult.OK; this.Close(); } else { MessageBox.Show("이미 같은 이름이 존재합니다."); this.DialogResult = DialogResult.OK; this.Close(); } } else { MessageBox.Show("이름을 입력하세요."); } }
private void btnOK_Click(object sender, System.EventArgs e) { if(edtName.Text != "") { HONUS.MaterialPropertiesEstimation.Component.MPE_DB MPE_DB1 = new HONUS.MaterialPropertiesEstimation.Component.MPE_DB(); int count = MPE_DB1.ISNameSame(edtName.Text); if(count == 0) { this.DialogResult = DialogResult.OK; this.Close(); } else { MessageBox.Show("�̹� ���� �̸��� �����մϴ�."); this.DialogResult = DialogResult.OK; this.Close(); } } else { MessageBox.Show("�̸��� �Է��ϼ���."); } }