예제 #1
0
        //文本替换W
        private void btnChangeTextByIDW_Click(object sender, EventArgs e)
        {
            string szText2 = tbTextTXT.Text;

            Byte[] szText = Encoding.Unicode.GetBytes(szText2);
            int    nRet   = CSharpInterface.HS_ChangeTextByNameW(m_strModelName, szText);

            if (0 == nRet)
            {
                tbNote.Text = "ChangeTextValue successfully!";
                SelectSize();
            }
            else
            {
                ShowLastError();
                return;
            }
            Preview();
        }