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
Datei anzeigen Open project: Top-Cat/SteamBot Class Usage Examples

Private Properties

Property Type Description
CreateSingleton void
EditorBroker System
GetCurrentConnection System.Data.Common.DbConnection
RegisterEditor void
UnregisterEditor void

Public Methods

Method 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

Method 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 method

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
return int

QueryStatus() public method

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