using SolidWorks.Interop.sldworks; using SolidWorks.Interop.swpublished; using System; namespace PdmSw { public class PMPHandler : IPropertyManagerPage2Handler8 { ISldWorks iSwApp; SwAddin userAddin; public PMPHandler(SwAddin addin) { userAddin = addin; iSwApp = (ISldWorks)userAddin.SwApp; } //Implement these methods from the interface public void AfterClose() { //This function must contain code, even if it does nothing, to prevent the //.NET runtime environment from doing garbage collection at the wrong time. int IndentSize; IndentSize = System.Diagnostics.Debug.IndentSize; System.Diagnostics.Debug.WriteLine(IndentSize); } public void OnCheckboxCheck(int id, bool status) { } public void OnClose(int reason) { //This function must contain code, even if it does nothing, to prevent the //.NET runtime environment from doing garbage collection at the wrong time. int IndentSize; IndentSize = System.Diagnostics.Debug.IndentSize; System.Diagnostics.Debug.WriteLine(IndentSize); } public void OnComboboxEditChanged(int id, string text) { } public int OnActiveXControlCreated(int id, bool status) { return -1; } public void OnButtonPress(int id) { } public void OnComboboxSelectionChanged(int id, int item) { } public void OnGroupCheck(int id, bool status) { } public void OnGroupExpand(int id, bool status) { } public bool OnHelp() { return true; } public void OnListboxSelectionChanged(int id, int item) { } public bool OnNextPage() { return true; } public void OnNumberboxChanged(int id, double val) { } public void OnOptionCheck(int id) { } public bool OnPreviousPage() { return true; } public void OnSelectionboxCalloutCreated(int id) { } public void OnSelectionboxCalloutDestroyed(int id) { } public void OnSelectionboxFocusChanged(int id) { } public void OnSelectionboxListChanged(int id, int item) { } public void OnTextboxChanged(int id, string text) { } public void AfterActivation() { } public bool OnKeystroke(int Wparam, int Message, int Lparam, int Id) { return true; } public void OnPopupMenuItem(int Id) { } public void OnPopupMenuItemUpdate(int Id, ref int retval) { } public bool OnPreview() { return true; } public void OnSliderPositionChanged(int Id, double Value) { } public void OnSliderTrackingCompleted(int Id, double Value) { } public bool OnSubmitSelection(int Id, object Selection, int SelType, ref string ItemText) { return true; } public bool OnTabClicked(int Id) { return true; } public void OnUndo() { } public void OnWhatsNew() { } public void OnGainedFocus(int Id) { } public void OnListboxRMBUp(int Id, int PosX, int PosY) { } public void OnLostFocus(int Id) { } public void OnRedo() { } public int OnWindowFromHandleControlCreated(int Id, bool Status) { return 0; } } }