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