-
Notifications
You must be signed in to change notification settings - Fork 0
/
clsEvent.cls
56 lines (41 loc) · 1.08 KB
/
clsEvent.cls
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
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "clsEvent"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
Private oDecroche As clsEvent
Private oRaccroche As clsEvent
Private oGet1 As clsEvent
Private oGet2to0 As clsEvent
Private oAction As Object
Public Function executeEvent(sEvent As String) As clsEvent
Select Case sEvent
Case "1"
executeEvent = oGet1
Case "U"
executeEvent = oDecroche
Case "D"
executeEvent = oRaccroche
Case Else
executeEvent = oGet2to0
End Select
End Function
Public Sub executeAction()
Eval oAction
End Sub
Public Sub Init(ByRef oDec As clsEvent, _
ByRef oRac As clsEvent, _
ByRef o1 As clsEvent, _
ByRef o2 As clsEvent, _
Optional ByRef action As Object)
Set oDecroche = oDec
Set oRaccroche = oRac
Set oGet1 = o1
Set oGet2to0 = o2
Set oAction = action
End Sub