Skip to content

Commit

Permalink
Add files via upload (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohne authored Nov 1, 2023
1 parent 89e120f commit 05c8abd
Show file tree
Hide file tree
Showing 9 changed files with 444 additions and 127 deletions.
316 changes: 220 additions & 96 deletions BatchForm.Designer.cs

Large diffs are not rendered by default.

93 changes: 93 additions & 0 deletions BatchForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,98 @@ public BatchForm()
{
InitializeComponent();
}

/// <summary>
/// Set a specific text to the status bar
/// </summary>
/// <param name="text">text with some information</param>
private void SetStatusbarText(string text)
{
toolStripStatusLabelInformation.Enabled = !string.IsNullOrEmpty(value: text);
toolStripStatusLabelInformation.Text = text;
}

private void BatchForm_Load(object sender, EventArgs e) => SetStatusbarText(text: string.Empty);

/// <summary>
/// Detect the accessibility description to set as information text in the status bar
/// </summary>
/// <param name="sender">object sender</param>
/// <param name="e">event arguments</param>
/// <remarks>The parameter <paramref name="e"/> is not needed, but must be indicated.</remarks>
private void SetStatusbar_Enter(object sender, EventArgs e)
{
switch (sender)
{
case TextBox textBox: SetStatusbarText(text: textBox.AccessibleDescription); break;
case Button button: SetStatusbarText(text: button.AccessibleDescription); break;
case RadioButton radioButton: SetStatusbarText(text: radioButton.AccessibleDescription); break;
case CheckBox checkBox: SetStatusbarText(text: checkBox.AccessibleDescription); break;
case DateTimePicker dateTimePicker: SetStatusbarText(text: dateTimePicker.AccessibleDescription); break;
case Label label: SetStatusbarText(text: label.AccessibleDescription); break;
case PictureBox pictureBox: SetStatusbarText(text: pictureBox.AccessibleDescription); break;
case CheckedListBox checkedListBox: SetStatusbarText(text: checkedListBox.AccessibleDescription); break;
case ComboBox box: SetStatusbarText(text: box.AccessibleDescription); break;
case DataGridView view: SetStatusbarText(text: view.AccessibleDescription); break;
case GroupBox group: SetStatusbarText(text: group.AccessibleDescription); break;
case ListBox box: SetStatusbarText(text: box.AccessibleDescription); break;
case ListView view: SetStatusbarText(text: view.AccessibleDescription); break;
case MaskedTextBox box: SetStatusbarText(text: box.AccessibleDescription); break;
case NumericUpDown numericUpDown: SetStatusbarText(text: numericUpDown.AccessibleDescription); break;
case MonthCalendar monthCalendar: SetStatusbarText(text: monthCalendar.AccessibleDescription); break;
case PropertyGrid propertyGrid: SetStatusbarText(text: propertyGrid.AccessibleDescription); break;
case RichTextBox richTextBox: SetStatusbarText(text: richTextBox.AccessibleDescription); break;
case ScrollBar scrollBar: SetStatusbarText(text: scrollBar.AccessibleDescription); break;
case TrackBar trackBar: SetStatusbarText(text: trackBar.AccessibleDescription); break;
case WebBrowser webBrowser: SetStatusbarText(text: webBrowser.AccessibleDescription); break;
case DomainUpDown domainUpDown: SetStatusbarText(text: domainUpDown.AccessibleDescription); break;
case ToolStripButton toolStripButton: SetStatusbarText(text: toolStripButton.AccessibleDescription); break;
case ToolStripMenuItem toolStripMenuItem: SetStatusbarText(text: toolStripMenuItem.AccessibleDescription); break;
case ToolStripLabel toolStripLabel: SetStatusbarText(text: toolStripLabel.AccessibleDescription); break;
case ToolStripComboBox toolStripComboBox: SetStatusbarText(text: toolStripComboBox.AccessibleDescription); break;
case ToolStripDropDown toolStripDropDown: SetStatusbarText(text: toolStripDropDown.AccessibleDescription); break;
case ToolStripDropDownButton toolStripDropDownButton: SetStatusbarText(text: toolStripDropDownButton.AccessibleDescription); break;
case ToolStripDropDownItem toolStripDropDownItem: SetStatusbarText(text: toolStripDropDownItem.AccessibleDescription); break;
case ToolStripProgressBar progressBar: SetStatusbarText(text: progressBar.AccessibleDescription); break;
case ToolStripSeparator toolStripSeparator: SetStatusbarText(text: toolStripSeparator.AccessibleDescription); break;
case ToolStripTextBox toolStripTextBox: SetStatusbarText(text: toolStripTextBox.AccessibleDescription); break;
}
}

/// <summary>
/// Clear the information text of the status bar
/// </summary>
/// <param name="sender">object sender</param>
/// <param name="e">event arguments</param>
/// <remarks>The parameters <paramref name="e"/> and <paramref name="sender"/> are not needed, but must be indicated.</remarks>
private void ClearStatusbar_Leave(object sender, EventArgs e) => SetStatusbarText(text: string.Empty);

private void ButtonAddToList_Click(object sender, EventArgs e)
{
}

private void ButtonUndo_Click(object sender, EventArgs e)
{
}

private void ButtonRedo_Click(object sender, EventArgs e)
{
}

private void ButtonCreateList_Click(object sender, EventArgs e)
{
}

private void ButtonDeleteList_Click(object sender, EventArgs e)
{
}

private void ButtonCopyList_Click(object sender, EventArgs e)
{
}

private void ButtonSaveList_Click(object sender, EventArgs e)
{
}
}
}
104 changes: 101 additions & 3 deletions BatchForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="buttonUndo.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
Expand All @@ -131,6 +134,9 @@
QSj+HbAfEXhx3XgHRPIAAAAASUVORK5CYII=
</value>
</data>
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="statusStripInfo.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>258, 17</value>
</metadata>
Expand All @@ -140,10 +146,102 @@
<metadata name="backgroundWorker.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>388, 17</value>
</metadata>
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>59</value>
</metadata>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAACAAAAABACAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAIwAAADMAAAAzAAAAMwAAADMAAAAzAAAAMwAAADMAAAAzAAAAMwAA
ADMAAAAzAAAAMwAAADMAAAAzAAAAI6ampsCysrL/sLCw/6+vsP+vr7D/r6+w/6+vsP+vr7D/r6+w/6+v
sP+vr7D/r6+w/6+vsP+wsLD/srKy/6ampsCysrL/////////////////////////////////////////
//////////////////////////////////+ysrL/sLCw///////+/////////////////////v////7+
///+/v7//v7+//7+/v/+/v7//v7+//3+/v//////sLCw/6+vr////////P///8Z0Gv/IeiT/x3Uc////
///////////////////////////////////9/Pz//////6+vr/+vr6////////j8///gvpb/zYU1/+vT
vP//////Q0FA/1pYVf9samj/cW5s/15bWf9GREP//P39//////+vr6//sLCw///////2+Pn/+P////Hr
5v/IeB//+v////3+/v////7////+//7//v////7//P37//f39v//////sLCw/7CwsP//////8/T2/9KT
T//Zqnb/z49H//X4+//09PP/9PPy//Tz8v/08/L/9PPy//Ty8f/y8fD//////7CwsP+wsLD//////+/x
8f/x9vr/8vr///L3/P/x8vP/8fHw//Hx8P/x8fD/8fHw//Hx8P/w8O//7+/u//////+wsLD/sLCw////
///t7e3/7/L3/8d0GP/w8/j/8fHx//X08//39vX/9vX0//b19P/39vX/9fTz/+/u7f//////sLCw/7Cw
sP//////6evr/+zy+P/JeB7/7fP4//Dy8v9FQ0H/XVpY/29ta/9zcW7/YF5c/0lHRv/v7+7//////7Cw
sP+wsLD//////+jo6f/r8fj/ynoh/+vv9f/s7Oz/8O/u//Lx8P/x8O//8fDv//Lx8P/w7+7/6uno////
//+wsLD/sLCw///////k5+n/z5NP/8p4Hv/m6+//5efm/+bm5f/m5+b/5ufm/+bm5f/m5+b/5ebl/+Pk
4v//////sLCw/7CwsP//////4OHh/+Ll6P/d0MH/4uPk/+Hg3//h4N//4eDf/+Hg3//h4N//4eDf/+Hf
3v/g397//////7CwsP+ysrL/////////////////////////////////////////////////////////
//////////////////+ysrL/tbW177Kysv+wsLD/sLCw/7CwsP+wsLD/sLCw/7CwsP+wsLD/sLCw/7Cw
sP+wsLD/sLCw/7CwsP+ysrL/tbW17wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAIAAAAEAAAAABACAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAABQAAABAAAAAWAAAAFgAAABYAAAAWAAAAFgAAABYAAAAWAAAAFgAAABYAAAAWAAAAFgAA
ABYAAAAWAAAAFgAAABYAAAAWAAAAFgAAABYAAAAWAAAAFgAAABYAAAAWAAAAFgAAABYAAAAWAAAAFgAA
ABYAAAAWAAAAEAAAAAUAAAAQAAAAMQAAAEIAAABDAAAAQwAAAEMAAABDAAAAQwAAAEMAAABDAAAAQwAA
AEMAAABDAAAAQwAAAEMAAABDAAAAQwAAAEMAAABDAAAAQwAAAEMAAABDAAAAQwAAAEMAAABDAAAAQwAA
AEMAAABDAAAAQwAAAEIAAAAxAAAAEAAAABaioqLzoqKi/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+f
n/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+f
n/+fn5//n5+f/5+fn/+fn5//oqKi/6KiovMAAAAWAAAAFqKiov//////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////oqKi/wAAABYAAAAWn5+f////////////////////
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////+fn5//AAAAFgAAABafn5////////39
/f/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8
/P/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8/P/9/f3//////5+fn/8AAAAWAAAAFp+f
n////////Pz8//v7+//7+/v/+/v8//v8/f/7/f3/+/z9//v7/P/7+/v/+/v7//v7+//7+/v/+/v7//v7
+//7+/v/+/v7//v7+//7+/v/+/v7//v7+//7+/v/+/v7//v7+//7+/v/+/v7//z8/P//////n5+f/wAA
ABYAAAAWn5+f///////7+/v/+vr6//r6+//7/P7//P////3////9////+/3+//r6+//6+vr/+vr6//r6
+v/6+vr/+vr6//r6+v/6+vr/+vr6//r6+v/6+vr/+vr6//r6+v/6+vr/+vr6//r6+v/6+vr/+/v7////
//+fn5//AAAAFgAAABafn5////////r6+v/5+fn/+fr6//v+///LgjH/0ZBI/9CORv/8////+vv8//v7
+//7+/v/+/v7//v7+//7+/v/+/v7//v7+//7+/v/+/v7//v7+//7+/v/+/v7//v7+//7+/v/+vr6//n5
+f/6+vr//////5+fn/8AAAAWAAAAFp+fn///////+fn5//j4+P/4+fn/+vz///3/////////zok+//j4
9//8/f7/////////////////////////////////////////////////////////////////////////
///7/Pz/+Pj5//n5+f//////n5+f/wAAABYAAAAWn5+f///////4+Pb/9/f2//f49//5+/z/3LF//8yC
MP/Wnl///P////////8+Ozr/TUpH/1RRUP9bWFf/YmBe/2lnZv9xbmz/dHFv/2xpZ/9lYmD/XVta/1ZU
U/9OS0r/QD49//7+/f/4+Pf/+Pj2//////+fn5//AAAAFgAAABafn5////////b39f/29vX/9vf2//j6
+//7////8+7p/8h4If/6////+vv7/////v//////////////////////////////////////////////
//////////////////////7/+fr5//b39f/29/X//////5+fn/8AAAAWAAAAFp+fn///////9fT0//X0
9P/19fX/9/n8/8+NQ//Rk0z/0JFJ//j7///29vf/9/b2//f29v/39vb/9/b2//f29v/39vb/9/b2//f2
9v/39vb/9/b2//f29v/39vb/9/b2//f29v/29PX/9fT0//X09P//////n5+f/wAAABYAAAAWn5+f////
///08/P/9PPz//T09f/2+Pz/+f////r////5////9vj7//T09P/08/P/9PPz//Tz8//08/P/9PPz//Tz
8//08/P/9PPz//Tz8//08/P/9PPz//Tz8//08/P/9PPz//Tz8//08/P/9PPz//////+fn5//AAAAFgAA
ABafn5////////Py8v/z8vL/8/P0//b5///IeB//yXsl/9COR//19/v/9PT0//X09P/19PT/9fT0//X0
9P/19PT/9fT0//X09P/19PT/9fT0//X09P/19PT/9fT0//X09P/19PT/9PPz//Py8v/z8vL//////5+f
n/8AAAAWAAAAFp+fn///////8vHx//Lx8f/y8vP/9Pf9/9CSS//WnmL/8/j8//T3+v/29fb/+/r6//38
/f/9/P3//fz8//z8/P/8+/v/+/r7//v6+//8+/v//Pv8//38/P/9/Pz//fz8//v6+v/19PT/8vHx//Lx
8f//////n5+f/wAAABYAAAAWn5+f///////x8O//8fDv//Hw8P/z8/X/8fPy/9mseP/QkUv/9Pj8//j4
9/9APTz/TktJ/1VTUv9cWln/Y2Fg/2toZ/9ycG7/dXNw/21raP9mZGH/X1xb/1dVVP9PTUz/QkA///f2
9f/y8e//8fDv//////+fn5//AAAAFgAAABafn5///////+/v7v/v7+7/7+/v//Dy8//y+P3/9P///8l3
H//y9/z/8/T0//j49//6+vn/+vr5//r6+f/5+vn/+fn4//j49//4+Pf/+Pn4//n5+P/6+vn/+vr5//r6
+f/4+Pf/8vLx/+/v7v/v7+7//////5+fn/8AAAAWAAAAFp+fn///////7u7t/+7u7f/u7+7/7/L0/8yD
Mv/QkEn/05ZV//D0+P/v8O//8PDv//Dw7//w8O//8PDv//Dw7//w8O//8PDv//Dw7//w8O//8PDv//Dw
7//w8O//8PDv//Dw7//v7+7/7u7t/+7u7f//////n5+f/wA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/5+bl/+fm5f/n5uX/5+bl/+fm5f/n5uX/5+bl/+fm5f/n5uX/5+bl/+fm
5f/n5uX/5+bl/+fm5f/n5uX/5uXk//////+fn5//AAAAFgAAABafn5///////+Xk4v/m5eT/5uXk/+bl
5f/m5ub/5ufn/+bm5v/m5eT/5uXk/+bl5P/m5eT/5uXk/+bl5P/m5eT/5uXk/+bl5P/m5eT/5uXk/+bl
5P/m5eT/5uXk/+bl5P/m5eT/5uXk/+bl5P/l5OL//////5+fn/8AAAAWAAAAFp+fn///////5OLh/+Xk
4//l5OP/5eTj/+Xk4//l5OP/5eTj/+Xk4//l5OP/5eTj/+Xk4//l5OP/5eTj/+Xk4//l5OP/5eTj/+Xk
4//l5OP/5eTj/+Xk4//l5OP/5eTj/+Xk4//l5OP/5eTj/+Ti4f//////n5+f/wAAABYAAAAWn5+f////
///i4eD/4+Lh/+Tj4v/k4+L/5OPi/+Tj4v/k4+L/5OPi/+Tj4v/k4+L/5OPi/+Tj4v/k4+L/5OPi/+Tj
4v/k4+L/5OPi/+Tj4v/k4+L/5OPi/+Tj4v/k4+L/5OPi/+Tj4v/j4uH/4uHg//////+fn5//AAAAFgAA
ABWgoKD//////+Hf3v/h4N//4eDf/+Hg3//h4N//4eDf/+Hg3//h4N//4eDf/+Hg3//h4N//4eDf/+Hg
3//h4N//4eDf/+Hg3//h4N//4eDf/+Hg3//h4N//4eDf/+Hg3//h4N//4eDf/+Hg3//h397//////6Cg
oP8AAAAVAAAADaKiov//////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////oqKi/wAAAA0AAAAEoaGhtKKiov+goKD/n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+f
n/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+f
n/+fn5//oKCg/6Kiov+hoaG0AAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
</value>
</data>
</root>
2 changes: 1 addition & 1 deletion Numeric List Generator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Title>Numeric List Generator</Title>
<Authors>Mijo Software</Authors>
<Version>1.5.0.7</Version>
<Version>1.5.1.8</Version>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Platforms>AnyCPU;ARM32;ARM64;x64;x86</Platforms>
<StartupObject>Numeric_List_Generator.Program</StartupObject>
Expand Down
44 changes: 23 additions & 21 deletions NumericListGeneratorForm.Designer.cs

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

2 changes: 0 additions & 2 deletions NumericListGeneratorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ private void EnableControls()
buttonCopyList.Enabled = true;
buttonSaveList.Enabled = true;
buttonUndo.Enabled = true;
buttonRedo.Enabled = true;
toolStripMenuItemListUndo.Enabled = true;
toolStripMenuItemListRedo.Enabled = true;
textBoxList.Enabled = true;
}

Expand Down
Loading

0 comments on commit 05c8abd

Please sign in to comment.