C# Class MySql.Data.VisualStudio.Editors.EditorBroker

This class serves as a) Command broker (subscribing once to the mappable keys of Visual Studio, instead of many times Solving a bug of backspace affecting the wrong mysql editor window when more than one is open). b) A repository to serve the connections of each SqlEditor for the Intellisense classifiers.
Inheritance: IOleCommandTarget
Afficher le fichier Open project: Top-Cat/SteamBot Class Usage Examples

Private Properties

Свойство Type Description
CreateSingleton void
EditorBroker System
GetCurrentConnection System.Data.Common.DbConnection
RegisterEditor void
UnregisterEditor void

Méthodes publiques

Méthode Description
Exec ( System.Guid &pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
QueryStatus ( System.Guid &pguidCmdGroup, uint cCmds, OLECMD prgCmds, IntPtr pCmdText ) : int

Private Methods

Méthode Description
CreateSingleton ( ServiceBroker sb ) : void
EditorBroker ( ServiceBroker sb ) : System
GetCurrentConnection ( ) : DbConnection

Returns the DbConnection associated with the current mysql editor.

RegisterEditor ( VSCodeEditorWindow editor ) : void
UnregisterEditor ( VSCodeEditorWindow editor ) : void

Method Details

Exec() public méthode

public Exec ( System.Guid &pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
pguidCmdGroup System.Guid
nCmdID uint
nCmdexecopt uint
pvaIn System.IntPtr
pvaOut System.IntPtr
Résultat int

QueryStatus() public méthode

public QueryStatus ( System.Guid &pguidCmdGroup, uint cCmds, OLECMD prgCmds, IntPtr pCmdText ) : int
pguidCmdGroup System.Guid
cCmds uint
prgCmds OLECMD
pCmdText System.IntPtr
Résultat int