-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocker.vb
More file actions
37 lines (31 loc) · 1.18 KB
/
Locker.vb
File metadata and controls
37 lines (31 loc) · 1.18 KB
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
' Developer Express Code Central Example:
' How to cancel time-consuming operation from the WaitForm
'
' This example illustrates how to cancel a time-consuming operation on a WaitForm.
' To accomplish this task, place a BackgroundWorker and SplashScreenManager onto a
' Form, and add the Cancel button in the WaitForm's designer. The main idea is to
' perform data loading in a background thread, pass the ILocked object both to the
' WaitForm and to this thread, and check its condition while data is loading.
'
' You can find sample updates and versions for different programming languages here:
' http://www.devexpress.com/example=E4524
Imports System.ComponentModel
Imports System.Drawing
Namespace WaitFormCanceling
Public Class Locker
Implements ILocked
''' Fields...
Private _IsCanceled As Boolean
Public Property IsCanceled As Boolean Implements ILocked.IsCanceled
Get
Return _IsCanceled
End Get
Set(ByVal value As Boolean)
_IsCanceled = value
End Set
End Property
Public Sub New()
_IsCanceled = False
End Sub
End Class
End Namespace