From a296b3b9a85c2ec6f628f7a8843b05a99ae363f6 Mon Sep 17 00:00:00 2001 From: patowhiz Date: Thu, 8 Sep 2022 15:35:35 +0300 Subject: [PATCH 1/2] filter from factors --- instat/sdgFiltersFromFactor.vb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/instat/sdgFiltersFromFactor.vb b/instat/sdgFiltersFromFactor.vb index d667caff668..862d9bfcb2f 100644 --- a/instat/sdgFiltersFromFactor.vb +++ b/instat/sdgFiltersFromFactor.vb @@ -82,14 +82,17 @@ Public Class sdgFiltersFromFactor Private Sub ucrReceiverFactor_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrReceiverFactor.ControlValueChanged cmdSelectAll.Enabled = Not ucrReceiverFactor.IsEmpty + End Sub + + Private Sub ucrFactorLevels_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrFactorLevels.ControlValueChanged If ucrFactorLevels.IsAllGridRowsSelected() Then - cmdSelectAll.Text = "Deselect All Levels" + cmdSelectAll.Text = Translations.GetTranslation("Deselect All Levels") cmdSelectAll.FlatStyle = FlatStyle.Flat Else - cmdSelectAll.Text = "Select All Levels" + cmdSelectAll.Text = Translations.GetTranslation("Select All Levels") cmdSelectAll.FlatStyle = FlatStyle.Popup End If - autoTranslate(Me) + 'autoTranslate(Me) End Sub Private Sub ucrSelectorFiltersFromFactors_DataFrameChanged() Handles ucrSelectorFiltersFromFactors.DataFrameChanged From a3a54d15058a1d46a23fc319649537e0da6a8dbf Mon Sep 17 00:00:00 2001 From: patowhiz Date: Sun, 11 Sep 2022 20:17:58 +0300 Subject: [PATCH 2/2] Update instat/sdgFiltersFromFactor.vb Co-authored-by: lloyddewit <57253949+lloyddewit@users.noreply.github.com> --- instat/sdgFiltersFromFactor.vb | 1 - 1 file changed, 1 deletion(-) diff --git a/instat/sdgFiltersFromFactor.vb b/instat/sdgFiltersFromFactor.vb index 862d9bfcb2f..5db1fa06ae4 100644 --- a/instat/sdgFiltersFromFactor.vb +++ b/instat/sdgFiltersFromFactor.vb @@ -92,7 +92,6 @@ Public Class sdgFiltersFromFactor cmdSelectAll.Text = Translations.GetTranslation("Select All Levels") cmdSelectAll.FlatStyle = FlatStyle.Popup End If - 'autoTranslate(Me) End Sub Private Sub ucrSelectorFiltersFromFactors_DataFrameChanged() Handles ucrSelectorFiltersFromFactors.DataFrameChanged