WeibullDataSet.HideCalculationProgress: Difference between revisions

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


== Usage Example ==
== Usage Example ==
 
 
{{APIComment|Declare a New class that Inherits from WeibullEvents.}}<br>
{{APIComment|'Overrides requested. Create a new class, inherit WeibullEvents, and set the dataset's events.}}
{{APIComment|Override the method.}}<br>
  Private Class myEvents
        Private Class myEvents
      Inherits WeibullEvents
            Inherits WeibullEvents
      Public Overrides Sub HideCalculationProgress(sender As WeibullDataSet)
            Public Overrides Sub HideCalculationProgress(sender As WeibullDataSet)
          MyBase.HideCalculationProgress(sender)
                MyBase.HideCalculationProgress(sender)
          {{APIComment|'<Additional overridden code here.>}}
                MessageBox.Show("Additional overridden code here.")
      End Sub
            End Sub
  End Class
        End Class
 
 
{{APIComment|'Set the new Events class.}}
{{APIComment|Declare the WeibullDataSet.}}<br>
  WDS.Events = New myEvents
        Dim WDS as New WeibullDataSet
 
 
{{APIComment|'Hide calculation progress.}}
{{APIComment|Use the created myEvents class in place of the one created by the dataset.}}<br>
  WDS.Events.HideCalculationProgress(WDS)
        WDS.Events = New myEvents
 
{{APIComment|Hide the current Calculation Progress.}}
        WDS.Events.HideCalculationProgress(WDS)

Revision as of 22:42, 23 May 2014


Called when calculation progress should be hidden. Hides the calculation progress display.

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 HideCalculationProgress(sender As WeibullDataSet)
         MyBase.HideCalculationProgress(sender)
           '<Additional overridden code here.> 
     End Sub
 End Class
 
 'Set the new Events class. 
 WDS.Events = New myEvents
 
 'Hide calculation progress. 
 WDS.Events.HideCalculationProgress(WDS)