Public Property GaugeHeight As Integer
Set(ByVal value As Integer)
Me._gaugeHeight = value
- If Not Me.Control.IsDisposed Then Me.Control.Refresh()
+ If Me.Control IsNot Nothing AndAlso Not Me.Control.IsDisposed Then Me.Control.Refresh()
End Set
Get
Return _gaugeHeight
Public Property MaxCount As Integer
Set(ByVal value As Integer)
Me._maxCount = value
- If Not Me.Control.IsDisposed Then
+ If Me.Control IsNot Nothing AndAlso Not Me.Control.IsDisposed Then
Me.SetText(Me._remainCount, Me._maxCount)
Me.Control.Refresh()
End If
Public Property RemainCount As Integer
Set(ByVal value As Integer)
Me._remainCount = value
- If Not Me.Control.IsDisposed Then
+ If Me.Control IsNot Nothing AndAlso Not Me.Control.IsDisposed Then
Me.SetText(Me._remainCount, Me._maxCount)
Me.Control.Refresh()
End If
Public Property ResetTime As DateTime
Set(ByVal value As DateTime)
Me._resetTime = value
- If Not Me.Control.IsDisposed Then
+ If Me.Control IsNot Nothing AndAlso Not Me.Control.IsDisposed Then
Me.SetText(Me._remainCount, Me._maxCount)
Me.Control.Refresh()
End If