Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #84

Merged
merged 142 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
ea75c12
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 18, 2023
063435e
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 18, 2023
7fd0933
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 18, 2023
f2faa41
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 18, 2023
db558f6
New translations r_instat_menus.json (Portuguese)
dannyparsons Jun 19, 2023
4c7f1a0
New translations r_instat_not_menus.json (Portuguese)
dannyparsons Jun 19, 2023
c46bf62
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 19, 2023
d767089
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 19, 2023
647517e
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 19, 2023
7f8a15d
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 19, 2023
d5fa496
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 19, 2023
00bb923
Merge pull request #151 from africanmathsinitiative/master
Vitalis95 Jun 20, 2023
5d92811
New translations r_instat_not_menus.json (Portuguese)
dannyparsons Jun 20, 2023
bf65e2b
New translations r_instat_not_menus.json (Portuguese)
dannyparsons Jun 20, 2023
5c50bf6
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 20, 2023
3f7cd08
New translations r_instat_not_menus.json (French)
dannyparsons Jun 20, 2023
d107332
New translations r_instat_not_menus.json (Italian)
dannyparsons Jun 20, 2023
8e5f15e
New translations r_instat_not_menus.json (Portuguese)
dannyparsons Jun 20, 2023
3d1d386
New translations r_instat_not_menus.json (Russian)
dannyparsons Jun 20, 2023
e40af44
New translations r_instat_not_menus.json (Swahili)
dannyparsons Jun 20, 2023
53b31e7
Update source file r_instat_not_menus.json
dannyparsons Jun 20, 2023
71994c8
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 21, 2023
37c4400
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 21, 2023
2277d14
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 21, 2023
17f9f5c
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 21, 2023
9b2ad41
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 21, 2023
b32cff4
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 21, 2023
85c738a
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 21, 2023
4977cd5
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 21, 2023
1b2648a
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 21, 2023
5301c88
Merge pull request #407 from africanmathsinitiative/master
conlooptechnologies Jun 22, 2023
ae504cc
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 22, 2023
45a4e22
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 22, 2023
507846a
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 22, 2023
bbe8aae
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 22, 2023
3928cc2
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 22, 2023
3f6352b
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 26, 2023
165c514
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 26, 2023
dff6f4d
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 26, 2023
c36e7e6
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 26, 2023
0e4aaea
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 27, 2023
ba04ef6
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 27, 2023
6b31138
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 27, 2023
3ae803e
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 27, 2023
8d1055b
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 27, 2023
b76e24f
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 27, 2023
ca956e7
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 27, 2023
c8f127e
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 27, 2023
7e21bed
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 28, 2023
d08e43d
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 28, 2023
bc7afde
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 28, 2023
e0b7521
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 28, 2023
de84ccf
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 28, 2023
ec00582
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 28, 2023
e3ac9c0
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 28, 2023
5753e90
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 28, 2023
230a333
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 28, 2023
69df1d0
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 28, 2023
2649e0e
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 28, 2023
cfe8ed3
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 28, 2023
3919398
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 29, 2023
da12094
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 29, 2023
91aa11a
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 29, 2023
ddd956a
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 29, 2023
99230f8
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jun 29, 2023
9946eee
fixing na_max_prop bug
lilyclements Jul 4, 2023
281385b
Merge pull request #153 from africanmathsinitiative/master
Vitalis95 Jul 5, 2023
a4a637d
changes to the code
Vitalis95 Jul 6, 2023
98b4579
Merge pull request #409 from africanmathsinitiative/master
conlooptechnologies Jul 7, 2023
eabf8d7
Implementing find in rows
N-thony Jul 9, 2023
548ac37
Design changes
N-thony Jul 9, 2023
5fdff94
Design changes
N-thony Jul 9, 2023
132a621
Minor changes
N-thony Jul 9, 2023
36cd78c
bug fix on Edit Cell
N-thony Jul 9, 2023
297b054
Minor design and code changes
N-thony Jul 10, 2023
6a428af
Minor change
N-thony Jul 10, 2023
309e249
Improved the R code and removed commented code
N-thony Jul 10, 2023
fa2f37a
Merge branch 'master' into find_row_in_grid
N-thony Jul 10, 2023
a090812
Merge pull request #410 from africanmathsinitiative/master
conlooptechnologies Jul 10, 2023
b37c796
temporary fix
conlooptechnologies Jul 10, 2023
6cbd74b
more changes
conlooptechnologies Jul 10, 2023
0daf22b
changes to the code
Vitalis95 Jul 10, 2023
5f24de3
Merge branch 'africanmathsinitiative:master' into calc_summary_bug
lilyclements Jul 10, 2023
9234021
more changes
conlooptechnologies Jul 11, 2023
847906c
remembering directory
conlooptechnologies Jul 11, 2023
b4c813b
Merge pull request #8429 from Patowhiz/saving_output_window_short_ter…
lloyddewit Jul 11, 2023
f0c8e5d
Merge pull request #8419 from lilyclements/calc_summary_bug
lloyddewit Jul 11, 2023
a4e1eee
Correct the factor variable order
MeSophie Jul 11, 2023
e31e9c2
Update instat/UserControls/DataGrid/ReoGrid/ucrDataViewReoGrid.vb
N-thony Jul 11, 2023
b7565a9
Update instat/UserControls/DataGrid/ReoGrid/ucrDataViewReoGrid.vb
N-thony Jul 11, 2023
24af09c
Update instat/UserControls/DataGrid/ReoGrid/ucrDataViewReoGrid.vb
N-thony Jul 11, 2023
2bce534
Update instat/dlgFindInVariableOrFilter.vb
N-thony Jul 11, 2023
e28f299
Update instat/UserControls/DataGrid/ReoGrid/ucrDataViewReoGrid.vb
N-thony Jul 11, 2023
560471d
Update instat/dlgFindInVariableOrFilter.vb
N-thony Jul 11, 2023
daace16
Update instat/dlgFindInVariableOrFilter.vb
N-thony Jul 11, 2023
d919999
Update instat/dlgFindInVariableOrFilter.vb
N-thony Jul 11, 2023
cae718a
Update instat/dlgFindInVariableOrFilter.vb
N-thony Jul 11, 2023
5003555
Added Fill on Geom-Ribbon
MeSophie Jul 11, 2023
0b5de96
minor change
MeSophie Jul 11, 2023
717fe6a
Resolving comments
N-thony Jul 11, 2023
1d0e464
Removed space
N-thony Jul 11, 2023
1db9aac
Update data_object_R6.R
lilyclements Jul 11, 2023
490a4d3
Minor code change
N-thony Jul 11, 2023
0e893ee
Minor change
N-thony Jul 11, 2023
d19e004
minor change
MeSophie Jul 12, 2023
72190c1
Minor change
N-thony Jul 12, 2023
3f876a3
Minor code change
N-thony Jul 12, 2023
1f69b48
Merge pull request #8433 from lilyclements/fix_8413
lloyddewit Jul 12, 2023
7cc344c
Merge pull request #8432 from MeSophie/GeomRibon8428
lloyddewit Jul 12, 2023
e700d25
Revert the code and minor chnages
N-thony Jul 12, 2023
4487f4b
Variable renaming and added comments
N-thony Jul 12, 2023
5afd4de
Update instat/dlgThreeVariablePivotTable.vb
MeSophie Jul 12, 2023
d4d106d
minor change
MeSophie Jul 12, 2023
1fa8c68
Update instat/dlgFindInVariableOrFilter.vb
lloyddewit Jul 12, 2023
1ca1431
Update instat/dlgFindInVariableOrFilter.vb
lloyddewit Jul 12, 2023
5272d29
Merge pull request #8431 from MeSophie/NewPivot8420
lloyddewit Jul 12, 2023
e64d769
Merge pull request #8424 from Vitalis95/Titleplotssdg
lloyddewit Jul 12, 2023
26d7250
Merge pull request #8426 from N-thony/find_row_in_grid
lloyddewit Jul 12, 2023
ec4e4c5
recreated form_controls table
lloyddewit Jul 13, 2023
d91ccc1
minor change
MeSophie Jul 13, 2023
9038982
Recreated form_controls table and English JSON file
lloyddewit Jul 13, 2023
5a4c092
Merge pull request #8436 from lloyddewit/translationsDb0_7_16
lloyddewit Jul 13, 2023
d438024
Merge pull request #8437 from MeSophie/NewPivot8420
lloyddewit Jul 13, 2023
5640665
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jul 13, 2023
749583e
New translations r_instat_not_menus.json (French)
dannyparsons Jul 13, 2023
9f4554e
New translations r_instat_not_menus.json (Italian)
dannyparsons Jul 13, 2023
3f3a0bc
New translations r_instat_not_menus.json (Portuguese)
dannyparsons Jul 13, 2023
4bf4330
New translations r_instat_not_menus.json (Russian)
dannyparsons Jul 13, 2023
c5c9345
New translations r_instat_not_menus.json (Swahili)
dannyparsons Jul 13, 2023
b244e59
Update source file r_instat_not_menus.json
dannyparsons Jul 13, 2023
2fa381d
New translations r_instat_not_menus.json (Spanish)
dannyparsons Jul 13, 2023
0381b63
New translations r_instat_not_menus.json (French)
dannyparsons Jul 13, 2023
47f6215
New translations r_instat_not_menus.json (Italian)
dannyparsons Jul 13, 2023
3d58087
New translations r_instat_not_menus.json (Portuguese)
dannyparsons Jul 13, 2023
3995fbe
New translations r_instat_not_menus.json (Russian)
dannyparsons Jul 13, 2023
30c1b85
New translations r_instat_not_menus.json (Swahili)
dannyparsons Jul 13, 2023
16e40d5
Merge pull request #8387 from africanmathsinitiative/l10n_master
lloyddewit Jul 13, 2023
6bc1137
Merged CrowdIn changes from PR #8387 into translations table in database
lloyddewit Jul 13, 2023
249d6aa
Fixed issue #8440
lloyddewit Jul 14, 2023
c1fb8c0
Merge pull request #8438 from lloyddewit/crowdInMerge8387
lloyddewit Jul 14, 2023
65493ce
Update Download.html
ChrisMarsh82 Jul 16, 2023
0ded00e
Update Download.html
ChrisMarsh82 Jul 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/Download.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ <h3>Latest stable release 0.7.6</h3>
<p>If you know that you have a 64 bit computer, we suggest you download the 64 Bit version</p>
<hr class="light">
<h3>Other releases (beta)</h3>
<h4>0.7.16</h4>
<p>
<a href="https://downloads.r-instat.org/R-Instat_0.7.16.50_Installer_32.exe" style="color:blue;" target="_blank">32 Bit (.exe 812MB)</a> |
<a href="https://downloads.r-instat.org/R-Instat_0.7.16.50_Installer_64.exe" style="color:blue;" target="_blank">64 Bit (.exe 950MB)</a>
</p>
<h4>0.7.15</h4>
<p>
<a href="https://downloads.r-instat.org/R-Instat_0.7.15.49_Installer_32.exe" style="color:blue;" target="_blank">32 Bit (.exe 800MB)</a> |
Expand Down
9 changes: 9 additions & 0 deletions instat/Interface/IDataViewGrid.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,21 @@ Public Interface IDataViewGrid

Event WorksheetRemoved(worksheet As clsWorksheetAdapter)

Event FindRow()

Sub AddColumns(visiblePage As clsDataFramePage)

Sub AddRowData(dataFrame As clsDataFrame)

Sub SearchInGrid(rowNumbers As List(Of Integer), strColumn As String, Optional iRow As Integer = 0,
Optional bCellOrRow As Boolean = False)

Function GetSelectedColumns() As List(Of clsColumnHeaderDisplay)

Function GetFirstRowHeader() As String

Function GetLastRowHeader() As String

Function GetWorksheetCount() As Integer

End Interface
63 changes: 37 additions & 26 deletions instat/Model/Output/clsOutputLogger.vb
Original file line number Diff line number Diff line change
Expand Up @@ -77,36 +77,47 @@ Public Class clsOutputLogger
Exit Sub
End If

Dim outputType As OutputType
If String.IsNullOrEmpty(strOutput) Then
outputType = OutputType.Script
ElseIf Not bAsFile Then
outputType = OutputType.TextOutput
Else
Dim strFileExtension As String = Path.GetExtension(strOutput).ToLower
Select Case strFileExtension
Case ".png"
outputType = OutputType.ImageOutput
Case ".html"
outputType = OutputType.HtmlOutput
Case ".txt"
outputType = OutputType.TextOutput
Case Else
MessageBox.Show("The file type to be added is currently not suported",
"Developer Error",
MessageBoxButtons.OK,
MessageBoxIcon.Error)
Exit Sub
End Select
'add the R script as an output element
Dim rScriptElement As New clsOutputElement
rScriptElement.SetContent(strScript, OutputType.Script, "")
_outputElements.Add(rScriptElement)
'raise event for output pages
RaiseEvent NewOutputAdded(rScriptElement, False)


If Not String.IsNullOrEmpty(strOutput) Then
Dim outputElement As New clsOutputElement
Dim outputType As OutputType
If bAsFile Then
Dim strFileExtension As String = Path.GetExtension(strOutput).ToLower
Select Case strFileExtension
Case ".png"
outputType = OutputType.ImageOutput
Case ".html"
outputType = OutputType.HtmlOutput
Case ".txt"
outputType = OutputType.TextOutput
Case Else
MessageBox.Show("The file type to be added is currently not suported",
"Developer Error",
MessageBoxButtons.OK,
MessageBoxIcon.Error)
Exit Sub
End Select
Else
outputType = OutputType.TextOutput
End If

'add the output with it's R script as another output element
outputElement.SetContent("", outputType, strOutput)
'_outputElements.Add(outputElement)
'raise event for output pages
RaiseEvent NewOutputAdded(outputElement, bDisplayOutputInExternalViewer)

End If

Dim outputElement As New clsOutputElement
outputElement.SetContent(strScript, outputType, strOutput)

_outputElements.Add(outputElement)

'raise event for output pages
RaiseEvent NewOutputAdded(outputElement, bDisplayOutputInExternalViewer)
End Sub

''' <summary>
Expand Down
4 changes: 2 additions & 2 deletions instat/Translations.vb
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ Public Class Translations
strSqlUpdate &= "("
For iListPos As Integer = 0 To lstPatterns.Count - 1
strSqlUpdate &= If(iListPos > 0, " OR ", "")
strSqlUpdate &= "control_name LIKE '" & lstPatterns.Item(iListPos) & "'"
strSqlUpdate &= "control_name LIKE '" & lstPatterns.Item(iListPos) & "' ESCAPE '\'"
Next iListPos
strSqlUpdate &= ")"
End If
Expand All @@ -306,7 +306,7 @@ Public Class Translations
strSqlUpdate &= "NOT ("
For iListPos As Integer = 0 To lstPatternNegations.Count - 1
strSqlUpdate &= If(iListPos > 0, " OR ", "")
strSqlUpdate &= "control_name LIKE '" & lstPatternNegations.Item(iListPos) & "'"
strSqlUpdate &= "control_name LIKE '" & lstPatternNegations.Item(iListPos) & "' ESCAPE '\'"
Next iListPos
strSqlUpdate &= ")"
End If
Expand Down
66 changes: 42 additions & 24 deletions instat/UserControl/ucrOutputPage.vb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ Public Class ucrOutputPage
Public Sub AddNewOutput(outputElement As clsOutputElement, Optional bDisplayOutputInExternalViewer As Boolean = False)
'add the script first. This applies to whether the output has an output or not or
'whether it's just a script output
AddNewScript(outputElement)

'todo. temporary fix. Output element should always have an R script
If outputElement.FormattedRScript IsNot Nothing Then
AddNewScript(outputElement)
End If


'then add the output of the script if there is an output
If Not String.IsNullOrEmpty(outputElement.Output) Then
Expand Down Expand Up @@ -159,43 +164,53 @@ Public Class ucrOutputPage
.BorderStyle = BorderStyle.None
}

'if settings are not available or both show commands and comments settings are enabled then just show the whole script
FillRichTextWithRScriptBasedOnSettings(richTextBox, outputElement.FormattedRScript)

'if no contents added just exit sub
If richTextBox.TextLength = 0 Then
Exit Sub
End If

Dim panel As Panel = AddElementPanel(outputElement)
panel.Controls.Add(richTextBox)
panel.Controls.SetChildIndex(richTextBox, 0)
SetRichTextBoxHeight(richTextBox)
AddHandler richTextBox.KeyUp, AddressOf richTextBox_CopySelectedText
AddHandler richTextBox.MouseLeave, AddressOf panelContents_MouseLeave
End Sub


'fills rich textbox with r script provided based on the global options provided
'if all disabled then richtext will not be filled
Private Sub FillRichTextWithRScriptBasedOnSettings(richTextBox As RichTextBox, formattedRScript As List(Of clsRScriptElement))
'if settings are not available or both show commands and comments settings are enabled then just show the whole script
If frmMain.clsInstatOptions Is Nothing OrElse (frmMain.clsInstatOptions.bIncludeCommentDefault AndAlso frmMain.clsInstatOptions.bCommandsinOutput) Then
FillRichTextBoxWithFormatedRScript(richTextBox, outputElement.FormattedRScript)
FillRichTextBoxWithFormatedRScript(richTextBox, formattedRScript)
Else

'if either show commands or comments settings is enabled show the script that corresponds to either
If frmMain.clsInstatOptions.bIncludeCommentDefault Then
'show comments only
For Each line As clsRScriptElement In outputElement.FormattedRScript
For Each line As clsRScriptElement In formattedRScript
If line.Type = clsRToken.typToken.RComment Then
AddFormatedTextToRichTextBox(richTextBox, line.Text, OutputFont.GetFontForScriptType(line.Type), OutputFont.GetColourForScriptType(line.Type))
End If
Next

ElseIf frmMain.clsInstatOptions.bCommandsinOutput Then
'show command lines that are not comments
For Each line As clsRScriptElement In outputElement.FormattedRScript
For Each line As clsRScriptElement In formattedRScript
If Not (line.Type = clsRToken.typToken.RComment) Then
AddFormatedTextToRichTextBox(richTextBox, line.Text, OutputFont.GetFontForScriptType(line.Type), OutputFont.GetColourForScriptType(line.Type))
End If
Next
End If
End If

'if no contents added just exit sub
If richTextBox.TextLength = 0 Then
Exit Sub
End If

Dim panel As Panel = AddElementPanel(outputElement)
panel.Controls.Add(richTextBox)
panel.Controls.SetChildIndex(richTextBox, 0)
SetRichTextBoxHeight(richTextBox)
AddHandler richTextBox.KeyUp, AddressOf richTextBox_CopySelectedText
AddHandler richTextBox.MouseLeave, AddressOf panelContents_MouseLeave
End Sub



Private Sub AddNewTextOutput(outputElement As clsOutputElement)
Dim panel As Panel = AddElementPanel(outputElement)

Expand Down Expand Up @@ -403,10 +418,17 @@ Public Class ucrOutputPage
Private Sub AddElementToRichTextBox(element As clsOutputElement, richText As RichTextBox)
Select Case element.OutputType
Case OutputType.Script
FillRichTextBoxWithFormatedRScript(richText, element.FormattedRScript)
FillRichTextWithRScriptBasedOnSettings(richText, element.FormattedRScript)
Case OutputType.TextOutput
'todo. check if output is file or not. if file, read the contents of the file
AddFormatedTextToRichTextBox(richText, element.Output, OutputFont.ROutputFont, OutputFont.ROutputColour)
Dim strOutput As String = ""
If element.IsFile Then
For Each strLine As String In IO.File.ReadLines(element.Output)
strOutput = strOutput & strLine & Environment.NewLine
Next strLine
Else
strOutput = element.Output
End If
AddFormatedTextToRichTextBox(richText, strOutput, OutputFont.ROutputFont, OutputFont.ROutputColour)
Case OutputType.ImageOutput
Clipboard.Clear()
'todo. instead of copy paste, add image to rtf directly from file?
Expand All @@ -418,11 +440,7 @@ Public Class ucrOutputPage
End Sub

Private Function GetBitmapFromFile(strFilename As String) As Bitmap
Dim image As Bitmap
Using fs As New IO.FileStream(strFilename, IO.FileMode.Open)
image = New Bitmap(Drawing.Image.FromStream(fs))
End Using
Return image
Return New Bitmap(strFilename)
End Function

Private Sub AddFormatedTextToRichTextBox(richTextBox As RichTextBox, text As String, font As Font, colour As Color)
Expand Down
4 changes: 3 additions & 1 deletion instat/UserControl/ucrOutputPages.vb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Public Class ucrOutputPages
Private _clsInstatOptions As InstatOptions
Private _outputLogger As clsOutputLogger
Private _selectedOutputPage As ucrOutputPage
Private _strSaveDirectory As String
Public Sub New()

' This call is required by the designer.
Expand Down Expand Up @@ -57,10 +58,11 @@ Public Class ucrOutputPages
dlgSaveFile.Title = "Save Output Window"
dlgSaveFile.Filter = "Rich Text Format (*.rtf)|*.rtf"
dlgSaveFile.FileName = Path.GetFileName(SelectedTab)
dlgSaveFile.InitialDirectory = _clsInstatOptions.strWorkingDirectory
dlgSaveFile.InitialDirectory = If(String.IsNullOrEmpty(_strSaveDirectory), _clsInstatOptions.strWorkingDirectory, _strSaveDirectory)
If DialogResult.OK = dlgSaveFile.ShowDialog() Then
Try
_selectedOutputPage.Save(dlgSaveFile.FileName)
_strSaveDirectory = Path.GetDirectoryName(dlgSaveFile.FileName)
Catch
MsgBox("Could not save the output window." & Environment.NewLine & "The file may be in use by another program or you may not have access to write to the specified location.", MsgBoxStyle.Critical)
End Try
Expand Down
14 changes: 14 additions & 0 deletions instat/UserControls/DataGrid/Linux/ucrDataViewLinuxGrid.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Public Class ucrDataViewLinuxGrid

Public Event EditCell() Implements IDataViewGrid.EditCell

Public Event FindRow() Implements IDataViewGrid.FindRow

Public Event WorksheetChanged() Implements IDataViewGrid.WorksheetChanged

Public Event WorksheetRemoved(worksheet As clsWorksheetAdapter) Implements IDataViewGrid.WorksheetRemoved
Expand Down Expand Up @@ -74,6 +76,14 @@ Public Class ucrDataViewLinuxGrid
Return tcTabs.SelectedTab.Text
End Function

Public Function GetFirstRowHeader() As String Implements IDataViewGrid.GetFirstRowHeader
Return ""
End Function

Public Function GetLastRowHeader() As String Implements IDataViewGrid.GetLastRowHeader
Return ""
End Function

Public Function GetWorksheetCount() As Integer Implements IDataViewGrid.GetWorksheetCount
Return tcTabs.TabPages.Count()
End Function
Expand Down Expand Up @@ -154,4 +164,8 @@ Public Class ucrDataViewLinuxGrid
Dim dataGrid = GetDataGridFromSelectedTab()
dataGrid.Rows(iRow).Cells(iColumn).Value = GetCurrentDataFrameFocus.DisplayedData(iRow, iColumn)
End Sub

Public Sub SearchInGrid(rowNumbers As List(Of Integer), strColumn As String, Optional iRow As Integer = 0,
Optional bCellOrRow As Boolean = False) Implements IDataViewGrid.SearchInGrid
End Sub
End Class
Loading