Skip to content

Commit

Permalink
Merge pull request #116 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
updating branch
  • Loading branch information
anastasia-mbithe authored Feb 14, 2023
2 parents 08d869d + c1cf2fc commit 0366a6d
Show file tree
Hide file tree
Showing 17 changed files with 694 additions and 569 deletions.
15 changes: 15 additions & 0 deletions instat/UserControls/DataGrid/ReoGrid/ucrColumnMetadataReoGrid.vb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ Public Class ucrColumnMetadataReoGrid
rngDataRange = New RangePosition(0, 0, grdData.CurrentWorksheet.Rows, grdData.CurrentWorksheet.Columns)
grdData.CurrentWorksheet.SetRangeDataFormat(rngDataRange, DataFormat.CellDataFormatFlag.Text)

Dim iColumnIndex As Integer = GetColumnIndex("Signif_Figures")
For i = 0 To grdData.CurrentWorksheet.Rows - 1
For j = 0 To grdData.CurrentWorksheet.Columns - 1
grdData.CurrentWorksheet(row:=i, col:=j) = columnMetaData.Data(i, j)
If grdData.CurrentWorksheet.Item(row:=i, col:=j) = "list" AndAlso iColumnIndex >= 0 Then
grdData.CurrentWorksheet.GetCell(row:=i, col:=iColumnIndex).IsReadOnly = True
End If
Next
grdData.CurrentWorksheet.RowHeaders.Item(i).Text = columnMetaData.strRowName(i)
Next
Expand All @@ -60,6 +64,17 @@ Public Class ucrColumnMetadataReoGrid
End If
End Sub

Private Function GetColumnIndex(strColName As String) As Integer
If grdData.CurrentWorksheet IsNot Nothing Then
For i As Integer = 0 To grdData.CurrentWorksheet.Columns - 1
If grdData.CurrentWorksheet.ColumnHeaders(i).Text = strColName Then
Return i
End If
Next
End If
Return -1
End Function

Public Function GetSelectedColumns() As List(Of String) Implements IColumnMetaDataGrid.GetSelectedColumns
Dim lstColumns As New List(Of String)
Dim clsGridRangePosition As RangePosition = grdData.CurrentWorksheet.SelectionRange
Expand Down
167 changes: 107 additions & 60 deletions instat/dlgBoxPlot.designer.vb

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions instat/dlgBoxPlot.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="contextMenuStripOptions.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
250 changes: 141 additions & 109 deletions instat/dlgBoxPlot.vb

Large diffs are not rendered by default.

176 changes: 97 additions & 79 deletions instat/dlgCorrelation.designer.vb

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

Loading

0 comments on commit 0366a6d

Please sign in to comment.