示例#1
0
        private void m_txtMedName_Leave(object sender, System.EventArgs e)
        {
            //获取拼码与五笔码
            com.digitalwave.Utility.clsCreateChinaCode Ccode = new com.digitalwave.Utility.clsCreateChinaCode();

            m_txtMedPy.Text = Ccode.m_strCreateChinaCode(this.m_txtMedName.Text.Trim(), ChinaCode.WB);

            m_txtMedWb.Text = Ccode.m_strCreateChinaCode(m_txtMedName.Text.Trim(), ChinaCode.PY);
        }
示例#2
0
 private void m_txtPart_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         com.digitalwave.Utility.clsCreateChinaCode Ccode = new com.digitalwave.Utility.clsCreateChinaCode();
         m_txtPinYinCode.Text = Ccode.m_strCreateChinaCode(m_txtPart.Text, ChinaCode.PY);
         m_txtWuBiCode.Text   = Ccode.m_strCreateChinaCode(m_txtPart.Text, ChinaCode.WB);
         m_txtAssCode.Focus();
     }
 }
示例#3
0
        private void m_txtMedName_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
        {
            //获取拼音码与五笔码
            if (e.KeyCode == Keys.Enter)
            {
                com.digitalwave.Utility.clsCreateChinaCode Ccode = new com.digitalwave.Utility.clsCreateChinaCode();

                m_txtMedPy.Text = Ccode.m_strCreateChinaCode(this.m_txtMedName.Text.Trim(), ChinaCode.WB);

                m_txtMedWb.Text = Ccode.m_strCreateChinaCode(m_txtMedName.Text.Trim(), ChinaCode.PY);
            }
        }
 private void txtName_Leave(object sender, System.EventArgs e)
 {
     com.digitalwave.Utility.clsCreateChinaCode Ccode = new com.digitalwave.Utility.clsCreateChinaCode();
     this.txtWb.Text = Ccode.m_strCreateChinaCode(txtName.Text.Trim(), ChinaCode.WB);
     this.txtPy.Text = Ccode.m_strCreateChinaCode(txtName.Text.Trim(), ChinaCode.PY);
 }