Skip to content

Commit

Permalink
Merge pull request IDEMSInternational#9030 from Vitalis95/epicsa2
Browse files Browse the repository at this point in the history
Improving Climatic .> File> Export to Google Bucket dialog
  • Loading branch information
N-thony authored Jun 27, 2024
2 parents 38a8628 + e6e7a07 commit a8396c0
Show file tree
Hide file tree
Showing 4 changed files with 1,163 additions and 1,085 deletions.
70 changes: 6 additions & 64 deletions instat/dlgExportClimaticDefinitions.Designer.vb

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

24 changes: 1 addition & 23 deletions instat/dlgExportClimaticDefinitions.vb
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,6 @@ Public Class dlgExportClimaticDefinitions
ucrReceiverCropData.strSelectorHeading = "Data Sets"
ucrReceiverCropData.SetLinkedDisplayControl(lblCropData)

ucrReceiverMinTemp.SetParameter(New RParameter("tmin", 4))
ucrReceiverMinTemp.Selector = ucrSelectorExportDefinitions
ucrReceiverMinTemp.SetParameterIsString()
ucrReceiverMinTemp.SetLinkedDisplayControl(lblMinTemp)

ucrReceiverMaxTemp.SetParameter(New RParameter("tmax", 5))
ucrReceiverMaxTemp.Selector = ucrSelectorExportDefinitions
ucrReceiverMaxTemp.SetParameterIsString()
ucrReceiverMaxTemp.SetLinkedDisplayControl(lblMaxTemp)

ucrReceiverRain.SetParameter(New RParameter("rain", 6))
ucrReceiverRain.Selector = ucrSelectorExportDefinitions
ucrReceiverRain.SetParameterIsString()
Expand Down Expand Up @@ -189,8 +179,6 @@ Public Class dlgExportClimaticDefinitions
ucrReceiverData.SetRCode(clsExportRinstatToBucketFunction, bReset)
ucrReceiverDataYear.SetRCode(clsExportRinstatToBucketFunction, bReset)
ucrReceiverDataYearMonth.SetRCode(clsExportRinstatToBucketFunction, bReset)
ucrReceiverMaxTemp.SetRCode(clsExportRinstatToBucketFunction, bReset)
ucrReceiverMinTemp.SetRCode(clsExportRinstatToBucketFunction, bReset)
ucrReceiverMonth.SetRCode(clsExportRinstatToBucketFunction, bReset)
ucrReceiverRain.SetRCode(clsExportRinstatToBucketFunction, bReset)
ucrReceiverYear.SetRCode(clsExportRinstatToBucketFunction, bReset)
Expand Down Expand Up @@ -227,19 +215,13 @@ Public Class dlgExportClimaticDefinitions
ElseIf ucrChkAnnualRainfall.Checked AndAlso
Not ucrReceiverRain.IsEmpty Then
ucrBase.OKEnabled(True)
ElseIf (ucrChkAnnualTemp.Checked OrElse ucrChkMonthlyTemp.Checked) AndAlso
Not ucrReceiverMinTemp.IsEmpty Then
ucrBase.OKEnabled(True)
ElseIf (ucrChkAnnualRainfall.Checked OrElse ucrChkAnnualTemp.Checked) AndAlso
Not ucrReceiverDataYear.IsEmpty Then
ucrBase.OKEnabled(True)
ElseIf ucrChkMonthlyTemp.Checked AndAlso
Not ucrReceiverMonth.IsEmpty AndAlso
Not ucrReceiverDataYearMonth.IsEmpty Then
ucrBase.OKEnabled(True)
ElseIf (ucrChkAnnualTemp.Checked OrElse ucrChkMonthlyTemp.Checked) AndAlso
Not ucrReceiverMaxTemp.IsEmpty Then
ucrBase.OKEnabled(True)
Else
ucrBase.OKEnabled(False)
End If
Expand Down Expand Up @@ -360,13 +342,10 @@ Public Class dlgExportClimaticDefinitions
End Sub

Private Sub EnableDisableDefineButton()
cmdDefine.Enabled = ucrChkIncludeSummaryData.Checked AndAlso (ucrChkAnnualRainfall.Checked OrElse ucrChkAnnualTemp.Checked OrElse ucrChkCropSuccessProp.Checked OrElse ucrChkExtremes.Checked OrElse ucrChkMonthlyTemp.Checked OrElse ucrChkSeasonStartProp.Checked)
ucrReceiverDataYearMonth.Visible = ucrChkMonthlyTemp.Checked
ucrReceiverDataYear.Visible = ucrChkAnnualRainfall.Checked OrElse ucrChkAnnualTemp.Checked
ucrReceiverRain.Visible = ucrChkAnnualRainfall.Checked
ucrReceiverCropData.Visible = ucrChkCropSuccessProp.Checked OrElse ucrChkSeasonStartProp.Checked
ucrReceiverMaxTemp.Visible = ucrChkMonthlyTemp.Checked OrElse ucrChkAnnualTemp.Checked
ucrReceiverMinTemp.Visible = ucrChkMonthlyTemp.Checked OrElse ucrChkAnnualTemp.Checked

End Sub

Expand All @@ -388,8 +367,7 @@ Public Class dlgExportClimaticDefinitions

End Sub

Private Sub ucrReceiverData_ControlContentsChanged(ucrChangedControl As ucrCore) Handles ucrReceiverData.ControlContentsChanged, ucrReceiverRain.ControlContentsChanged,
ucrReceiverMaxTemp.ControlContentsChanged, ucrReceiverMinTemp.ControlContentsChanged, ucrReceiverCropData.ControlContentsChanged, ucrReceiverDataYearMonth.ControlContentsChanged, ucrReceiverDataYear.ControlContentsChanged,
Private Sub ucrReceiverData_ControlContentsChanged(ucrChangedControl As ucrCore) Handles ucrReceiverData.ControlContentsChanged, ucrReceiverRain.ControlContentsChanged, ucrReceiverCropData.ControlContentsChanged, ucrReceiverDataYearMonth.ControlContentsChanged, ucrReceiverDataYear.ControlContentsChanged,
ucrReceiverMonth.ControlContentsChanged, ucrReceiverYear.ControlContentsChanged, ucrChkSeasonStartProp.ControlContentsChanged, ucrInputCountry.ControlContentsChanged, ucrInputStationID.ControlContentsChanged, ucrInputDefinitionsID.ControlContentsChanged, ucrChkIncludeSummaryData.ControlContentsChanged,
ucrChkMonthlyTemp.ControlContentsChanged, ucrChkCropSuccessProp.ControlContentsChanged, ucrChkAnnualTemp.ControlContentsChanged, ucrChkAnnualRainfall.ControlContentsChanged, ucrInputTokenPath.ControlContentsChanged, ucrSelectorExportDefinitions.ControlContentsChanged
TestOkEnabled()
Expand Down
Loading

0 comments on commit a8396c0

Please sign in to comment.