Пример #1
0
 public static API_VisualStudio_2010 executeCommand(this API_VisualStudio_2010 visualStudio, string commandName, string parameter = "")
 {
     try
     {
         visualStudio.dte().ExecuteCommand(commandName, parameter);
     }
     catch (Exception ex)
     {
         ex.log("[API_VisualStudio_2010] executeCommand: ");
     }
     return(visualStudio);
 }
Пример #2
0
 public static List <Window> windows(this API_VisualStudio_2010 visualStudio)
 {
     return((from Window window in visualStudio.dte().Windows
             select window).toList());
 }
Пример #3
0
 public static List <Command> commands(this API_VisualStudio_2010 visualStudio)
 {
     return((from Command command in visualStudio.dte().Commands
             select command).toList());
 }