Skip to content

Commit

Permalink
Change made
Browse files Browse the repository at this point in the history
  • Loading branch information
MeSophie committed Oct 24, 2024
1 parent 28b82ed commit 2ce7e1b
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions instat/dlgStartofRains.vb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ Public Class dlgStartofRains
Private strWetSpell As String = "wet_spell"
Private strFactionEvap As String = "fraction_evap"
Private strSumFractionEvap As String = "roll_sum_evap"
'Private strRollSumRainDryPeriod As String = "roll_sum_rain_dry_period"

Private Sub dlgStartofRains_Load(sender As Object, e As EventArgs) Handles MyBase.Load
If bFirstLoad Then
Expand Down Expand Up @@ -240,6 +239,14 @@ Public Class dlgStartofRains
Dim strRollSumRainDryPeriod As String = "roll_sum_rain_dry_period"
Dim strYearType As String = "year_type"

clsRainRollingSumFunction = New RFunction
clsGetlinkeddataFunction = New RFunction
clsVectorFunction = New RFunction
clsGetDataFrameFunction = New RFunction
clsDayFilterCalcFromConvert = New RFunction
clsDayFilterCalcFromList = New RFunction
clsDummyFunction = New RFunction

clsDayFromAndTo.Clear()
clsDayFromAndToOperator.Clear()
clsGroupByStation.Clear()
Expand Down Expand Up @@ -297,10 +304,6 @@ Public Class dlgStartofRains
clsIsNaFirstDryPeriod.Clear()

clsCalcRainRollingSum.Clear()
clsRainRollingSumFunction = New RFunction
clsGetlinkeddataFunction = New RFunction
clsVectorFunction = New RFunction
clsGetDataFrameFunction = New RFunction
clsTRWetSpellList.Clear()
clsTRWetSpell.Clear()
clsTRWetSpellFunction.Clear()
Expand Down Expand Up @@ -339,13 +342,11 @@ Public Class dlgStartofRains
bResetSubdialog = True
ucrSelectorForStartofRains.Reset()

clsDayFilterCalcFromConvert = New RFunction
clsDayFilterCalcFromConvert.SetRCommand("calc_from_convert")
clsDayFilterCalcFromList = New RFunction

clsDayFilterCalcFromList.SetRCommand("list")
clsDayFilterCalcFromConvert.AddParameter("x", clsRFunctionParameter:=clsDayFilterCalcFromList, iPosition:=0)

clsDummyFunction = New RFunction
clsDummyFunction.AddParameter("sub2", "True", iPosition:=0)
clsDummyFunction.AddParameter("sub3", "True", iPosition:=1)
clsDummyFunction.AddParameter("additional", "False", iPosition:=2)
Expand Down Expand Up @@ -1078,11 +1079,7 @@ Public Class dlgStartofRains
End Sub

Private Sub AdditionalCondition()
If ucrChkAdditional.Checked Then
cmdAdditionnal.Visible = True
Else
cmdAdditionnal.Visible = False
End If
cmdAdditionnal.Visible = ucrChkAdditional.Checked
End Sub

Private Sub ucrChkAdditional_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrChkAdditional.ControlValueChanged
Expand Down

0 comments on commit 2ce7e1b

Please sign in to comment.