WeibullDataSet.ShowCalculationProgress: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:


== Usage Example ==
== Usage Example ==
 
{{APIComment|'Overrides requested. Create a new class, inherit WeibullEvents, and set the dataset's events.}}
{{APIComment|Declare a New class that Inherits from WeibullEvents.}}<br>
  Private Class myEvents
{{APIComment|Override the method.}}<br>
      Inherits WeibullEvents
        Private Class myEvents
      Public Overrides Sub ShowCalculationProgress(sender As WeibullDataSet)
            Inherits WeibullEvents
          MyBase.ShowCalculationProgress(sender)
            Public Overrides Sub ShowCalculationProgress(sender As WeibullDataSet)
          {{APIComment|'<Additional overridden code here.>}}
                MyBase.ShowCalculationProgress(sender)
      End Sub
                MessageBox.Show("Additional overridden code here.")
  End Class
            End Sub
 
        End Class
{{APIComment|'Set the new Events class.}}
 
  WDS.Events = New myEvents
{{APIComment|Declare the WeibullDataSet.}}<br>
 
        Dim WDS as New WeibullDataSet
{{APIComment|'Show calculation progress.}}
 
  WDS.Events.ShowCalculationProgress(WDS)
{{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.}}
        WDS.Events.ShowCalculationProgress(WDS)

Revision as of 22:44, 23 May 2014


Called when calculation progress should be shown. Shows the current calculation progress if the calculation process is running.

Syntax

Parameters

sender: A WeibullDataSet object.

Usage Example

 'Overrides requested. Create a new class, inherit WeibullEvents, and set the dataset's events. 
 Private Class myEvents
     Inherits WeibullEvents
     Public Overrides Sub ShowCalculationProgress(sender As WeibullDataSet)
         MyBase.ShowCalculationProgress(sender)
          '<Additional overridden code here.> 
     End Sub
 End Class
 
 'Set the new Events class. 
 WDS.Events = New myEvents
 
 'Show calculation progress. 
 WDS.Events.ShowCalculationProgress(WDS)