WeibullEvents Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Replaced content with '{{Template:API}}{{Template:APIBreadcrumb}} {{Template:InProgress}}')
Line 1: Line 1:
{{Template:APIClass|Global_Weibull|Global Weibull}}
{{Template:API}}{{Template:APIBreadcrumb}}
 
{{Template:InProgress}}
Contains {{Template:WeibullEvents Class.Cmt}}
 
== Methods  ==
*[[WeibullEvents.Message|Message( WeibullDataSet, String, String,  Boolean )]] {{APIComment|{{Template:WeibullEvents.Message.Cmt}}}}
*[[WeibullEvents.Question|Question( WeibullDataSet, String, MsgBoxStyle, MsgBoxResult )]] {{APIComment|{{Template:WeibullEvents.Question.Cmt}}}}
*[[WeibullEvents.GetDistrParameters|GetDistrParameters( WeibullDataSet, String, Boolean, List( Of ParamInputInfo ), Boolean )]]{{APIComment|{{Template:WeibullEvents.GetDistrParameters.Cmt}}}}
*[[WeibullEvents.UpdateCalculationProgress|UpdateCalculationProgress( WeibullDataSet, String, String, Double, Boolean, Long, Boolean ) ]]{{APIComment|{{Template:WeibullEvents.UpdateCalculationProgress.Cmt}}}}
*[[WeibullEvents.ShowCalculationProgress|ShowCalculationProgress( WeibullDataSet )]]{{APIComment|{{Template:WeibullEvents.ShowCalculationProgress.Cmt}}}}  
*[[WeibullEvents.HideCalculationProgress|HideCalculationProgress( WeibullDataSet )]]{{APIComment|{{Template:WeibullEvents.HideCalculationProgress.Cmt}}}}
 
== Usage Example ==
 
{{APIComment|'Overrides requested. Create a new class and inherit WeibullEvents. Then set the dataset's events.}}
  Private Class myEvents
      Inherits WeibullEvents
          Public Overrides Sub Message(sender As WeibullDataSet, sMsg As String,
          AdditionalInfo As String, IsCritical As Boolean)
              MyBase.Message(sender, sMsg, AdditionalInfo, IsCritical)
                {{APIComment|'<Add additional code here.>}}
          End Sub
  End Class
 
{{APIComment|'Declare a new WeibullDataSet.}}
  Dim WDS as New WeibullDataSet
 
{{APIComment|'Use the created myEvents class in place of the one created by the dataset.}}
  WDS.Events = New myEvents
 
{{APIComment|'Show a prompt with the respective strings. The additional code will also run.}}
  WDS.Events.Message(WDS, "Message1", "AdditionalInfo1", False)

Revision as of 15:15, 6 May 2016