예제 #1
0
        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();
        }
예제 #2
0
 public RecommendationRecordForm(ParameterRecordForm.RecommendationInfo RecommendationInfo, string strCaption)
 {
     m_RecommendationInfo = RecommendationInfo;
     m_strCaption         = strCaption;
     InitializeComponent();
 }