ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magicsld/DocumentEventHandlers.vb
(Generate patch)

Comparing magicsld/DocumentEventHandlers.vb (file contents):
Revision 40 by bournival, Mon Aug 20 21:30:28 2007 UTC vs.
Revision 48 by bournival, Wed Aug 22 21:18:12 2007 UTC

# Line 1 | Line 1
1 < Imports SldWorks
1 > Imports SolidWorks.Interop
2 > Imports SolidWorks.Interop.swconst
3 > Imports SolidWorks.Interop.swpublished
4 >
5   Namespace MAGIC
6  
7      'Base class for model event handlers
8      Public Class DocumentEventHandler
9          Protected userAddin As MAGIC
10 <        Protected iDocument As ModelDoc2
10 >        Protected iDocument As sldworks.ModelDoc2
11          Protected iSwApp As SldWorks.SldWorks
12  
13 <        Overridable Function Init(ByVal sw As SldWorks.SldWorks, ByVal addin As MAGIC, ByVal model As ModelDoc2) As Boolean
13 >        Overridable Function Init(ByVal sw As sldworks.SldWorks, ByVal addin As Magic, ByVal model As sldworks.ModelDoc2) As Boolean
14          End Function
15  
16          Overridable Function AttachEventHandlers() As Boolean
# Line 21 | Line 24 | Namespace MAGIC
24      Public Class PartEventHandler
25          Inherits DocumentEventHandler
26  
27 <        Dim WithEvents iPart As PartDoc
27 >        Dim WithEvents iPart As sldworks.PartDoc
28  
29 <        Overrides Function Init(ByVal sw As SldWorks.SldWorks, ByVal addin As MAGIC, ByVal model As ModelDoc2) As Boolean
29 >        Overrides Function Init(ByVal sw As sldworks.SldWorks, ByVal addin As Magic, ByVal model As sldworks.ModelDoc2) As Boolean
30              userAddin = addin
31              iPart = model
32              iDocument = iPart
33 <            iswapp = sw
33 >            iSwApp = sw
34          End Function
35  
36          Overrides Function AttachEventHandlers() As Boolean

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines