예제 #1
0
        public bool TryInputOrPath(
            IEnumerable <string> messages,
            Action <string> input, Action <string> path, TabCompletion complete)
        {
            void FileCallback(FileInfo f)
            {
                path(f.FullName);
            }

            void DirCallback(DirectoryInfo d)
            {
                path(d.FullName);
            }

            return(this.TryInputOrPathCore(messages, input, FileCallback, DirCallback, complete.ReadLine));
        }
예제 #2
0
 public bool TryInputOrPath(
     IEnumerable <string> messages,
     Action <string> input, Action <FileInfo> file, Action <DirectoryInfo> dir, TabCompletion complete)
 {
     return(this.TryInputOrPathCore(messages, input, file, dir, complete.ReadLine));
 }
예제 #3
0
 public bool TryInput(IEnumerable <string> messages, out string value, TabCompletion complete)
 {
     return(this.TryInputCore(messages, out value, complete.ReadLine));
 }