Skip to content

Commit

Permalink
Merge pull request #168 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
fetching latest copy
  • Loading branch information
maxwellfundi authored Nov 1, 2016
2 parents ed3fc66 + a45a494 commit ceebe70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion instat/dlgFromLibrary.vb
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,17 @@ Public Class dlgFromLibrary
ucrBase.clsRsyntax.SetAssignTo(chkString(lstCollection.SelectedItems(0).SubItems(0).Text), strTempDataframe:=chkString(lstCollection.SelectedItems(0).SubItems(0).Text))
ucrBase.clsRsyntax.AddParameter("x", chkString(lstCollection.SelectedItems(0).SubItems(0).Text))
clsDataFunction.AddParameter("X", chkString(lstCollection.SelectedItems(0).SubItems(0).Text))

TestOkEnabled()
End Sub

Private Sub TestOkEnabled()
If rdoDefaultDatasets.Checked AndAlso lstCollection.SelectedItems.Count > 0 OrElse rdoInstatCollection.Checked Then
If rdoDefaultDatasets.Checked AndAlso lstCollection.SelectedItems.Count > 0 Then
ucrBase.OKEnabled(True)
Else
ucrBase.OKEnabled(False)
End If

EnableHelp()
End Sub

Expand Down Expand Up @@ -173,4 +175,5 @@ Public Class dlgFromLibrary
cmdHelp.Enabled = False
End If
End Sub

End Class

0 comments on commit ceebe70

Please sign in to comment.