Skip to content

Commit

Permalink
Merge pull request #5 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
getting latest version
  • Loading branch information
Lunalo authored Nov 8, 2016
2 parents 25588a3 + fd0dc17 commit 1cfea1f
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 155 deletions.
50 changes: 33 additions & 17 deletions instat/dlgMakeDate.vb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ Public Class dlgMakeDate
ucrInputDay.SetName("%d (1-31)")
ucrInputComboBoxMonthTwo.SetName("365/366")
ucrInputOrigin.SetName("30-12-1899 (Excel)")
grpFormatField.Visible = False
ucrInputOrigin.Visible = False
ucrInputNewColumnName.SetPrefix("Date")
TestOKEnabled()
Expand All @@ -73,10 +72,24 @@ Public Class dlgMakeDate
rdoDefaultFormat.Checked = True
chkTwoDigitYearThree.Checked = False
chkTwoDigitYearTwo.Checked = False
nudCutOffThree.Visible = False
nudCutOffTwo.Visible = False

lblCutOffThree.Visible = False
lblCutOffTwo.Visible = False
'Disabling the check boxes, Input,... which are yet to be Implemented.
'To be return to how it was prev...
chkTwoDigitYearThree.Enabled = False
chkTwoDigitYearTwo.Enabled = False
nudCutOffThree.Visible = True
nudCutOffTwo.Visible = True
nudCutOffThree.Enabled = False
nudCutOffTwo.Enabled = False
chkMore.Enabled = False
lblCutOffTwo.Visible = True
lblCutOffThree.Visible = True
lblCutOffThree.Enabled = False
lblCutOffTwo.Enabled = False
ucrInputComboBoxMonthTwo.Enabled = False

End Sub

Private Sub TestOKEnabled()
Expand Down Expand Up @@ -155,26 +168,29 @@ Public Class dlgMakeDate
Else
ucrBase.clsRsyntax.RemoveParameter("origin")
End If
'to be removed later
grpFormatField.Visible = True
grpFormatField.Enabled = False
TestOKEnabled()
End Sub

Private Sub chkMore_CheckedChanged(sender As Object, e As EventArgs) Handles chkMore.CheckedChanged, chkTwoDigitYearThree.CheckedChanged, chkTwoDigitYearTwo.CheckedChanged
Formats()
If chkTwoDigitYearTwo.Checked Then
lblCutOffTwo.Visible = True
nudCutOffTwo.Visible = True
Else
lblCutOffTwo.Visible = False
nudCutOffTwo.Visible = False
End If
If chkTwoDigitYearThree.Checked Then
lblCutOffThree.Visible = True
nudCutOffThree.Visible = True
Else
lblCutOffThree.Visible = False
nudCutOffThree.Visible = False
'If chkTwoDigitYearTwo.Checked Then
'lblCutOffTwo.Visible = True
'nudCutOffTwo.Visible = True
'Else
'lblCutOffTwo.Visible = False
'nudCutOffTwo.Visible = False
'End If
'If chkTwoDigitYearThree.Checked Then
'lblCutOffThree.Visible = True
'nudCutOffThree.Visible = True
'Else
'lblCutOffThree.Visible = False
'nudCutOffThree.Visible = False

End If
'End If
End Sub

Private Sub ucrInputSpecifyDates_NameChanged() Handles ucrInputFormat.NameChanged
Expand Down
64 changes: 35 additions & 29 deletions instat/dlgOneSample.Designer.vb

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

Loading

0 comments on commit 1cfea1f

Please sign in to comment.