Last change
on this file since 673 was 615, checked in by イグトランス (egtra), 17 years ago |
サブクラス化機構(Control.Attach)の整備
|
File size:
494 bytes
|
Line | |
---|
1 | Public
|
---|
2 | Sub AddQueryClose(h As FormClosingHandler)
|
---|
3 | If IsNothing(queryClose) Then
|
---|
4 | queryClose = h
|
---|
5 | Else
|
---|
6 | queryClose += h
|
---|
7 | End If
|
---|
8 | End Sub
|
---|
9 | Sub RemoveQueryClose(h As FormClosingHandler)
|
---|
10 | If Not IsNothing(queryClose) Then
|
---|
11 | queryClose -= h
|
---|
12 | End If
|
---|
13 | End Sub
|
---|
14 | Protected
|
---|
15 | Function OnQueryClose(e As FormClosingArgs) As Boolean
|
---|
16 | If Not IsNothing(queryClose) Then
|
---|
17 | queryClose(This, e)
|
---|
18 | Return True
|
---|
19 | End If
|
---|
20 | End Function
|
---|
21 | Private
|
---|
22 | queryClose As FormClosingHandler
|
---|
23 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.