Skip to content

Commit

Permalink
Merge pull request IDEMSInternational#6231 from shadrackkibet/newdata…
Browse files Browse the repository at this point in the history
…frame

Added more examples to the Construct option in the New Data Frame dialog
  • Loading branch information
lloyddewit authored Mar 1, 2021
2 parents 2428ec6 + a1fde89 commit c70345e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
37 changes: 20 additions & 17 deletions instat/dlgNewDataFrame.resx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="lblRows.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
<value>8</value>
</data>
<data name="lblRows.Text" xml:space="preserve">
<value>Rows:</value>
Expand All @@ -157,7 +157,7 @@
<value>50, 13</value>
</data>
<data name="lblColumns.TabIndex" type="System.Int32, mscorlib">
<value>12</value>
<value>10</value>
</data>
<data name="lblColumns.Text" xml:space="preserve">
<value>Columns:</value>
Expand Down Expand Up @@ -190,7 +190,7 @@
<value>95, 27</value>
</data>
<data name="rdoCommand.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
<value>2</value>
</data>
<data name="rdoCommand.Text" xml:space="preserve">
<value>Command</value>
Expand Down Expand Up @@ -226,7 +226,7 @@
<value>95, 27</value>
</data>
<data name="rdoRandom.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
<value>3</value>
</data>
<data name="rdoRandom.Text" xml:space="preserve">
<value>Random</value>
Expand Down Expand Up @@ -262,7 +262,7 @@
<value>95, 27</value>
</data>
<data name="rdoEmpty.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
<value>4</value>
</data>
<data name="rdoEmpty.Text" xml:space="preserve">
<value>Empty</value>
Expand Down Expand Up @@ -298,7 +298,7 @@
<value>95, 27</value>
</data>
<data name="rdoConstruct.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
<value>1</value>
</data>
<data name="rdoConstruct.Text" xml:space="preserve">
<value>Construct</value>
Expand Down Expand Up @@ -430,13 +430,13 @@
<value>NoControl</value>
</data>
<data name="lblCommand.Location" type="System.Drawing.Point, System.Drawing">
<value>10, 61</value>
<value>10, 59</value>
</data>
<data name="lblCommand.Size" type="System.Drawing.Size, System.Drawing">
<value>57, 13</value>
</data>
<data name="lblCommand.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
<value>5</value>
</data>
<data name="lblCommand.Text" xml:space="preserve">
<value>Command:</value>
Expand All @@ -457,7 +457,7 @@
<value>NoControl</value>
</data>
<data name="btnExample.Location" type="System.Drawing.Point, System.Drawing">
<value>69, 55</value>
<value>69, 54</value>
</data>
<data name="btnExample.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>2, 2, 2, 2</value>
Expand All @@ -466,7 +466,7 @@
<value>118, 22</value>
</data>
<data name="btnExample.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
<value>6</value>
</data>
<data name="btnExample.Text" xml:space="preserve">
<value>Command Examples</value>
Expand Down Expand Up @@ -496,7 +496,7 @@
<value>74, 23</value>
</data>
<data name="btnTry.TabIndex" type="System.Int32, mscorlib">
<value>176</value>
<value>12</value>
</data>
<data name="btnTry.Text" xml:space="preserve">
<value>Try</value>
Expand All @@ -523,7 +523,7 @@
<value>293, 22</value>
</data>
<data name="ucrInputTryMessage.TabIndex" type="System.Int32, mscorlib">
<value>177</value>
<value>13</value>
</data>
<data name="&gt;&gt;ucrInputTryMessage.Name" xml:space="preserve">
<value>ucrInputTryMessage</value>
Expand All @@ -544,7 +544,7 @@
<value>417, 159</value>
</data>
<data name="ucrInputCommand.TabIndex" type="System.Int32, mscorlib">
<value>8</value>
<value>7</value>
</data>
<data name="&gt;&gt;ucrInputCommand.Name" xml:space="preserve">
<value>ucrInputCommand</value>
Expand All @@ -568,7 +568,7 @@
<value>405, 43</value>
</data>
<data name="ucrPnlDataFrame.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
<value>0</value>
</data>
<data name="&gt;&gt;ucrPnlDataFrame.Name" xml:space="preserve">
<value>ucrPnlDataFrame</value>
Expand Down Expand Up @@ -616,7 +616,7 @@
<value>50, 20</value>
</data>
<data name="ucrNudCols.TabIndex" type="System.Int32, mscorlib">
<value>13</value>
<value>11</value>
</data>
<data name="&gt;&gt;ucrNudCols.Name" xml:space="preserve">
<value>ucrNudCols</value>
Expand All @@ -640,7 +640,7 @@
<value>50, 20</value>
</data>
<data name="ucrNudRows.TabIndex" type="System.Int32, mscorlib">
<value>11</value>
<value>9</value>
</data>
<data name="&gt;&gt;ucrNudRows.Name" xml:space="preserve">
<value>ucrNudRows</value>
Expand All @@ -664,7 +664,7 @@
<value>399, 48</value>
</data>
<data name="ucrBase.TabIndex" type="System.Int32, mscorlib">
<value>14</value>
<value>15</value>
</data>
<data name="&gt;&gt;ucrBase.Name" xml:space="preserve">
<value>ucrBase</value>
Expand All @@ -690,6 +690,9 @@
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>439, 378</value>
</data>
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterScreen</value>
</data>
Expand Down
8 changes: 7 additions & 1 deletion instat/dlgNewDataFrame.vb
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ Public Class dlgNewDataFrame
ucrNudCols.SetMinMax(1, Integer.MaxValue)

' ucrNewSheetName
ucrNewDFName.SetIsTextBox()
ucrNewDFName.SetSaveTypeAsDataFrame()
ucrNewDFName.SetLabelText("New Data Frame Name:")
ucrNewDFName.SetIsTextBox()
ucrNewDFName.SetPrefix("data")

'ucrRdoOptions
Expand Down Expand Up @@ -374,6 +374,12 @@ Public Class dlgNewDataFrame

lstView.Items.Add(New ListViewItem({"occasions", "seq(as.Date(""1970/1/1""), by = ""4 months"", length = 30)"}))
lstView.Items.Item(4).ToolTipText = "Regular sequence of monthly data"

lstView.Items.Add(New ListViewItem({"prob1", "c(0.01, 0.05, 0.1, 0.2, 0.5, 0.8, 0.9, 0.95, 0.99)"}))
lstView.Items.Add(New ListViewItem({"prob2", "c(0.5, 0.8, 0.9, 0.95, 0.98, 0.99, 0.995, 0.998, 0.999)"}))
lstView.Items.Add(New ListViewItem({"quant1", "seq(-4, 4)"}))
lstView.Items.Add(New ListViewItem({"quant2", "c(40, 50, 60, 80, 100, 130, 160, 200, 250)"}))

End If

'set respective handlers
Expand Down

0 comments on commit c70345e

Please sign in to comment.