Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #237

Merged
merged 25 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions instat/dlgCalculator.vb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Public Class dlgCalculator
Private iBasicWidth As Integer
Private strDefaultKeyboard As String
' Note: This list needs to be updated when a new keyboard is added.
Private strKeyboards() As String = {"Maths", "Logical and Symbols", "Summary", "Text/Strings (Character Columns)", "Factor", "Probability", "Dates/Times", "Transform", "Circular", "Wakefield", "Modifier", "Symbols", "HydroGOF", "Integer", "Complex", "List"}
Private strKeyboards() As String = {"Basic", "Maths", "Logical and Symbols", "Transform", "Summary", "Probability", "Factor", "Text/Strings (Character Columns)", "Dates/Times", "Circular", "Wakefield", "Goodness of Fit", "List", "Complex", "Integer"}

Private Sub dlgCalculator_Load(sender As Object, e As EventArgs) Handles MyBase.Load
If bFirstLoad Then
Expand Down Expand Up @@ -192,7 +192,7 @@ Public Class dlgCalculator
Me.Width = iBasicWidth * 1.39
Case "Symbols"
Me.Width = iBasicWidth * 2.56
Case "hydroGOF"
Case "Goodness of Fit"
Me.Width = iBasicWidth * 1.27
ucrBase.iHelpTopicID = 598
Case "Integer"
Expand Down
4 changes: 2 additions & 2 deletions instat/dlgEvapotranspiration.vb
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ Public Class dlgEvapotranspiration
clsListFunction.AddParameter("sigma", 4.903 * 10 ^ -9, iPosition:=5)
clsListFunction.AddParameter("z", 2, iPosition:=4)
clsListFunction.AddParameter("G", 0, iPosition:=6)
clsListFunction.AddParameter("as", 0.25, iPosition:=7)
clsListFunction.AddParameter("as", 0.23, iPosition:=7)
clsListFunction.AddParameter("bs", 0.5, iPosition:=8)
clsListFunction.AddParameter("lambda", 2.45, iPosition:=1)
clsListFunction.AddParameter("Gsc", 0.082, iPosition:=3)
Expand All @@ -522,7 +522,7 @@ Public Class dlgEvapotranspiration
clsListFunction.AddParameter("Gsc", 0.082, iPosition:=3)
clsListFunction.AddParameter("sigma", 4.903 * 10 ^ -9, iPosition:=5)
clsListFunction.AddParameter("G", 0, iPosition:=6)
clsListFunction.AddParameter("as", 0.25, iPosition:=7)
clsListFunction.AddParameter("as", 0.23, iPosition:=7)
clsListFunction.AddParameter("bs", 0.5, iPosition:=8)
clsListFunction.AddParameter("alphaPT", 1.26, iPosition:=9)
clsListFunction.RemoveParameterByName("z")
Expand Down
19 changes: 4 additions & 15 deletions instat/frmMain.Designer.vb

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

4 changes: 0 additions & 4 deletions instat/frmMain.vb
Original file line number Diff line number Diff line change
Expand Up @@ -937,10 +937,6 @@ Public Class frmMain
mnuIncludeComments.Checked = dlgOptions.ucrChkIncludeCommentsbyDefault.chkCheck.Checked
End Sub

Private Sub mnuOrganiseDataFrameHideColumns_Click(sender As Object, e As EventArgs) Handles mnuPrepareDataFrameHideColumns.Click
dlgHideShowColumns.ShowDialog()
End Sub

Private Sub mnuModelProbabilityDistributionsRandomSamplesUseModel_Click(sender As Object, e As EventArgs) Handles mnuModelProbabilityDistributionsRandomSamplesUseModel.Click
dlgRandomSample.enumRandomsampleMode = dlgRandomSample.RandomsampleMode.Model
dlgRandomSample.ShowDialog()
Expand Down
17 changes: 15 additions & 2 deletions instat/sdgLocation.vb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Public Class sdgLocation
ucrInputLatitude.SetParameter(New RParameter("lat_rad", 2))
ucrInputLatitude.AddQuotesIfUnrecognised = False
ucrInputLatitude.SetLinkedDisplayControl(lblLatitude)
ucrInputLatitude.SetValidationTypeAsNumeric()
ucrInputLatitude.SetRDefault("0")

ucrReceiverLongitude.SetParameter(New RParameter("lon", 3))
Expand All @@ -60,7 +61,8 @@ Public Class sdgLocation
ucrInputLongitude.SetParameter(New RParameter("lon", 3))
ucrInputLongitude.AddQuotesIfUnrecognised = False
ucrInputLongitude.SetLinkedDisplayControl(lblLongitude)
ucrInputLongitude.SetRDefault(0)
ucrInputLongitude.SetValidationTypeAsNumeric()
ucrInputLongitude.SetRDefault("0")

ucrReceiverAltitude.SetParameter(New RParameter("Elev", 4))
ucrReceiverAltitude.SetParameterIsRFunction()
Expand All @@ -71,6 +73,7 @@ Public Class sdgLocation
ucrInputElevation.SetParameter(New RParameter("Elev", 4))
ucrInputElevation.AddQuotesIfUnrecognised = False
ucrInputElevation.SetLinkedDisplayControl(lblLatitude)
ucrInputElevation.SetValidationTypeAsNumeric()
ucrInputElevation.SetRDefault("0")

bControlsInitialised = True
Expand Down Expand Up @@ -117,6 +120,11 @@ Public Class sdgLocation

Private Sub ucrInputElevation_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrInputElevation.ControlValueChanged
EnableDesableSelector()
If Not ucrInputElevation.IsEmpty Then
clsListFunction.AddParameter("Elev", ucrInputElevation.GetText(), iPosition:=4)
Else
clsListFunction.RemoveParameterByName("Elev")
End If
End Sub

Private Sub ucrSelectorLocation_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrSelectorLocation.ControlValueChanged
Expand All @@ -125,9 +133,14 @@ Public Class sdgLocation

Private Sub ucrInputLatitude_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrInputLatitude.ControlValueChanged
EnableDesableSelector()
If Not ucrInputLatitude.IsEmpty Then
clsListFunction.AddParameter("lat_rad", ucrInputLatitude.GetText(), iPosition:=1)
Else
clsListFunction.RemoveParameterByName("lat_rad")
End If
End Sub

Private Sub ucrInputLongitude_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrInputLongitude.ControlValueChanged
Private Sub ucrReceiverLatitude_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrReceiverLatitude.ControlValueChanged
EnableDesableSelector()
End Sub
End Class
Loading
Loading