Skip to content

Commit

Permalink
Merge pull request #5 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
updating my repo
  • Loading branch information
nyagishira committed Feb 5, 2016
2 parents e29973b + e92c5df commit 66d0dba
Show file tree
Hide file tree
Showing 6 changed files with 490 additions and 390 deletions.
27 changes: 27 additions & 0 deletions instat/My Project/Resources.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions instat/My Project/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1126,4 +1126,13 @@
<data name="View_data" xml:space="preserve">
<value>View data</value>
</data>
<data name="Kappa" xml:space="preserve">
<value>Kappa</value>
</data>
<data name="vonmises" xml:space="preserve">
<value>vonmises</value>
</data>
<data name="von_mises" xml:space="preserve">
<value>von mises</value>
</data>
</root>
12 changes: 6 additions & 6 deletions instat/clsDistribution.vb
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ Public Class Distribution
strNameTag = strTemp
End Sub

Public Sub AddParameter(strArgumentName As String, strNameTag As String, Optional DefaultValue As Decimal = 9999)
Public Sub AddParameter(strArgumentName As String, strNameTag As String, Optional strDefaultValue As String = "")
Dim NewParameter As New DistributionParameter
NewParameter.strArgumentName = strArgumentName
NewParameter.strNameTag = strNameTag
If Not DefaultValue = 9999 Then
NewParameter.SetDefaultValue(DefaultValue)
If Not strDefaultValue = "" Then
NewParameter.SetDefaultValue(strDefaultValue)
End If
clsParameters.Add(NewParameter)
End Sub
Expand All @@ -42,11 +42,11 @@ End Class
Public Class DistributionParameter
Public strArgumentName As String
Public strNameTag As String
Public dcmDefaultValue As Decimal
Public strDefaultValue As String
Public bHasDefault As Boolean = False

Public Sub SetDefaultValue(Val As Decimal)
dcmDefaultValue = Val
Public Sub SetDefaultValue(Val As String)
strDefaultValue = Val
bHasDefault = True
End Sub
End Class
Loading

0 comments on commit 66d0dba

Please sign in to comment.