Skip to content

Commit

Permalink
changes to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalis95 committed Jan 30, 2024
1 parent 610660a commit adf7e24
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 33 deletions.
13 changes: 5 additions & 8 deletions instat/dlgBarAndPieChart.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1110,16 +1110,13 @@ Public Class dlgBarAndPieChart
End Sub

Private Sub AutoFacetStation()
Dim ucrCurrentReceiver As ucrReceiver = Nothing
Dim currentReceiver As ucrReceiver = ucrBarChartSelector.CurrentReceiver

If ucrBarChartSelector.CurrentReceiver IsNot Nothing Then
ucrCurrentReceiver = ucrBarChartSelector.CurrentReceiver
If currentReceiver IsNot Nothing Then
ucr1stFactorReceiver.AddItemsWithMetadataProperty(ucrBarChartSelector.ucrAvailableDataFrames.cboAvailableDataFrames.Text, "Climatic_Type", {"station_label"})
currentReceiver.SetMeAsReceiver()
AddRemoveGroupBy()
End If
ucr1stFactorReceiver.AddItemsWithMetadataProperty(ucrBarChartSelector.ucrAvailableDataFrames.cboAvailableDataFrames.Text, "Climatic_Type", {"station_label"})
If ucrCurrentReceiver IsNot Nothing Then
ucrCurrentReceiver.SetMeAsReceiver()
End If
AddRemoveGroupBy()
End Sub

Private Sub ucrInput_ControlValueChanged(ucrChangedControl As ucrInputComboBox) Handles ucrInputStation.ControlValueChanged
Expand Down
13 changes: 5 additions & 8 deletions instat/dlgHistogram.vb
Original file line number Diff line number Diff line change
Expand Up @@ -568,16 +568,13 @@ Public Class dlgHistogram
End Sub

Private Sub AutoFacetStation()
Dim ucrCurrentReceiver As ucrReceiver = Nothing
Dim currentReceiver As ucrReceiver = ucrHistogramSelector.CurrentReceiver

If ucrHistogramSelector.CurrentReceiver IsNot Nothing Then
ucrCurrentReceiver = ucrHistogramSelector.CurrentReceiver
If currentReceiver IsNot Nothing Then
ucr1stFactorReceiver.AddItemsWithMetadataProperty(ucrHistogramSelector.ucrAvailableDataFrames.cboAvailableDataFrames.Text, "Climatic_Type", {"station_label"})
currentReceiver.SetMeAsReceiver()
AddRemoveGroupBy()
End If
ucr1stFactorReceiver.AddItemsWithMetadataProperty(ucrHistogramSelector.ucrAvailableDataFrames.cboAvailableDataFrames.Text, "Climatic_Type", {"station_label"})
If ucrCurrentReceiver IsNot Nothing Then
ucrCurrentReceiver.SetMeAsReceiver()
End If
AddRemoveGroupBy()
End Sub

Private Sub ucrInput_ControlValueChanged(ucrChangedControl As ucrInputComboBox) Handles ucrInputStation.ControlValueChanged
Expand Down
14 changes: 5 additions & 9 deletions instat/dlgLinePlot.vb
Original file line number Diff line number Diff line change
Expand Up @@ -959,18 +959,14 @@ Public Class dlgLinePlot
End Sub

Private Sub AutoFacetStation()
Dim ucrCurrentReceiver As ucrReceiver = Nothing
Dim currentReceiver As ucrReceiver = ucrLinePlotSelector.CurrentReceiver

If ucrLinePlotSelector.CurrentReceiver IsNot Nothing Then
ucrCurrentReceiver = ucrLinePlotSelector.CurrentReceiver
If currentReceiver IsNot Nothing Then
ucr1stFactorReceiver.AddItemsWithMetadataProperty(ucrLinePlotSelector.ucrAvailableDataFrames.cboAvailableDataFrames.Text, "Climatic_Type", {"station_label"})
currentReceiver.SetMeAsReceiver()
AddRemoveGroupBy()
End If
ucr1stFactorReceiver.AddItemsWithMetadataProperty(ucrLinePlotSelector.ucrAvailableDataFrames.cboAvailableDataFrames.Text, "Climatic_Type", {"station_label"})
If ucrCurrentReceiver IsNot Nothing Then
ucrCurrentReceiver.SetMeAsReceiver()
End If
AddRemoveGroupBy()
End Sub

Private Sub ucrInput_ControlValueChanged(ucrChangedControl As ucrInputComboBox) Handles ucrInputStation.ControlValueChanged
If Not bUpdateComboOptions Then
Exit Sub
Expand Down
13 changes: 5 additions & 8 deletions instat/dlgScatterPlot.vb
Original file line number Diff line number Diff line change
Expand Up @@ -582,16 +582,13 @@ Public Class dlgScatterPlot
End Sub

Private Sub AutoFacetStation()
Dim ucrCurrentReceiver As ucrReceiver = Nothing
Dim currentReceiver As ucrReceiver = ucrSelectorForScatter.CurrentReceiver

If ucrSelectorForScatter.CurrentReceiver IsNot Nothing Then
ucrCurrentReceiver = ucrSelectorForScatter.CurrentReceiver
If currentReceiver IsNot Nothing Then
ucr1stFactorReceiver.AddItemsWithMetadataProperty(ucrSelectorForScatter.ucrAvailableDataFrames.cboAvailableDataFrames.Text, "Climatic_Type", {"station_label"})
currentReceiver.SetMeAsReceiver()
AddRemoveGroupBy()
End If
ucr1stFactorReceiver.AddItemsWithMetadataProperty(ucrSelectorForScatter.ucrAvailableDataFrames.cboAvailableDataFrames.Text, "Climatic_Type", {"station_label"})
If ucrCurrentReceiver IsNot Nothing Then
ucrCurrentReceiver.SetMeAsReceiver()
End If
AddRemoveGroupBy()
End Sub

Private Sub ucrInput_ControlValueChanged(ucrChangedControl As ucrInputComboBox) Handles ucrInputStation.ControlValueChanged
Expand Down

0 comments on commit adf7e24

Please sign in to comment.