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

Ensured that button toggles from "Select All" To "Deselect All" in Factors sub-dialog #7859

Merged
Merged
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
8 changes: 5 additions & 3 deletions instat/sdgFiltersFromFactor.vb
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,16 @@ 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)
End Sub

Private Sub ucrSelectorFiltersFromFactors_DataFrameChanged() Handles ucrSelectorFiltersFromFactors.DataFrameChanged
Expand Down