コード例 #1
0
        public PhrasesView()
        {
            InitializeComponent();

            // Set the options by mapping each string page to a GazeButtonData page
            PagedMenu.Options = _phraseService.GetPhrases()
                                .Select(item => GazeButtonData.FromStringArray(item))
                                .ToList();
        }
コード例 #2
0
        public KeyboardView()
        {
            InitializeComponent();

            Alphabet_Menu = new List <GazeButtonData[]>();
            Alphabet_Menu.Add(GazeButtonData.FromStringArray(new string[] { "a", "b", "c", "d" }));
            Alphabet_Menu.Add(GazeButtonData.FromStringArray(new string[] { "e", "f", "g", "h" }));
            Alphabet_Menu.Add(GazeButtonData.FromStringArray(new string[] { "i", "j", "k", "l" }));
            Alphabet_Menu.Add(GazeButtonData.FromStringArray(new string[] { "m", "n", "o", "p" }));
            Alphabet_Menu.Add(GazeButtonData.FromStringArray(new string[] { "q", "r", "s", "t" }));
            Alphabet_Menu.Add(GazeButtonData.FromStringArray(new string[] { "u", "v", "w", "x" }));
            Alphabet_Menu.Add(GazeButtonData.FromStringArray(new string[] { "y", "z", "", "" }));

            Symbols_Menu = new List <GazeButtonData[]>();
            Symbols_Menu.Add(GazeButtonData.FromStringArray(new string[] { "0", "1", "2", "3" }));
            Symbols_Menu.Add(GazeButtonData.FromStringArray(new string[] { "4", "5", "6", "7" }));
            Symbols_Menu.Add(GazeButtonData.FromStringArray(new string[] { "8", "9", ".", "," }));
            Symbols_Menu.Add(GazeButtonData.FromStringArray(new string[] { "!", "?", "(space)", "(backspace)" }));

            PagedMenu.Options = Menu;
        }