private void bProtocol_Click(object sender, EventArgs e) { if (teRecommendation.Text.IndexOf("$") >= 0 && teKIn.EditValue == null) { MyLocalizer.XtraMessageBoxShow("Необходимо указать значение коэффициента КЦn.", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } Decimal?val = null; if (teKIn.EditValue != null) { val = Convert.ToDecimal(teKIn.EditValue); } m_RecommendationInfo = new ParameterRecordForm.RecommendationInfo(m_RecommendationInfo.m_ID, teRecommendation.Text, teConclusion.Text, val); DialogResult = System.Windows.Forms.DialogResult.OK; Close(); }
public RecommendationRecordForm(ParameterRecordForm.RecommendationInfo RecommendationInfo, string strCaption) { m_RecommendationInfo = RecommendationInfo; m_strCaption = strCaption; InitializeComponent(); }