Skip to content

Commit

Permalink
Merge pull request #321 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
merge from main
  • Loading branch information
dannyparsons authored Sep 15, 2016
2 parents 0077688 + 7e5a3ed commit d9fbc56
Show file tree
Hide file tree
Showing 66 changed files with 714 additions and 988 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,21 @@ FakesAssemblies/
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml
/packages/unvell.ReoGrid.dll.1.2.3.0/tools/install.ps1
/packages/unvell.ReoGrid.dll.1.2.3.0/tools
/packages/unvell.ReoGrid.dll.1.2.3.0/lib/20/unvell.ReoGrid.XML
/packages/unvell.ReoGrid.dll.1.2.3.0/lib/20/unvell.ReoGrid.dll
/packages/unvell.ReoGrid.dll.1.2.3.0/lib/20
/packages/unvell.ReoGrid.dll.1.2.3.0
/packages/R.NET.Community.1.6.5/lib/net40/RDotNet.XML
/packages/R.NET.Community.1.6.5/lib/net40/RDotNet.NativeLibrary.XML
/packages/R.NET.Community.1.6.5/lib/net40/RDotNet.NativeLibrary.dll
/packages/R.NET.Community.1.6.5/lib/net40/RDotNet.dll
/packages/R.NET.Community.1.6.5/lib/net40
/packages/R.NET.1.5.5/lib/net40/RDotNet.XML
/packages/R.NET.1.5.5/lib/net40/RDotNet.NativeLibrary.XML
/packages/R.NET.1.5.5/lib/net40/RDotNet.NativeLibrary.dll
/packages/R.NET.1.5.5/lib/net40/RDotNet.dll
/packages/R.NET.1.5.5/lib/net40
/packages/DynamicInterop.0.7.4/lib/net40/DynamicInterop.xml
/packages/DynamicInterop.0.7.4/lib/net40/DynamicInterop.dll
98 changes: 50 additions & 48 deletions instat/dlgAppend.Designer.vb

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

35 changes: 23 additions & 12 deletions instat/dlgAppend.vb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Imports instat.Translations
Public Class dlgAppend
Public bFirstLoad As Boolean = True

Private Sub dlgAppend_Load(sender As Object, e As EventArgs) Handles MyBase.Load
autoTranslate(Me)

Expand All @@ -34,60 +35,70 @@ Public Class dlgAppend
ucrBase.clsRsyntax.SetFunction("bind_rows")
ucrReceiverAppendDataframe.SetItemType("dataframe")
ucrInputIDColName.SetValidationTypeAsRVariable()

ucrInputNewDataframeName.SetValidationTypeAsRVariable()
End Sub

Private Sub TestOKEnabled()
If ucrReceiverAppendDataframe.IsEmpty = False Then
ucrBase.OKEnabled(True)
If Not ucrReceiverAppendDataframe.IsEmpty AndAlso Not ucrInputNewDataframeName.IsEmpty Then
If chkIncludeIDColumn.Checked AndAlso ucrInputIDColName.IsEmpty Then
ucrBase.OKEnabled(False)
Else
ucrBase.OKEnabled(True)
End If
Else
ucrBase.OKEnabled(False)
End If
End Sub

Private Sub SetDefaults()
ucrSelectorDataframes.Reset()
ucrInputIDColName.SetName("ID_Col")
ucrInputNewDataframeName.ResetText()
ucrInputIDColName.ResetText()
ucrInputIDColName.SetName("id")
ucrInputNewDataframeName.SetName("Append")
chkIncludeIDColumn.Checked = False
TestOKEnabled()
End Sub

Private Sub ReopenDialog()

Private Sub ReopenDialog()
End Sub

Private Sub ucrBase_ClickReset(sender As Object, e As EventArgs) Handles ucrBase.ClickReset
SetDefaults()
TestOKEnabled()
End Sub

Private Sub ucrReceiverAppendDataframe_SelectionChanged(sender As Object, e As EventArgs) Handles ucrReceiverAppendDataframe.SelectionChanged
If ucrReceiverAppendDataframe.IsEmpty = False Then
ucrBase.clsRsyntax.AddParameter("x", clsRFunctionParameter:=ucrReceiverAppendDataframe.GetVariables)
ucrBase.clsRsyntax.AddParameter("x", clsRFunctionParameter:=ucrReceiverAppendDataframe.GetVariables, bIncludeArgumentName:=False)
Else
ucrBase.clsRsyntax.RemoveParameter("x")
End If
TestOKEnabled()
End Sub

Private Sub chkIncludeIDColumn_CheckedChanged(sender As Object, e As EventArgs) Handles chkIncludeIDColumn.CheckedChanged
includeIDColumn()
IncludeIDColumn()
End Sub

Private Sub ucrInputIDColName_NameChanged() Handles ucrInputIDColName.NameChanged
includeIDColumn()
IncludeIDColumn()
End Sub

Private Sub includeIDColumn()
Private Sub IncludeIDColumn()
If chkIncludeIDColumn.Checked Then
ucrBase.clsRsyntax.AddParameter(".id", Chr(34) & ucrInputIDColName.GetText & Chr(34))
ucrInputIDColName.Visible = True
lblIDColNAme.Visible = True
Else
ucrBase.clsRsyntax.RemoveParameter(".id")
ucrInputIDColName.Visible = False
lblIDColNAme.Visible = False
End If
TestOKEnabled()
End Sub

Private Sub ucrInputNewDataframeName_NameChanged() Handles ucrInputNewDataframeName.NameChanged
ucrBase.clsRsyntax.SetAssignTo(ucrInputNewDataframeName.GetText(), strTempDataframe:=ucrInputNewDataframeName.GetText())
TestOKEnabled()
End Sub

End Class
2 changes: 2 additions & 0 deletions instat/dlgColourbyProperty.Designer.vb

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

2 changes: 2 additions & 0 deletions instat/dlgColumnMetadata.Designer.vb

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

3 changes: 3 additions & 0 deletions instat/dlgColumnStructures.Designer.vb

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

5 changes: 5 additions & 0 deletions instat/dlgCombine.Designer.vb

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

2 changes: 2 additions & 0 deletions instat/dlgContrasts.Designer.vb

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

4 changes: 4 additions & 0 deletions instat/dlgConvertColumns.Designer.vb

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

Loading

0 comments on commit d9fbc56

Please sign in to comment.