public McMasterButton(StandardAddInServer s) { _stAddIn = s; mv = new MainWindowViewModel(); Stream myStream = System.Reflection.Assembly. GetExecutingAssembly().GetManifestResourceStream( "McMasterAddin.Resources.mcmaster.ico"); stdole.IPictureDisp largeImage = PictureDispConverter.ToIPictureDisp(new Icon(myStream)); //Button definition m_buttonDefinition = _stAddIn.m_invApp.CommandManager. ControlDefinitions.AddButtonDefinition("Browse", "BrowseButton", CommandTypesEnum.kQueryOnlyCmdType, StandardAddInServer.m_ClientIDstr, "Browse McMaster-Carr Inventory", "Use this to find " + "hardware and other products available on McMaster.com", largeImage, largeImage, ButtonDisplayEnum.kAlwaysDisplayText); m_button_Definition_OnExecute_Delegate = new ButtonDefinitionSink_OnExecuteEventHandler( m_button_OnExecute); m_buttonDefinition.OnExecute += m_button_Definition_OnExecute_Delegate; m_buttonDefinition.Enabled = true; }
public McMasterImporter(StandardAddInServer s) { _stAddIn = s; GetTranslatorAddInID("Translator: STEP"); }
public MainWindow(StandardAddInServer a) { InitializeComponent(); _stAddIn = a; }