Пример #1
0
        private void UserControl_TextInput(object sender, TextCompositionEventArgs e)
        {
            string  newtxt = "";
            TextBox curBox = sender as TextBox;

            if (InputLanguageManager.Current.CurrentInputLanguage.ThreeLetterISOLanguageName.Equals("uig"))
            {
            }
            else if (gKunupka == KUNUPKA.Uyghur)
            {
                newtxt = Uyghur.KeyToUEY(e.Text);
                if (newtxt.Length > 0)
                {
                    e.Handled = true;
                    InputText(curBox, newtxt);
                }
            }
            else if (gKunupka == KUNUPKA.UyghurLY)
            {
                newtxt = Uyghur.KeyToULY(e.Text);
                if (newtxt.Length > 0)
                {
                    e.Handled = true;
                    InputText(curBox, newtxt);
                }
            }
            else if (curEditor.RightToLeft)
            {
                e.Handled = true;
                InputText(curBox, e.Text);
            }
        }
        private void UserControl_TextInput(object sender, TextCompositionEventArgs e)
        {
            string  newtxt = "";
            TextBox curBox = sender as TextBox;

            if (gKunupka == KUNUPKA.Uyghur)
            {
                newtxt = Uyghur.KeyToUEY(e.Text);
                if (newtxt.Length > 0)
                {
                    e.Handled = true;
                    InputText(curBox, newtxt);
                }
            }
        }