Skip to content

Commit

Permalink
Added the code in fillItemType to populate the already saved graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellfundi committed Jun 16, 2016
1 parent d6e7036 commit db5287b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions instat/dlgDotPlot.vb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Public Class dlgDotPlot

ucrSaveDotPlot.SetDataFrameSelector(ucrDotPlotSelector.ucrAvailableDataFrames)
ucrSaveDotPlot.strPrefix = "Graph"
ucrSaveDotPlot.ucrInputGraphName.SetItemsTypeAsGraphs()
ucrSaveDotPlot.ucrInputGraphName.SetDefaultTypeAsGraph()
End Sub

Private Sub TestOkEnabled()
Expand Down
13 changes: 10 additions & 3 deletions instat/ucrInputComboBox.vb
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,23 @@ Public Class ucrInputComboBox
End Sub

Private Sub FillItemTypes()
Dim strItems As String()
Dim strItems As String()

Select Case strItemsType
Case "Columns"
If ucrDataFrameSelector IsNot Nothing Then
frmMain.clsRLink.FillColumnNames(ucrDataFrameSelector.cboAvailableDataFrames.Text, cboColumns:=cboInput)
End If
Case "Data Frames"
Case "Models"
cboInput.Items.Add(frmMain.clsRLink.GetModelNames().ToArray)
Case "Graphs"
cboInput.Items.Add(frmMain.clsRLink.GetModelNames().ToArray)

Case "Graphs"
If ucrDataFrameSelector IsNot Nothing Then
cboInput.Items.Clear()
cboInput.Items.AddRange(frmMain.clsRLink.GetGraphNames(ucrDataFrameSelector.cboAvailableDataFrames.Text).ToArray())
End If

Case "Filters"
If ucrDataFrameSelector IsNot Nothing Then
cboInput.Items.Clear()
Expand Down

0 comments on commit db5287b

Please sign in to comment.