Exemple #1
0
        private void OnPathTextBoxKeyUp(object sender, KeyEventArgs e)
        {
            HandleResult(ok =>
            {
                switch (e.Key)
                {
                case Key.Down:
                    _context.Autocomplete(true);
                    return(_context.ListFiles());

                case Key.Up:
                    _context.Autocomplete(false);
                    return(_context.ListFiles());

                default:
                    return(ok);
                }
            });
        }