/// <summary> /// Implements the constructor for the Add-in object. Place your initialization code within this method. /// </summary> public CSqlAddin() { Assembly currentAssembly = Assembly.GetExecutingAssembly(); string imageResourceRoot = "csql.addin.Resources.Images.Commands."; VsCommand command; int position = 1; command = new SettingsCommand(); command.CommandBarName = "csql"; command.IconId = 50; command.Icon = new VsCommandIcon(currentAssembly, imageResourceRoot + "Settings.bmp"); command.Position = position++; RegisterCommand(command); command = new ExecuteScriptCommand(); command.CommandBarName = "csql"; command.IconId = 20; command.Icon = new VsCommandIcon(currentAssembly, imageResourceRoot + "ExecuteScript.bmp"); command.Position = position++; RegisterCommand(command); command = new CancelScriptCommand(); command.CommandBarName = "csql"; command.IconId = 21; command.Icon = new VsCommandIcon(currentAssembly, imageResourceRoot + "CancelScript.bmp"); command.Position = position++; RegisterCommand(command); command = new LocateFileCommand(); command.CommandBarName = "csql"; command.IconId = 40; command.Icon = new VsCommandIcon(currentAssembly, imageResourceRoot + "LocateFile.bmp"); command.Position = position++; RegisterCommand(command); command = new GroupFilesCommand(); command.CommandBarName = "csql"; command.IconId = 30; command.Icon = new VsCommandIcon(currentAssembly, imageResourceRoot + "GroupFiles.bmp"); command.Position = position++; RegisterCommand(command); command = new AboutDialogCommand(); command.CommandBarName = "csql"; command.IconId = 10; command.Icon = new VsCommandIcon(currentAssembly, imageResourceRoot + "AboutDialog.bmp"); command.Position = position++; RegisterCommand(command); }
/// <summary> /// Implements the constructor for the Add-in object. Place your initialization code within this method. /// </summary> public CSqlAddIn() { String imageResourceRoot = "csql.addin.Resources.Images.Commands."; VsCommand command; int position = 1; command = new SettingsCommand(); command.CommandBarName = "csql"; command.Icon = new VsCommandIcon(imageResourceRoot + "Settings.bmp"); command.Position = position++; RegisterCommand(command); command = new ExecuteScriptCommand(); command.CommandBarName = "csql"; command.Icon = new VsCommandIcon(imageResourceRoot + "ExecuteScript.bmp"); command.Position = position++; RegisterCommand(command); command = new LocateFileCommand(); command.CommandBarName = "csql"; command.Icon = new VsCommandIcon(imageResourceRoot + "LocateFile.bmp"); command.Position = position++; RegisterCommand(command); command = new GroupFilesCommand(); command.CommandBarName = "csql"; command.Icon = new VsCommandIcon(imageResourceRoot + "GroupFiles.bmp"); command.Position = position++; RegisterCommand(command); command = new AboutDialogCommand(); command.CommandBarName = "csql"; command.Icon = new VsCommandIcon(imageResourceRoot + "AboutDialog.bmp"); command.Position = position++; RegisterCommand(command); }