private void m_txtName_Leave(object sender, System.EventArgs e) { clsCreateChinaCode getChinaCode = new clsCreateChinaCode(); this.m_txtPYCODE.Text = getChinaCode.m_strCreateChinaCode(this.m_txtName.Text, ChinaCode.PY).Trim(); this.m_txtWBCODE.Text = getChinaCode.m_strCreateChinaCode(this.m_txtName.Text, ChinaCode.WB).Trim(); }
private void txtRecName_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { string val = this.txtRecName.Text.Trim(); if (val != "") { clsCreateChinaCode Ccode = new clsCreateChinaCode(); this.txtPyCode.Text = Ccode.m_strCreateChinaCode(val, ChinaCode.PY); this.txtWbCode.Text = Ccode.m_strCreateChinaCode(val, ChinaCode.WB); } this.txtUserCode.Focus(); } }
internal void m_lngGetpywb() { try { string strAny = this.m_objViewer.m_txtNAME_CHR.Text.Trim(); clsCreateChinaCode getChinaCode = new clsCreateChinaCode(); this.m_objViewer.m_txtPYCODE_CHR.Text = getChinaCode.m_strCreateChinaCode(strAny, ChinaCode.PY).Trim(); this.m_objViewer.m_txtWBCODE_CHR.Text = getChinaCode.m_strCreateChinaCode(strAny, ChinaCode.WB).Trim(); } catch { MessageBox.Show("生成生成五笔码/拼音码出错,请不要用英文字母", "icare", MessageBoxButtons.OK, MessageBoxIcon.Stop); } }
internal void m_lngGetpywb(string strAny, out string m_strPY, out string m_strWB) { m_strPY = ""; m_strWB = ""; try { clsCreateChinaCode getChinaCode = new clsCreateChinaCode(); m_strPY = getChinaCode.m_strCreateChinaCode(strAny, ChinaCode.PY).Trim(); m_strWB = getChinaCode.m_strCreateChinaCode(strAny, ChinaCode.WB).Trim(); } catch { MessageBox.Show("生成生成五笔码/拼音码出错,请不要用英文字母", "icare", MessageBoxButtons.OK, MessageBoxIcon.Stop); } }