WeibullDataSet.ShowCalculationProgress: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
| Albert Szeto (talk | contribs) No edit summary | Albert Szeto (talk | contribs) No edit summary | ||
| Line 17: | Line 17: | ||
| == Usage Example == | == Usage Example == | ||
| {{APIComment|Declare the  | {{APIComment|Declare a New class that Inherits from WeibullEvents.}}<br> | ||
| {{APIComment|Override the method.}}<br> | |||
|         Private Class myEvents | |||
|             Inherits WeibullEvents | |||
|             Public Overrides Sub ShowCalculationProgress(sender As WeibullDataSet) | |||
|                 MyBase.ShowCalculationProgress(sender) | |||
|                 MessageBox.Show("Additional overridden code here.") | |||
|             End Sub | |||
|         End Class | |||
| {{APIComment|Declare the WeibullDataSet.}}<br> | {{APIComment|Declare the WeibullDataSet.}}<br> | ||
|          Dim WDS as New WeibullDataSet |          Dim WDS as New WeibullDataSet | ||
| {{APIComment|Use the created myEvents class in place of the one created by the dataset.}}<br> | |||
|         WDS.Events = New myEvents | |||
| {{APIComment|Show the current Calculation Progress.}} | {{APIComment|Show the current Calculation Progress.}} | ||
|          WDS.Events.ShowCalculationProgress(WDS) | |||
Revision as of 22:17, 9 October 2013
 
Shows the current calculation progress if the calculation process is running.
Method Syntax
 ShowCalculationProgress( 
ByVal
 sender 
As
 WeibullDataSet) 
 Called by ‘sender’ when calculation progress should be shown. 
Parameters
sender An WeibullDataSet object
Usage Example
 Declare a New class that Inherits from WeibullEvents. 
 Override the method. 
       Private Class myEvents
           Inherits WeibullEvents
           Public Overrides Sub ShowCalculationProgress(sender As WeibullDataSet)
               MyBase.ShowCalculationProgress(sender)
               MessageBox.Show("Additional overridden code here.")
           End Sub
       End Class
 Declare the WeibullDataSet. 
Dim WDS as New WeibullDataSet
 Use the created myEvents class in place of the one created by the dataset. 
WDS.Events = New myEvents
Show the current Calculation Progress.
WDS.Events.ShowCalculationProgress(WDS)
