59
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
1
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
2 Public Class BrokenBinding
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
3
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
4 #Region " Declarations "
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
5
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
6 Private _strControlName As String = String.Empty
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
7 Private _strControlTypeName As String = String.Empty
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
8 Private _strPath As String = String.Empty
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
9 Private _strPropertyName As String = String.Empty
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
10
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
11 #End Region
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
12
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
13 #Region " Properties "
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
14
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
15 Public ReadOnly Property ControlName() As String
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
16 Get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
17
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
18 If String.IsNullOrEmpty(_strControlName) Then
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
19 Return "(none)"
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
20
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
21 Else
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
22 Return _strControlName
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
23 End If
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
24
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
25 End Get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
26 End Property
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
27
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
28 Public ReadOnly Property ControlTypeName() As String
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
29 Get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
30 Return _strControlTypeName
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
31 End Get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
32 End Property
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
33
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
34 Public ReadOnly Property Path() As String
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
35 Get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
36 Return _strPath
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
37 End Get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
38 End Property
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
39
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
40 Public ReadOnly Property PropertyName() As String
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
41 Get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
42 Return _strPropertyName
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
43 End Get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
44 End Property
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
45
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
46 #End Region
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
47
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
48 #Region " Constructor "
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
49
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
50 Public Sub New(ByVal strControlName As String, ByVal strControlTypeName As String, ByVal strPropertyName As String, ByVal strPath As String)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
51 _strControlName = strControlName
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
52 _strControlTypeName = strControlTypeName
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
53 _strPropertyName = strPropertyName
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
54 _strPath = strPath
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
55 End Sub
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
56
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
57 #End Region
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
58
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
59 #Region " Methods "
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
60
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
61 Public Overrides Function ToString() As String
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
62 Return String.Format("Control Name: {0}, Type: {1}, Property: {2}, Path: {3}", Me.ControlName, Me.ControlTypeName, Me.PropertyName, Me.Path)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
63 End Function
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
64
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
65 #End Region
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
66
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
67 End Class
|