void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ucAssembly = ((Cosmos.VS.Windows.AssemblyUC)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.CosmosAssemblyUserControl = ((Cosmos.VS.Windows.AssemblyUC)(target)); return; case 2: this.toolBar1 = ((System.Windows.Controls.ToolBar)(target)); return; case 3: this.butnFilter = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 4: this.butnCopy = ((System.Windows.Controls.Button)(target)); return; case 5: this.butnStepMode = ((System.Windows.Controls.Button)(target)); return; case 6: this.butnStepInto = ((System.Windows.Controls.Button)(target)); return; case 7: this.butnStepOver = ((System.Windows.Controls.Button)(target)); return; case 8: this.ASMScrollViewer = ((System.Windows.Controls.ScrollViewer)(target)); return; case 9: this.tblkSource = ((System.Windows.Controls.TextBlock)(target)); return; case 10: this.mitmCopy = ((System.Windows.Controls.MenuItem)(target)); return; } this._contentLoaded = true; }
public AssemblyTW() { //ToolBar = new CommandID(GuidList.guidAsmToolbarCmdSet, (int)PkgCmdIDList.AsmToolbar); Caption = "Cosmos Assembly"; // Set the image that will appear on the tab of the window frame // when docked with an other window. // The resource ID correspond to the one defined in the resx file // while the Index is the offset in the bitmap strip. Each image in // the strip being 16x16. BitmapResourceID = 301; BitmapIndex = 1; // This is the user control hosted by the tool window; Note that, even if this class implements IDisposable, // we are not calling Dispose on this object. This is because ToolWindowPane calls Dispose on // the object returned by the Content property. Content = new AssemblyUC(); }
public AssemblyTW() { //ToolBar = new CommandID(GuidList.guidAsmToolbarCmdSet, (int)PkgCmdIDList.AsmToolbar); Caption = "Cosmos Assembly"; // Set the image that will appear on the tab of the window frame // when docked with an other window. // The resource ID correspond to the one defined in the resx file // while the Index is the offset in the bitmap strip. Each image in // the strip being 16x16. BitmapResourceID = 301; BitmapIndex = 1; // This is the user control hosted by the tool window; Note that, even if this class implements IDisposable, // we are not calling Dispose on this object. This is because ToolWindowPane calls Dispose on // the object returned by the Content property. mUserControl = new AssemblyUC(); Content = mUserControl; }