/// <summary> /// when [DoBrowserEvents] button is clicked. /// </summary> /// <param name="Context"></param> /// <remarks></remarks> private void m_DoBrowserEvents_OnExecute(Inventor.NameValueMap Context) { if (m_DoBrowserEvents.Pressed == false) { MessageBox.Show("BrowserEvents Starts!"); m_DoBrowserEvents.Pressed = true; m_BrowserEvents = m_inventorApplication.ActiveDocument.BrowserPanes.BrowserPanesEvents; } else { MessageBox.Show("BrowserEvents Stops!"); m_DoBrowserEvents.Pressed = false; m_BrowserEvents = null; } }
/// <summary> /// when [DoBrowserEvents] button is clicked. /// </summary> /// <param name="Context"></param> /// <remarks></remarks> private void m_DoBrowserEvents_OnExecute(Inventor.NameValueMap Context) { if (m_DoBrowserEvents.Pressed == false) { MessageBox.Show("BrowserEvents Starts!"); m_DoBrowserEvents.Pressed = true; m_BrowserEvents = m_inventorApplication.ActiveDocument.BrowserPanes.BrowserPanesEvents; } else { MessageBox.Show("BrowserEvents Stops!"); m_DoBrowserEvents.Pressed = false; m_BrowserEvents = null; } }