Skip to content

Commit

Permalink
Merge pull request #2261 from stevekogo/Display_options
Browse files Browse the repository at this point in the history
Fixing bug is display oprions for two and three variable modelling. Fixes #2260
  • Loading branch information
dannyparsons authored Nov 11, 2016
2 parents 8bde40d + ca34254 commit 0ab8131
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions instat/dlgRegressionSimple.vb
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ Public Class dlgRegressionSimple
ucrModelName.Reset()
ucrModelPreview.SetName("")
SetRCode()
TestOKEnabled()
DistributionsOffered()
sdgSimpleRegOptions.chkDisplayCLimits.Enabled = True
sdgSimpleRegOptions.lblDisplayCLevel.Enabled = True
sdgSimpleRegOptions.nudDisplayCLevel.Enabled = True
SetEnableDists()
TestOKEnabled()
End Sub

Private Sub LM()
Expand Down Expand Up @@ -254,8 +254,8 @@ Public Class dlgRegressionSimple
End Sub

Private Sub cmdDisplayOptions_Click(sender As Object, e As EventArgs) Handles cmdDisplayOptions.Click
sdgSimpleRegOptions.ShowDialog()
Display()
sdgSimpleRegOptions.ShowDialog()
End Sub

Public Sub ConvertToVariate()
Expand Down
13 changes: 2 additions & 11 deletions instat/dlgThreeVariablesModelling.vb
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ Public Class dlgThreeVariableModelling
ucrResponse.Selector = ucrSelectorThreeVariableModelling
ucrFirstExplanatory.Selector = ucrSelectorThreeVariableModelling
ucrSecondExplanatory.Selector = ucrSelectorThreeVariableModelling
ucrModelOperator.cboInput.Items.Add("+")
ucrModelOperator.cboInput.Items.Add("*")
ucrModelOperator.cboInput.Items.Add(":")
ucrModelOperator.cboInput.Items.Add("/")
ucrModelOperator.SetItems({"+", "*", ":", "/"})
ucrFamily.SetGLMDistributions()
ucrModelName.SetDataFrameSelector(ucrSelectorThreeVariableModelling.ucrAvailableDataFrames)
ucrModelName.SetPrefix("reg")
Expand All @@ -63,8 +60,6 @@ Public Class dlgThreeVariableModelling
sdgModelOptions.SetRCIFunction(clsRCIFunction)
sdgVariableTransformations.SetRCIFunction(clsRCIFunction)
AssignModelName()
ModelOperator()
TestOKEnabled()
ucrModelName.SetValidationTypeAsRVariable()
End Sub

Expand Down Expand Up @@ -94,10 +89,10 @@ Public Class dlgThreeVariableModelling
ucrModelPreview.Reset()
ResponseConvert()
ModelOperator()
TestOKEnabled()
sdgSimpleRegOptions.chkDisplayCLimits.Enabled = True
sdgSimpleRegOptions.lblDisplayCLevel.Enabled = True
sdgSimpleRegOptions.nudDisplayCLevel.Enabled = True
TestOKEnabled()
End Sub

Public Sub TestOKEnabled()
Expand All @@ -116,10 +111,6 @@ Public Class dlgThreeVariableModelling
AssignModelName()
End Sub

Private Sub cmdRegressionOptions_Click(sender As Object, e As EventArgs) Handles cmdDisplayOptions.Click
sdgSimpleRegOptions.ShowDialog()
End Sub

Public Sub ResponseConvert()
If Not ucrResponse.IsEmpty Then
ucrFamily.RecieverDatatype(ucrSelectorThreeVariableModelling.ucrAvailableDataFrames.cboAvailableDataFrames.Text, ucrResponse.GetVariableNames(bWithQuotes:=False))
Expand Down

0 comments on commit 0ab8131

Please sign in to comment.