chr
7 天以前 43a0207d207390abdeeb3ab9155eebf03edd7b1a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
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;
        }
 
 
    }
}