WeibullDataSet.HideCalculationProgress: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
== Usage Example ==
== Usage Example ==


{{APIComment|Declare the WeibullEvents.}}<br>
{{APIComment|Declare a New class that Inherits from WeibullEvents.}}<br>
{{APIComment|Override the method.}}<br>
        Private Class myEvents
            Inherits WeibullEvents
            Public Overrides Sub HideCalculationProgress(sender As WeibullDataSet)
                MyBase.HideCalculationProgress(sender)
                MessageBox.Show("Additional overridden code here.")
            End Sub
        End Class
 
{{APIComment|Declare the WeibullDataSet.}}<br>
{{APIComment|Declare the WeibullDataSet.}}<br>
{{APIComment|Note: The WeibullDataSet constructor already creates a new WeibullEvents, which could be used in place of WEvents in the example below.}}<br>
        Dim WEvents as New WeibullEvents
         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|Hide the current Calculation Progress.}}
{{APIComment|Hide the current Calculation Progress.}}
         WEvents.HideCalculationProgress(WDS)
         WDS.Events.HideCalculationProgress(WDS)

Revision as of 22:18, 9 October 2013



Hides the calculation progress display.

Method Syntax

HideCalculationProgress( ByVal sender As WeibullDataSet)
Called by ‘sender’ when calculation progress should be hidden.

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 HideCalculationProgress(sender As WeibullDataSet)
               MyBase.HideCalculationProgress(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

Hide the current Calculation Progress.

       WDS.Events.HideCalculationProgress(WDS)