Skip to content

Commit

Permalink
Merge pull request IDEMSInternational#1668 from Lunalo/master
Browse files Browse the repository at this point in the history
Editing dlgColourByProperty
  • Loading branch information
dannyparsons authored Sep 1, 2016
2 parents c3b8edc + 9a2c078 commit 53fd6a2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
13 changes: 13 additions & 0 deletions instat/dlgColourbyProperty.Designer.vb

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

14 changes: 13 additions & 1 deletion instat/dlgColourbyProperty.vb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ Public Class dlgColourbyProperty
End Sub

Private Sub TestOKEnabled()
If Not ucrReceiverMetadataProperty.IsEmpty Then
If Not ucrReceiverMetadataProperty.IsEmpty OrElse chkRemoveColours.Checked Then
ucrBase.OKEnabled(True)

Else
ucrBase.OKEnabled(False)
End If
Expand All @@ -64,4 +65,15 @@ Public Class dlgColourbyProperty
End If
TestOKEnabled()
End Sub

Private Sub chkRemoveColours_CheckedChanged(sender As Object, e As EventArgs) Handles chkRemoveColours.CheckedChanged
If chkRemoveColours.Checked Then
ucrSelectorColourByMetadata.Reset()
ucrReceiverMetadataProperty.Enabled = False
Else
ucrReceiverMetadataProperty.Enabled = True

End If
TestOKEnabled()
End Sub
End Class

0 comments on commit 53fd6a2

Please sign in to comment.