C# Class NuGetConsole.Implementation.PowerConsoleToolWindow

Inheritance: Microsoft.VisualStudio.Shell.ToolWindowPane, IOleCommandTarget, IPowerConsoleService
Show file Open project: themotleyfool/NuGet

Private Properties

Property Type Description
ClearHost_Exec void
IOleCommandTarget int
IOleCommandTarget int
LoadConsoleEditor void
MoveFocus void
OnDispatcherStartCompleted void
OnDispatcherStartWaitingKey void
PendingFocusPane_Loaded void
PendingMoveFocus void
ProjectsList_Exec void
Projects_Exec void
SourcesList_Exec void
Sources_Exec void
StartConsoleSession void
StopHost_Exec void

Public Methods

Method Description
OnToolWindowCreated ( ) : void
PowerConsoleToolWindow ( ) : System

Standard constructor for the tool window.

Protected Methods

Method Description
Initialize ( ) : void
OnClose ( ) : void
PreProcessMessage ( System &m ) : bool

This override allows us to forward these messages to the editor instance as well

Private Methods

Method Description
ClearHost_Exec ( object sender, EventArgs e ) : void

ClearHost command handler.

IOleCommandTarget ( System.Guid &pguidCmdGroup, uint cCmds, OLECMD prgCmds, IntPtr pCmdText ) : int

Override to forward to editor or handle accordingly if supported by this tool window.

IOleCommandTarget ( System.Guid &pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int

Override to forward to editor or handle accordingly if supported by this tool window.

LoadConsoleEditor ( ) : void
MoveFocus ( FrameworkElement consolePane ) : void
OnDispatcherStartCompleted ( ) : void
OnDispatcherStartWaitingKey ( object sender, EventArgs args ) : void
PendingFocusPane_Loaded ( object sender, RoutedEventArgs e ) : void
PendingMoveFocus ( FrameworkElement consolePane ) : void

Set pending focus to a console pane. At the time of setting active host, the pane (UIElement) is usually not loaded yet and can't receive focus. In this case, we need to set focus in its Loaded event.

ProjectsList_Exec ( object sender, EventArgs e ) : void
Projects_Exec ( object sender, EventArgs e ) : void

Called to retrieve current combo item name or to select a new item.

SourcesList_Exec ( object sender, EventArgs e ) : void
Sources_Exec ( object sender, EventArgs e ) : void

Called to retrieve current combo item name or to select a new item.

StartConsoleSession ( FrameworkElement consolePane ) : void
StopHost_Exec ( object sender, EventArgs e ) : void

Method Details

Initialize() protected method

protected Initialize ( ) : void
return void

OnClose() protected method

protected OnClose ( ) : void
return void

OnToolWindowCreated() public method

public OnToolWindowCreated ( ) : void
return void

PowerConsoleToolWindow() public method

Standard constructor for the tool window.
public PowerConsoleToolWindow ( ) : System
return System

PreProcessMessage() protected method

This override allows us to forward these messages to the editor instance as well
protected PreProcessMessage ( System &m ) : bool
m System
return bool