Esempio n. 1
0
 public override void Execute()
 {
     if (clearhist)
     {
         HistoryManager.ClearHistory();
     }
     ResponseBox.KeyDown(EventHandler);
     ResponseBox.SetItems(HistoryManager.GetHistory());
 }
 public override void Execute()
 {
     if (term.Length < 1)
     {
         return;
     }
     videos = Youtube.SearchVideos(term, 10);
     foreach (string[] s in videos)
     {
         videoids.Add(s[0]);
         videonames.Add(s[1]);
     }
     ResponseBox.KeyDown(EventHandler);
     ResponseBox.SetItems(videonames);
 }
Esempio n. 3
0
 public override void Execute()
 {
     if (term.Length < 1)
     {
         return;
     }
     playlists = Youtube.SearchPlaylists(term, 10);
     foreach (string[] s in playlists)
     {
         playlistids.Add(s[0]);
         playlistnames.Add(s[1]);
     }
     ResponseBox.KeyDown(EventHandler);
     ResponseBox.SetItems(playlistnames);
 }
Esempio n. 4
0
        public override void Execute()
        {
            ResponseBox.KeyDown(EventHandler);
            List <List <string> > commands       = CommandDefinitionManager.GetAllCommands().Keys.ToList();
            List <string>         commandstrings = new List <string>();

            commands.ForEach(calls =>
            {
                string callstring = "";
                calls.ForEach(call =>
                {
                    callstring += call + " ";
                });
                commandstrings.Add(callstring);
            });
            ResponseBox.SetItems(commandstrings);
        }