private void btnfrmFreeCode_Click(object sender, EventArgs e) { //frmFreeCode_09 _frm = new frmFreeCode_09(_faim3, _dao_comm); //_frm.Show(); F_MyDLL _boCode = new F_MyDLL(ref _faim3); int _isString = 0; //if (this.txtCode.Text.IndexOf(';') > 4) _type = 1; // 字符串 string _rec = _boCode.doGet_Value( "doMySub", this.txtCode.Text, _isString).ToString(); if (_rec.ToString() == "-1") { _rec = _boCode.ErrorMessage; } this.txtResult.Text = _rec; }
private void button1_Click(object sender, EventArgs e) { F_MyDLL _boCode = new F_MyDLL(ref _faim3); int _type = 0; if (rd_str.Checked) { _type = 1; } string _rec = _boCode.doGet_Value( this.txtMethod.Text, this.txtCode.Text, _type).ToString(); if (_rec.ToString() == "-1") { _rec = _boCode.ErrorMessage; } this.txtResult.Text = _rec; }