private void InitArabicSft()
 {
     for (int i = 1; i <= 34; i++)
     {
         var key = KeyboardGrid.FindName("Key" + i.ToString());
         if (key != null)
         {
             if (key.GetType() == typeof(Button))
             {
                 InitKey((Button)key, CoptLib.Language.Arabic, true, i);
             }
         }
     }
     return;
 }
示例#2
0
 private void InitCopticSft()
 {
     InputBox.FontFamily = Copt;
     for (int i = 1; i <= 34; i++)
     {
         var key = KeyboardGrid.FindName("Key" + i.ToString());
         if (key != null)
         {
             if (key.GetType() == typeof(Button))
             {
                 InitKey((Button)key, "copt:sft", i);
             }
         }
     }
     return;
 }
示例#3
0
        private void InitArabic()
        {
            InputBox.FontFamily = Segoe;

            for (int i = 1; i <= 34; i++)
            {
                var key = KeyboardGrid.FindName("Key" + i.ToString());
                if (key != null)
                {
                    if (key.GetType() == typeof(Button))
                    {
                        InitKey((Button)key, "arabic", i);
                    }
                }
            }
            return;
        }
示例#4
0
 // Gets all the keyboard buttons in the keyboardgrid
 private IEnumerable <KeyboardButton> GetKeyboardButtons()
 {
     return(KeyboardGrid.GetChildrenOfType <KeyboardButton>());
 }