├── .gitattributes
├── .gitignore
├── ABitOfMemory
├── ABitOfMemory.csproj
├── App.ico
├── ExitButton.cs
├── ExtensionMethods.cs
├── HighScoreForm.Designer.cs
├── HighScoreForm.cs
├── HighScoreForm.resx
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Resources
│ ├── high_beep.wav
│ └── low_beep.wav
├── Session.cs
└── app.config
├── AdvancedBrowser
├── AdvancedBrowser.csproj
├── AppIcon.ico
├── AppIconArt.ai
├── Bookmark.cs
├── Drawing
│ └── XmlColor.cs
├── ExtensionMethods.cs
├── Forms
│ ├── BookmarkBar.Designer.cs
│ ├── BookmarkBar.cs
│ ├── BookmarkBar.resx
│ ├── BrowserControl.Designer.cs
│ ├── BrowserControl.cs
│ ├── BrowserControl.resx
│ ├── EditBookmarkForm.Designer.cs
│ ├── EditBookmarkForm.cs
│ ├── EditBookmarkForm.resx
│ ├── ExWebBrowser.cs
│ ├── HistoryDisplay.Designer.cs
│ ├── HistoryDisplay.cs
│ ├── HistoryDisplay.resx
│ ├── MainForm.Designer.cs
│ ├── MainForm.cs
│ ├── MainForm.resx
│ ├── NavigationBar.Designer.cs
│ ├── NavigationBar.cs
│ ├── NavigationBar.resx
│ ├── RichColorProfile.cs
│ ├── RichColorTable.cs
│ ├── RichColoredTextBox.cs
│ ├── RichSyntaxHighlighter.cs
│ ├── SettingsDialog.Designer.cs
│ ├── SettingsDialog.cs
│ ├── SettingsDialog.resx
│ ├── ToolStripSpringTextBox.cs
│ ├── ViewSourceForm.Designer.cs
│ ├── ViewSourceForm.cs
│ ├── ViewSourceForm.resx
│ └── WebBrowserTabControl.cs
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── Resources
│ ├── 112_RightArrowShort_Green_32x32_72.png
│ ├── Add.png
│ ├── AppIcon.png
│ ├── Back.png
│ ├── Bookmark.png
│ ├── Font.png
│ ├── FullScreen.png
│ ├── Gear.png
│ ├── History.png
│ ├── Home.png
│ ├── Refresh.png
│ ├── ResetZoom.png
│ ├── Save.ico
│ ├── StatusStrip.png
│ ├── Stop.png
│ ├── ViewCode.png
│ └── WordWrap.png
├── Settings.cs
└── SettingsBase.cs
├── AopBenchmark
├── AopBenchmark.csproj
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Vertex.cs
├── app.config
└── chart.ico
├── AopCodeLibrary
├── AopCodeLibrary.csproj
├── ControlAspectLocker.cs
├── ExtensionMethods.cs
├── FormFader.cs
├── GraphicsHelpers.cs
├── MiscFunctions.cs
├── MouseTracker.cs
├── MovingGradient.cs
├── Properties
│ └── AssemblyInfo.cs
├── StringOps.cs
└── Vertex.cs
├── AopCodeLibraryDemo
├── AopCodeLibraryDemo.csproj
├── App.config
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
└── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── AopStopWatch
├── AopStopWatch.csproj
├── AppIcon.ico
├── IlluminateButton.cs
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Resources
│ ├── Exit1.png
│ ├── Pause.png
│ ├── Play.png
│ └── Stop.png
└── app.config
├── Beeper
├── App.config
├── BeepPlayer.cs
├── Beeper.csproj
├── ConversionParams.cs
├── ExtensionMethods.cs
├── Forms
│ ├── Grouper.cs
│ ├── MainForm.Designer.cs
│ ├── MainForm.cs
│ ├── MainForm.resx
│ ├── ParserForm.Designer.cs
│ ├── ParserForm.cs
│ ├── ParserForm.resx
│ ├── SequenceMenuStrip.cs
│ ├── SequenceTextBox.cs
│ ├── StyledForm.Designer.cs
│ ├── StyledForm.cs
│ └── StyledForm.resx
├── FreqAnalyzer.cs
├── Fur Elise.txt
├── Mario.txt
├── Merry Christmas.txt
├── Mission Impossible.txt
├── Note.cs
├── NumberRange.cs
├── Ode To Joy.txt
├── Play.ico
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── README.txt
├── SequenceConversion.cs
└── Star Wars - The Imperial March.txt
├── BullsEyeGraphics
├── BullsEyeGraphics.csproj
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── app.config
└── bullseye.ico
├── CaptchaExample
├── CaptchaData.cs
├── CaptchaExample.csproj
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
└── app.config
├── Eventing
├── Eventing.csproj
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── SpecialControl.cs
└── app.config
├── FullscreenShot
├── AppIcon.ico
├── FullscreenShot.csproj
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
└── app.config
├── IOSSliderExample
├── App.config
├── IOSSliderExample.csproj
├── IosSlider.cs
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Resources
│ └── MetalKnob.png
└── Slider.cs
├── IniEditing
├── Enumerations.cs
├── IniEditing.csproj
├── IniEditor.cs
├── IniKey.cs
├── NoFileLoadedException.cs
└── Properties
│ └── AssemblyInfo.cs
├── IniEditingDemo
├── App.config
├── IniEditingDemo.csproj
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
└── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── InputBoxDemo
├── App.config
├── InputBox.cs
├── InputBoxDemo.csproj
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
└── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Licence.md
├── LogFileRemover
├── AppIcon.ico
├── LogFileRemover.csproj
├── LogRemover.cs
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
└── app.config
├── MorseChallenge
├── App.config
├── Forms
│ ├── ChartForm.Designer.cs
│ ├── ChartForm.cs
│ ├── ChartForm.resx
│ ├── MainForm.Designer.cs
│ ├── MainForm.cs
│ └── MainForm.resx
├── MorseChallenge.csproj
├── MorsePlayer.cs
├── MorseTranslator.cs
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
└── Resources
│ ├── Light.png
│ ├── LightIllum.png
│ └── Word_List.txt
├── MorseCodeRain
└── MorseCodeRain
│ ├── App.config
│ ├── AppIcon.ico
│ ├── GameSoundPlayer.cs
│ ├── Hotkey.cs
│ ├── HotkeyManager.cs
│ ├── MainForm.Designer.cs
│ ├── MainForm.cs
│ ├── MainForm.resx
│ ├── Morse Code Rain.sln
│ ├── MorseCode.cs
│ ├── MorseCodeManager.cs
│ ├── MorseCodeRain.csproj
│ ├── Program.cs
│ ├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
│ ├── RenderForm.Designer.cs
│ ├── RenderForm.cs
│ ├── RenderForm.resx
│ ├── Resources
│ ├── AppIcon.ico
│ ├── Drip-01.wav
│ ├── Drip-02.wav
│ ├── Drip-03.wav
│ ├── Drip-04.wav
│ ├── Drip-05.wav
│ ├── Right.wav
│ └── Wrong.wav
│ └── Sprites
│ ├── CodeSprite.cs
│ ├── FadeToBlackSprite.cs
│ ├── PauseSprite.cs
│ ├── ScoreSprite.cs
│ ├── Sprite.cs
│ └── WaveSprite.cs
├── MsgSandBox
├── App.config
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── MsgSandBox.csproj
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── SandBoxForm.Designer.cs
├── SandBoxForm.cs
└── SandBoxForm.resx
├── ParticleGenerator
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── ParticleGenerator.csproj
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
└── app.config
├── README.md
├── ReflectionPluginSystem
├── ImageEditor.BorderPlugin
│ ├── Plugin.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── ReflectionPluginSystem.BorderPlugin.csproj
├── ImageEditor.InvertColorsPlugin
│ ├── Plugin.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── ReflectionPluginSystem.InvertColorsPlugin.csproj
└── ImageEditor
│ ├── App.config
│ ├── BorderPlugin.dll
│ ├── InvertColorsPlugin.dll
│ ├── MainForm.Designer.cs
│ ├── MainForm.cs
│ ├── MainForm.resx
│ ├── Plugin.cs
│ ├── PluginManager.cs
│ ├── Program.cs
│ ├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
│ └── ReflectionPluginSystem.csproj
├── SamplesAndUtils.sln
├── ShortcutHotkeyEditor
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Overlay_shortcut.ico
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── ShortcutHotkeyEditor.csproj
└── app.config
├── SmoothPainting
├── App.config
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── PathManager.cs
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── SmoothPainting.csproj
└── SmoothPainting.sln
├── SpeechConsole
├── App.config
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
└── SpeechConsole.csproj
├── TicTacToe
├── CellBlinker.cs
├── ComputerPlayer.cs
├── Enumerations.cs
├── Forms
│ ├── Cell.cs
│ ├── ExitButton.cs
│ ├── MainForm.Designer.cs
│ ├── MainForm.cs
│ └── MainForm.resx
├── Grid.cs
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── TicTacToe.csproj
├── TicTacToe.sln
└── app.config
├── VirtualPianoPlayer
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── NotesTextBox.cs
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Songs
│ ├── Adele - Rolling in the deep.txt
│ ├── Bethoven - Fur Elise.txt
│ ├── Hallelujah.txt
│ ├── Metallica - Nothing Else Matters.txt
│ ├── Moonlight sonata.txt
│ └── Tong Hua - Guang Liang.txt
├── VirtualPianoPlayer.csproj
├── VirtualPianoPlayer.csproj.DotSettings
└── app.config
├── WebFilesEnhanced
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── NewFileDialog.Designer.cs
├── NewFileDialog.cs
├── NewFileDialog.resx
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── SettingsDialog.Designer.cs
├── SettingsDialog.cs
├── SettingsDialog.resx
├── WebFiles.ico
├── WebFilesEnhanced.csproj
├── ZoomBrowser.cs
├── app.config
└── template.html
├── WindowMatrix
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Window Matrix.sln
├── WindowMatrix.csproj
└── app.config
└── WordListProc
├── App.config
├── MainForm.Designer.cs
├── MainForm.cs
├── MainForm.resx
├── Program.cs
├── Properties
├── AssemblyInfo.cs
├── Resources.Designer.cs
├── Resources.resx
├── Settings.Designer.cs
└── Settings.settings
└── WordListProc.csproj
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 |
7 | # Standard to msysgit
8 | *.doc diff=astextplain
9 | *.DOC diff=astextplain
10 | *.docx diff=astextplain
11 | *.DOCX diff=astextplain
12 | *.dot diff=astextplain
13 | *.DOT diff=astextplain
14 | *.pdf diff=astextplain
15 | *.PDF diff=astextplain
16 | *.rtf diff=astextplain
17 | *.RTF diff=astextplain
18 |
--------------------------------------------------------------------------------
/ABitOfMemory/App.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/ABitOfMemory/App.ico
--------------------------------------------------------------------------------
/ABitOfMemory/ExitButton.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 | using System.Drawing;
4 | using System.ComponentModel;
5 |
6 | namespace ABitOfMemory
7 | {
8 | class ExitButton : Button
9 | {
10 | private readonly Pen exitLine;
11 | private const int X_PADDING = 7;
12 |
13 | public ExitButton()
14 | {
15 | exitLine = new Pen(Color.Black, 3f);
16 | FlatStyle = FlatStyle.Flat;
17 | base.BackColor = Color.FromArgb(173, 202, 113);
18 | }
19 |
20 | [Browsable(false)]
21 | public override string Text
22 | {
23 | get { return base.Text; }
24 | set { base.Text = string.Empty; }
25 | }
26 |
27 | protected override void OnPaint(PaintEventArgs e)
28 | {
29 | base.OnPaint(e);
30 | Point start = new Point(X_PADDING, X_PADDING);
31 | Point end = new Point(Width - X_PADDING, Height - X_PADDING);
32 | e.Graphics.DrawLine(exitLine, start, end);
33 | start = new Point(X_PADDING, Height - X_PADDING);
34 | end = new Point(Width - X_PADDING, X_PADDING);
35 | e.Graphics.DrawLine(exitLine, start, end);
36 | }
37 |
38 | protected override void OnClick(EventArgs e)
39 | {
40 | base.OnClick(e);
41 | Application.Exit();
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/ABitOfMemory/ExtensionMethods.cs:
--------------------------------------------------------------------------------
1 | namespace ABitOfMemory
2 | {
3 | static class ExtensionMethods
4 | {
5 | ///
6 | /// Gets whether the number is odd.
7 | ///
8 | public static bool IsOdd(this int num)
9 | {
10 | return (num % 2 != 0);
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ABitOfMemory/HighScoreForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Windows.Forms;
4 |
5 | namespace ABitOfMemory
6 | {
7 | public partial class HighScoreForm : Form
8 | {
9 | private int time;
10 | private const float BORDER_STROKE = 6f;
11 | private readonly Pen pen = new Pen(Color.Black, BORDER_STROKE);
12 |
13 | public HighScoreForm()
14 | {
15 | InitializeComponent();
16 | tmrAnimate.Start();
17 | }
18 |
19 | public void SetHighScore(int highscore)
20 | {
21 | labelScore.Text += highscore;
22 | }
23 |
24 | public void SetSequence(string sequence)
25 | {
26 | labelSequence.Text = sequence;
27 | }
28 |
29 | private void timerAnimate_Tick(object sender, EventArgs e)
30 | {
31 | if (time == 4)
32 | {
33 | tmrAnimate.Stop();
34 | return;
35 | }
36 |
37 | // Alternate visibility according to the tick oddness.
38 | Opacity = (++time).IsOdd() ? 0 : 1;
39 | }
40 |
41 |
42 | private void HighScoreForm_Click(object sender, EventArgs e)
43 | {
44 | Close();
45 | }
46 |
47 | private void labelScore_Paint(object sender, PaintEventArgs e)
48 | {
49 | e.Graphics.DrawLine(pen, 0, BORDER_STROKE/2, labelScore.Width, BORDER_STROKE/2);
50 | }
51 |
52 | private void labelSequence_Paint(object sender, PaintEventArgs e)
53 | {
54 | float x1 = labelSequence.Height - BORDER_STROKE + 1;
55 | float y2 = labelSequence.Height - BORDER_STROKE + 1;
56 | e.Graphics.DrawLine(pen, 0, x1, labelSequence.Width, y2);
57 | }
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/ABitOfMemory/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace ABitOfMemory
5 | {
6 |
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new MainForm());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ABitOfMemory/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("A Bit of Memory")]
9 | [assembly: AssemblyDescription("The objective of this game is to remember the longest string of bits possible")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("A Bit of Memory")]
13 | [assembly: AssemblyCopyright("Copyright © Able Opus 2011")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("235e2abc-f409-4519-83a7-b1ba21eede1d")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.1.0.0")]
36 | [assembly: AssemblyFileVersion("1.1.0.0")]
37 |
--------------------------------------------------------------------------------
/ABitOfMemory/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace ABitOfMemory.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 |
26 | [global::System.Configuration.UserScopedSettingAttribute()]
27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
28 | [global::System.Configuration.DefaultSettingValueAttribute("1")]
29 | public int highScore {
30 | get {
31 | return ((int)(this["highScore"]));
32 | }
33 | set {
34 | this["highScore"] = value;
35 | }
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/ABitOfMemory/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 1
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ABitOfMemory/Resources/high_beep.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/ABitOfMemory/Resources/high_beep.wav
--------------------------------------------------------------------------------
/ABitOfMemory/Resources/low_beep.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/ABitOfMemory/Resources/low_beep.wav
--------------------------------------------------------------------------------
/ABitOfMemory/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 1
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/AdvancedBrowser/AppIcon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/AppIcon.ico
--------------------------------------------------------------------------------
/AdvancedBrowser/AppIconArt.ai:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/AppIconArt.ai
--------------------------------------------------------------------------------
/AdvancedBrowser/Drawing/XmlColor.cs:
--------------------------------------------------------------------------------
1 | using System.Drawing;
2 | using System.Xml.Serialization;
3 |
4 | namespace AdvancedWebBrowser.Drawing
5 | {
6 | ///
7 | /// Represents an XML-serializable color.
8 | ///
9 | public class XmlColor
10 | {
11 | private Color color = Color.Black;
12 |
13 | ///
14 | /// Gets or sets the name of this color.
15 | ///
16 | [XmlAttribute]
17 | public string Name
18 | {
19 | get { return ColorTranslator.ToHtml(color); }
20 | set
21 | {
22 | try
23 | {
24 | color = ColorTranslator.FromHtml(value);
25 | }
26 | catch
27 | {
28 | color = Color.Empty;
29 | }
30 | }
31 | }
32 |
33 | public XmlColor() { }
34 |
35 | public XmlColor(Color c) { color = c; }
36 |
37 | ///
38 | /// Convert to standard type.
39 | ///
40 | public Color ToColor()
41 | {
42 | return color;
43 | }
44 |
45 | public static implicit operator Color(XmlColor x)
46 | {
47 | return x.ToColor();
48 | }
49 |
50 | public static implicit operator XmlColor(Color c)
51 | {
52 | return new XmlColor(c);
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/AdvancedBrowser/ExtensionMethods.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Windows.Forms;
4 |
5 | namespace AdvancedWebBrowser
6 | {
7 | static class ExtensionMethods
8 | {
9 | ///
10 | /// Adds an auto-ellipses to the specified string, if the specified string is too long.
11 | ///
12 | /// The text to append to.
13 | /// The font to use as measurement.
14 | /// The maximum width the caption should roughly be.
15 | /// Returns the original string, if the original string is short enough.
16 | public static string AutoEllipsesString(this string text, Font font, int maxWidth)
17 | {
18 | int elipsesWidth = TextRenderer.MeasureText("...", font).Width;
19 | bool appendPeriods = false;
20 |
21 | while (TextRenderer.MeasureText(text, font).Width + elipsesWidth > maxWidth)
22 | {
23 | text = text.Remove(text.Length - 1, 1);
24 | appendPeriods = true;
25 | }
26 |
27 | if (appendPeriods) return text + "...";
28 | return text;
29 | }
30 |
31 | ///
32 | /// Converts the Bitmap to an Icon.
33 | ///
34 | /// The Bitmap to convert.
35 | /// The converted Bitmap as an Icon.
36 | public static Icon ToIcon(this Bitmap bitmap)
37 | {
38 | var handle = bitmap.GetHicon();
39 | return Icon.FromHandle(handle);
40 | }
41 |
42 | ///
43 | /// Shows the Exception's message in an error dialog.
44 | ///
45 | public static void ShowMessage(this Exception ex)
46 | {
47 | MessageBox.Show(ex.Message, Application.ProductName,
48 | MessageBoxButtons.OK, MessageBoxIcon.Error);
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/AdvancedBrowser/Forms/BrowserControl.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace AdvancedWebBrowser.Forms
2 | {
3 | partial class BrowserControl
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Component Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.SuspendLayout();
32 | //
33 | // BrowserControl
34 | //
35 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
36 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
37 | this.Margin = new System.Windows.Forms.Padding(0);
38 | this.Name = "BrowserControl";
39 | this.Size = new System.Drawing.Size(531, 39);
40 | this.ResumeLayout(false);
41 |
42 | }
43 |
44 | #endregion
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/AdvancedBrowser/Forms/BrowserControl.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.Windows.Forms;
4 |
5 | namespace AdvancedWebBrowser.Forms
6 | {
7 | public partial class BrowserControl : UserControl
8 | {
9 | private ExWebBrowser webBrowser;
10 | ///
11 | /// Gets or sets the WebBrowser this and its derivations will interact with.
12 | ///
13 | [Browsable(false)]
14 | public ExWebBrowser WebBrowser
15 | {
16 | get { return webBrowser; }
17 | set
18 | {
19 | if (value != webBrowser)
20 | {
21 | webBrowser = value;
22 | OnWebBrowserChanged();
23 | }
24 | }
25 | }
26 |
27 |
28 | public BrowserControl()
29 | {
30 | InitializeComponent();
31 | }
32 |
33 | ///
34 | /// Occurs when the value of the WebBrowser property has changed.
35 | ///
36 | public event EventHandler WebBrowserChanged;
37 | ///
38 | /// Raises the WebBrowserChanged event.
39 | ///
40 | protected virtual void OnWebBrowserChanged()
41 | {
42 | WebBrowserChanged?.Invoke(this, EventArgs.Empty);
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/AdvancedBrowser/Forms/HistoryDisplay.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace AdvancedWebBrowser.Forms
4 | {
5 | public partial class HistoryDisplay : BrowserControl
6 | {
7 | public HistoryDisplay()
8 | {
9 | InitializeComponent();
10 | }
11 |
12 | protected override void OnVisibleChanged(EventArgs e)
13 | {
14 | base.OnVisibleChanged(e);
15 |
16 | listBoxHistory.Items.Clear();
17 | var history = Settings.Default.History;
18 |
19 | for (int i = history.Length - 1; i > 0; i--)
20 | {
21 | string link = history[i];
22 | listBoxHistory.Items.Add(link);
23 | }
24 |
25 | //foreach (string link in UserSettings.Instance.History)
26 | //{
27 | // listHistory.Items.Add(link);
28 | //}
29 | }
30 |
31 | private void buttonClear_Click(object sender, EventArgs e)
32 | {
33 | Settings.Default.ClearHistory();
34 | listBoxHistory.Items.Clear();
35 | }
36 |
37 | private void listHistory_DoubleClick(object sender, EventArgs e)
38 | {
39 | if (listBoxHistory.SelectedIndex != -1)
40 | WebBrowser.Navigate(listBoxHistory.SelectedItem.ToString());
41 | }
42 |
43 | private void buttonClose_Click(object sender, EventArgs e)
44 | {
45 | Hide();
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/AdvancedBrowser/Forms/RichColorProfile.cs:
--------------------------------------------------------------------------------
1 | using System.Drawing;
2 | using System.Text.RegularExpressions;
3 | using System.Windows.Forms;
4 | using System.Xml.Serialization;
5 | using AdvancedWebBrowser.Drawing;
6 |
7 | namespace AdvancedWebBrowser.Forms
8 | {
9 | ///
10 | /// Represents a color to apply to certain text in RTF.
11 | ///
12 | public class RichColorProfile
13 | {
14 | ///
15 | /// Gets or sets the options to use for looking for substring.
16 | ///
17 | public RegexOptions RegexOptions { get; set; }
18 |
19 | ///
20 | /// Gets or sets the pattern to be used for getting substrings.
21 | ///
22 | public string Pattern { get; set; }
23 |
24 | ///
25 | /// Gets or sets the color to apply to the matches found with this profile.
26 | ///
27 | [XmlElement(Type = typeof(XmlColor))]
28 | public Color Color { get; set; }
29 |
30 | // For serialization
31 | protected RichColorProfile() { }
32 |
33 | ///
34 | /// Initializes a new instance of the class
35 | /// with the specified arguments.
36 | ///
37 | /// The pattern to use to find substrings to colorize.
38 | /// The color to apply to the matches.
39 | public RichColorProfile(string pattern, Color color)
40 | {
41 | Pattern = pattern;
42 | RegexOptions = RegexOptions.None;
43 | Color = color;
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/AdvancedBrowser/Forms/SettingsDialog.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.Windows.Forms;
4 |
5 | namespace AdvancedWebBrowser.Forms
6 | {
7 | public partial class SettingsDialog : Form
8 | {
9 | public SettingsDialog()
10 | {
11 | InitializeComponent();
12 | LoadSettings();
13 | }
14 |
15 | ///
16 | /// Updates the UI to reflect to current settings.
17 | ///
18 | private void LoadSettings()
19 | {
20 | textBoxHomepage.Text = Settings.Default.Homepage;
21 | checkBoxHistory.Checked = Settings.Default.TrackHistory;
22 | checkBoxShowBookmarks.Checked = Settings.Default.ShowBookmarks;
23 | }
24 |
25 | protected override void OnClosing(CancelEventArgs e)
26 | {
27 | Settings.Default.ShowBookmarks = checkBoxShowBookmarks.Checked;
28 | Settings.Default.Homepage = textBoxHomepage.Text;
29 | Settings.Default.TrackHistory = checkBoxHistory.Checked;
30 | base.OnClosing(e);
31 | }
32 |
33 | private void buttonClearHistory_Click(object sender, EventArgs e)
34 | {
35 | Settings.Default.Clear();
36 | buttonClearHistory.Enabled = false;
37 | }
38 |
39 | private void buttonReset_Click(object sender, EventArgs e)
40 | {
41 | buttonReset.Enabled = false;
42 | Settings.Default.Reset();
43 | LoadSettings();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/AdvancedBrowser/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 | using AdvancedWebBrowser.Forms;
4 |
5 | namespace AdvancedWebBrowser
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 | [STAThread]
13 | static void Main(string[] args)
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new MainForm(args));
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/AdvancedBrowser/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Sample Browser")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Sample Browser")]
13 | [assembly: AssemblyCopyright("Copyright © 2013")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("9626cb6b-60e7-4191-8b9c-795477d3c9b5")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/112_RightArrowShort_Green_32x32_72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/112_RightArrowShort_Green_32x32_72.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/Add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/Add.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/AppIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/AppIcon.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/Back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/Back.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/Bookmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/Bookmark.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/Font.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/Font.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/FullScreen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/FullScreen.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/Gear.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/Gear.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/History.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/History.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/Home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/Home.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/Refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/Refresh.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/ResetZoom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/ResetZoom.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/Save.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/Save.ico
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/StatusStrip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/StatusStrip.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/Stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/Stop.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/ViewCode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/ViewCode.png
--------------------------------------------------------------------------------
/AdvancedBrowser/Resources/WordWrap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AdvancedBrowser/Resources/WordWrap.png
--------------------------------------------------------------------------------
/AopBenchmark/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace AopBenchmark
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// The main entry point for the application.
10 | ///
11 | [STAThread]
12 | static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new MainForm());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/AopBenchmark/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("AopBenchmark")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("AopBenchmark")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("e2d9a3de-2c8f-4976-8d65-a28966f45708")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/AopBenchmark/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace AopBenchmark.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 |
26 | [global::System.Configuration.UserScopedSettingAttribute()]
27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
28 | [global::System.Configuration.DefaultSettingValueAttribute("10000")]
29 | public decimal Iterations {
30 | get {
31 | return ((decimal)(this["Iterations"]));
32 | }
33 | set {
34 | this["Iterations"] = value;
35 | }
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/AopBenchmark/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 10000
7 |
8 |
9 |
--------------------------------------------------------------------------------
/AopBenchmark/Vertex.cs:
--------------------------------------------------------------------------------
1 | namespace AopBenchmark
2 | {
3 | class Vertex
4 | {
5 | public int X { get; set; }
6 |
7 | public int Y { get; set; }
8 |
9 | public int Z { get; set; }
10 |
11 | public Vertex(int x, int y, int z)
12 | {
13 | X = x;
14 | Y = y;
15 | Z = z;
16 | }
17 | }
18 |
19 | struct VertexStruct
20 | {
21 | public int X { get; set; }
22 |
23 | public int Y { get; set; }
24 |
25 | public int Z { get; set; }
26 |
27 | public VertexStruct(int x, int y, int z)
28 | {
29 | X = x;
30 | Y = y;
31 | Z = z;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/AopBenchmark/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 10000
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/AopBenchmark/chart.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AopBenchmark/chart.ico
--------------------------------------------------------------------------------
/AopCodeLibrary/GraphicsHelpers.cs:
--------------------------------------------------------------------------------
1 | using System.Drawing;
2 |
3 | namespace AboCodeLibrary
4 | {
5 | public enum Dimension { Width, Height }
6 |
7 | static class GraphicsHelp
8 | {
9 | ///
10 | /// Crops the specified bitmap to the specified region.
11 | ///
12 | /// The bitmap to crop.
13 | /// The area to crop to.
14 | /// The cropped bitmap.
15 | public static Bitmap CropBitmap(Bitmap bitmap, Rectangle cropArea)
16 | {
17 | return bitmap.Clone(cropArea, bitmap.PixelFormat);
18 | }
19 |
20 | ///
21 | /// Gets the constrained equivalent dimension of another changed dimension by
22 | /// finding the difference between the old one and the new one, then returning
23 | /// the dimension with the difference applied to it.
24 | ///
25 | /// The original size.
26 | /// The dimension equivalent to be calculated.
27 | /// The changed dimension to find the difference of.
28 | public static int GetConstrainedDimension(Size originalSize, Dimension dimeToFind, int dimeChanged)
29 | {
30 | if (dimeToFind == Dimension.Height)
31 | {
32 | double difference = dimeChanged / (double)originalSize.Width;
33 | return (int)(originalSize.Height * difference + 0.5);
34 | }
35 | else
36 | {
37 | double difference = dimeChanged / (double)originalSize.Height;
38 | return (int)(originalSize.Width * difference + 0.5);
39 | }
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/AopCodeLibrary/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("AopCodeLibrary")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("AopCodeLibrary")]
13 | [assembly: AssemblyCopyright("Copyright © Able Opus 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("9bb312f6-28e8-4a06-921f-546140470a56")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/AopCodeLibraryDemo/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/AopCodeLibraryDemo/MainForm.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace AopCodeLibraryDemo
2 | {
3 | partial class MainForm
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing)
17 | {
18 | fader.Dispose();
19 | movingGradient.Dispose();
20 | }
21 | if (disposing && (components != null))
22 | {
23 | components.Dispose();
24 | }
25 | base.Dispose(disposing);
26 | }
27 |
28 | #region Windows Form Designer generated code
29 |
30 | ///
31 | /// Required method for Designer support - do not modify
32 | /// the contents of this method with the code editor.
33 | ///
34 | private void InitializeComponent()
35 | {
36 | this.SuspendLayout();
37 | //
38 | // MainForm
39 | //
40 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
41 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
42 | this.ClientSize = new System.Drawing.Size(331, 290);
43 | this.DoubleBuffered = true;
44 | this.Name = "MainForm";
45 | this.Text = "AopCodeLibrary Demo";
46 | this.MouseEnter += new System.EventHandler(this.MainForm_MouseEnter);
47 | this.MouseLeave += new System.EventHandler(this.MainForm_MouseLeave);
48 | this.ResumeLayout(false);
49 |
50 | }
51 |
52 | #endregion
53 | }
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/AopCodeLibraryDemo/MainForm.cs:
--------------------------------------------------------------------------------
1 | using System.Drawing;
2 | using System.Windows.Forms;
3 | using AboCodeLibrary;
4 |
5 | namespace AopCodeLibraryDemo
6 | {
7 | public partial class MainForm : Form
8 | {
9 | private readonly FormFader fader;
10 | private readonly MovingGradient movingGradient;
11 |
12 | public MainForm()
13 | {
14 | InitializeComponent();
15 | fader = new FormFader(this);
16 | fader.FadeInIncrement = 0.05;
17 | movingGradient = new MovingGradient(this, 45, Color.YellowGreen, Color.Black);
18 | movingGradient.StartAnimation();
19 | }
20 |
21 | protected override void OnKeyDown(KeyEventArgs e)
22 | {
23 | base.OnKeyDown(e);
24 |
25 | switch (e.KeyData)
26 | {
27 | case Keys.Up:
28 | this.DockTop();
29 | break;
30 |
31 | case Keys.Down:
32 | this.DockBottom();
33 | break;
34 |
35 | case Keys.Left:
36 | this.DockLeft();
37 | break;
38 |
39 | case Keys.Right:
40 | this.DockRight();
41 | break;
42 | }
43 | }
44 |
45 | private void MainForm_MouseEnter(object sender, System.EventArgs e)
46 | {
47 | fader.FadeTo(1);
48 | }
49 |
50 | private void MainForm_MouseLeave(object sender, System.EventArgs e)
51 | {
52 | fader.FadeTo(0.5);
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/AopCodeLibraryDemo/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace AopCodeLibraryDemo
8 | {
9 | static class Program
10 | {
11 | ///
12 | /// The main entry point for the application.
13 | ///
14 | [STAThread]
15 | static void Main()
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new MainForm());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/AopCodeLibraryDemo/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("AopCodeLibraryDemo")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("AopCodeLibraryDemo")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("2dc17458-7e67-4b57-9de1-705bc5c67153")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/AopCodeLibraryDemo/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace AopCodeLibraryDemo.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/AopCodeLibraryDemo/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/AopStopWatch/AppIcon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AopStopWatch/AppIcon.ico
--------------------------------------------------------------------------------
/AopStopWatch/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace AboStopWatch
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// The main entry point for the application.
10 | ///
11 | [STAThread]
12 | static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new MainForm());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/AopStopWatch/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Aop Stop Watch")]
9 | [assembly: AssemblyDescription("A cool little stop watch.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("Aop Stop Watch")]
13 | [assembly: AssemblyCopyright("Copyright © Able Opus 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("87fa7534-4ece-44ea-babe-68e659c678f3")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/AopStopWatch/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace AboStopWatch.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 |
26 | [global::System.Configuration.UserScopedSettingAttribute()]
27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
28 | [global::System.Configuration.DefaultSettingValueAttribute("0")]
29 | public int FormatIndex {
30 | get {
31 | return ((int)(this["FormatIndex"]));
32 | }
33 | set {
34 | this["FormatIndex"] = value;
35 | }
36 | }
37 |
38 | [global::System.Configuration.UserScopedSettingAttribute()]
39 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
40 | [global::System.Configuration.DefaultSettingValueAttribute("True")]
41 | public bool TopMost {
42 | get {
43 | return ((bool)(this["TopMost"]));
44 | }
45 | set {
46 | this["TopMost"] = value;
47 | }
48 | }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/AopStopWatch/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 0
7 |
8 |
9 | True
10 |
11 |
12 |
--------------------------------------------------------------------------------
/AopStopWatch/Resources/Exit1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AopStopWatch/Resources/Exit1.png
--------------------------------------------------------------------------------
/AopStopWatch/Resources/Pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AopStopWatch/Resources/Pause.png
--------------------------------------------------------------------------------
/AopStopWatch/Resources/Play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AopStopWatch/Resources/Play.png
--------------------------------------------------------------------------------
/AopStopWatch/Resources/Stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/AopStopWatch/Resources/Stop.png
--------------------------------------------------------------------------------
/AopStopWatch/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | 0
13 |
14 |
15 | True
16 |
17 |
18 |
19 |
20 | 0
21 |
22 |
23 | 0, 0, 0, 0
24 |
25 |
26 | True
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/Beeper/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 0
21 |
22 |
23 | 1
24 |
25 |
26 | 300
27 |
28 |
29 | 0
30 |
31 |
32 | 600
33 |
34 |
35 | 1000
36 |
37 |
38 | 300
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/Beeper/ConversionParams.cs:
--------------------------------------------------------------------------------
1 | namespace Beeper
2 | {
3 | class ConversionParams
4 | {
5 | ///
6 | /// Gets the default pause time (in MS). Which should typically be zero.
7 | ///
8 | public int DefaultPause { get; set; }
9 |
10 | ///
11 | /// Gets the default duration (in MS) of a note when duration info cant be retrieved.
12 | ///
13 | public int DefaultDuration { get; set; }
14 |
15 | ///
16 | /// Gets the time (in MS) to pause when a comma is found in music notes.
17 | ///
18 | public int DefaultCommaPause { get; set; }
19 |
20 | ///
21 | /// Gets the time (in MS) to pause when a semi-colon is found in music notes.
22 | ///
23 | public int DefaultSemiColonPause { get; set; }
24 |
25 | ///
26 | /// Gets the time (in MS) to pause when a period is found in music notes.
27 | ///
28 | public int DefaultPeriodPause { get; set; }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Beeper/ExtensionMethods.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace Beeper
5 | {
6 | static class ExtensionMethods
7 | {
8 | public static void ShowError(this Exception ex)
9 | {
10 | MessageBox.Show(ex.Message, Application.ProductName,
11 | MessageBoxButtons.OK, MessageBoxIcon.Error);
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Beeper/Forms/SequenceMenuStrip.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Windows.Forms;
4 |
5 | namespace Beeper.Forms
6 | {
7 | class SequenceMenuStrip : ContextMenuStrip
8 | {
9 | ///
10 | /// Occurs when the user clicks on a sequence and it is loaded.
11 | ///
12 | public event EventHandler SequenceLoaded;
13 |
14 | public SequenceMenuStrip()
15 | {
16 | string[] fileNames = Directory.GetFiles(Application.StartupPath, "*.txt");
17 |
18 | foreach (string fileName in fileNames)
19 | {
20 | string name = Path.GetFileNameWithoutExtension(fileName);
21 | var item = new ToolStripMenuItem(name, null, MenuItem_Clicked);
22 | item.Tag = fileName;
23 | Items.Add(item);
24 | }
25 | }
26 |
27 | private void MenuItem_Clicked(object sender, EventArgs e)
28 | {
29 | if (SequenceLoaded == null) return;
30 | var item = sender as ToolStripMenuItem;
31 |
32 | if (item != null)
33 | {
34 | try
35 | {
36 | SequenceLoaded(this, File.ReadAllText(item.Tag.ToString()));
37 | }
38 | catch (Exception ex)
39 | {
40 | ex.ShowError();
41 | }
42 | }
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Beeper/Forms/SequenceTextBox.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Text.RegularExpressions;
3 | using System.Windows.Forms;
4 |
5 | namespace Beeper.Forms
6 | {
7 | class SequenceTextBox : TextBox
8 | {
9 | private MatchCollection matches;
10 |
11 | public SequenceTextBox()
12 | {
13 | HideSelection = false;
14 | }
15 |
16 | protected override void OnKeyDown(KeyEventArgs e)
17 | {
18 | base.OnKeyDown(e);
19 |
20 | if (e.KeyCode == Keys.A && e.Control)
21 | {
22 | SelectAll();
23 | e.SuppressKeyPress = true;
24 | }
25 | }
26 |
27 | protected override void OnTextChanged(EventArgs e)
28 | {
29 | base.OnTextChanged(e);
30 | matches = Regex.Matches(Text, @"\(\d+-\d+(-\d+)?\)");
31 | }
32 |
33 | ///
34 | /// Selects the text of the specified note.
35 | ///
36 | public void SelectNote(int index)
37 | {
38 | if (matches != null && index >= 0 && index < matches.Count)
39 | {
40 | int start = matches[index].Index;
41 | int len = matches[index].Length;
42 | Select(start, len);
43 | ScrollToCaret();
44 | }
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/Beeper/Fur Elise.txt:
--------------------------------------------------------------------------------
1 | (330-301) (311-301) (330-301) (311-301) (330-301) (247-301) (294-301) (262-301) (220-301-152) (262-301) (330-301) (220-301) (247-301-152) (330-301) (220-301) (247-301) (262-301-300) (330-301) (311-301) (330-301) (311-301) (330-301) (247-301) (294-301) (262-301) (220-301-152) (262-301) (330-301) (220-301) (247-301-152) (330-301) (262-301) (247-301) (220-301) (247-301) (262-301) (294-301) (330-301-152) (392-301) (349-301) (330-301) (294-301-152) (330-301) (330-301) (294-301) (262-301-152) (330-301) (294-301) (262-301) (330-301-300) (330-301) (311-301) (330-301) (311-301) (330-301) (330-301) (294-301) (262-301) (220-301-152) (262-301) (330-301) (220-301) (247-301-152) (330-301) (220-301) (247-301) (262-301-300) (330-301) (311-301) (330-301) (311-301) (330-301) (247-301) (294-301) (262-301) (220-301-152) (262-301) (330-301) (220-301) (247-301-152) (330-301) (262-301) (247-301) (220-301)
2 |
--------------------------------------------------------------------------------
/Beeper/Mario.txt:
--------------------------------------------------------------------------------
1 | (659-125-0) (659-125-125) (659-125-167) (523-125-0) (659-125-125) (784-125-375) (392-125-375) (523-125-250) (392-125-250) (330-125-250) (440-125-125) (494-125-125) (466-125-42) (440-125-125) (392-125-125) (659-125-125) (784-125-125) (880-125-125) (698-125-0) (784-125-125) (659-125-125) (523-125-125) (587-125-0) (494-125-125) (523-125-250) (392-125-250) (330-125-250) (440-125-125) (494-125-125) (466-125-42) (440-125-125) (392-125-125) (659-125-125) (784-125-125) (880-125-125) (698-125-0) (784-125-125) (659-125-125) (523-125-125) (587-125-0) (494-125-375) (784-125-0) (740-125-0) (698-125-42) (622-125-125) (659-125-167) (415-125-0) (440-125-0) (523-125-125) (440-125-0) (523-125-0) (587-125-250) (784-125-0) (740-125-0) (698-125-42) (622-125-125) (659-125-167) (698-125-125) (698-125-0) (698-125-625) (784-125-0) (740-125-0) (698-125-42) (622-125-125) (659-125-167) (415-125-0) (440-125-0) (523-125-125) (440-125-0) (523-125-0) (587-125-250) (622-125-250) (587-125-250) (523-125-1125) (784-125-0) (740-125-0) (698-125-42) (622-125-125) (659-125-167) (415-125-0) (440-125-0) (523-125-125) (440-125-0) (523-125-0) (587-125-250) (784-125-0) (740-125-0) (698-125-42) (622-125-125) (659-125-167) (698-125-125) (698-125-0) (698-125-625) (784-125-0) (740-125-0) (698-125-42) (622-125-125) (659-125-167) (415-125-0) (440-125-0) (523-125-125) (440-125-0) (523-125-0) (587-125-250) (622-125-250) (587-125-250) (523-125-625)
2 |
--------------------------------------------------------------------------------
/Beeper/Merry Christmas.txt:
--------------------------------------------------------------------------------
1 | (200-444-0) (265-444-0) (265-222-0) (295-222-0) (265-222-0) (245-222-0) (220-444-0) (220-444-0) (220-444-0) (295-444-0) (295-222-0) (330-222-0) (295-222-0) (265-222-0) (245-444-0) (200-444-0) (200-444-0) (330-444-0) (330-222-0) (345-222-0) (330-222-0) (300-222-0) (265-444-0) (220-444-0) (200-444-0) (220-444-0) (300-444-0) (245-444-0) (265-888-0)
--------------------------------------------------------------------------------
/Beeper/Mission Impossible.txt:
--------------------------------------------------------------------------------
1 | (784-150-300) (784-150-300) (932-150-150) (1047-150-150) (784-150-300) (784-150-300) (699-150-150) (740-150-150) (784-150-300) (784-150-300) (932-150-150) (1047-150-150) (784-150-300) (784-150-300) (699-150-150) (740-150-150) (932-150-0) (784-150-0) (587-1200-75) (932-150-0) (784-150-0) (554-1200-75) (932-150-0) (784-150-0) (523-1200-150) (466-150-0) (523-150-0)
--------------------------------------------------------------------------------
/Beeper/Note.cs:
--------------------------------------------------------------------------------
1 | namespace Beeper
2 | {
3 | class Note
4 | {
5 | ///
6 | /// Gets the pitch of the note.
7 | ///
8 | public int Frequency { get; }
9 |
10 | ///
11 | /// Gets how long the note will play for.
12 | ///
13 | public int Duration { get; }
14 |
15 | ///
16 | /// Gets or sets the pause at the end of the note.
17 | ///
18 | public int Pause { get; set; }
19 |
20 | ///
21 | /// Initializes a new instance of the class
22 | /// with the specified arguments.
23 | ///
24 | /// The pitch of the note.
25 | /// How long the note will play for.
26 | /// The pause at the end of the note.
27 | public Note(int frequency, int duration, int pause)
28 | {
29 | Duration = duration;
30 | Frequency = frequency;
31 | Pause = pause;
32 | }
33 |
34 | public override string ToString()
35 | {
36 | return Pause > 0 ?
37 | $@"({Frequency}-{Duration}-{Pause})" : $@"({Frequency}-{Duration})";
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Beeper/NumberRange.cs:
--------------------------------------------------------------------------------
1 | namespace Beeper
2 | {
3 | struct NumberRange
4 | {
5 | public int From { get; private set; }
6 |
7 | public int To { get; private set; }
8 |
9 | public NumberRange(int from, int to) : this()
10 | {
11 | From = from;
12 | To = to;
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Beeper/Ode To Joy.txt:
--------------------------------------------------------------------------------
1 | (330-300-0) (330-300-0) (349-300-100) (392-300-0) (392-300-0) (349-300-0) (330-300-0) (294-300-0) (262-300-0) (262-300-0) (294-300-0) (330-300-0) (330-600-0) (294-200-0) (294-400-200) (330-300-0) (330-300-0) (349-300-0) (392-300-0) (392-300-0) (349-300-0) (330-300-0) (294-300-0) (262-300-0) (262-300-0) (294-300-0) (330-300-0) (294-600-0) (262-300-0) (262-500-0)
--------------------------------------------------------------------------------
/Beeper/Play.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/Beeper/Play.ico
--------------------------------------------------------------------------------
/Beeper/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 | using Beeper.Forms;
4 |
5 | namespace Beeper
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new MainForm());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Beeper/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Beeper")]
9 | [assembly: AssemblyDescription("For playing songs with the console speaker.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("Beeper")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("75e412ba-0f13-417f-8b40-60b68e603e04")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Beeper/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | 0
13 |
14 |
15 | 1
16 |
17 |
18 | 300
19 |
20 |
21 | 0
22 |
23 |
24 | 600
25 |
26 |
27 | 1000
28 |
29 |
30 | 300
31 |
32 |
33 |
--------------------------------------------------------------------------------
/Beeper/README.txt:
--------------------------------------------------------------------------------
1 | Beeper is for playing a sequence of notes using the console speakers
2 | (on modern machines its your externals). Each note contains info on the
3 | following:
4 |
5 | Frequency: The pitch of the note
6 | Duration: The length of the note
7 | Pause: The length of the silence after the note
8 |
9 | Ex. (500-100-140)
10 |
11 | The sequence notes can be spaced from each other and the pause is optional.
12 | Each note must be wrapped in parenthesis.
13 |
14 | The speed multiplier alters the playing speed of the loaded song. The lower
15 | the number the faster the song plays.
16 |
17 | The defaults in the parser typically relate to the default values for parsing letter
18 | notes. I parse only the simplest letter notes and not much info can be salvaged.
19 | Though some letter notes will have punctuation to indicate pauses. This is
20 | adjustable through the numeric up down boxes.
21 |
22 | Right-click the main TextBox to see pre-parsed sequences
23 |
--------------------------------------------------------------------------------
/Beeper/Star Wars - The Imperial March.txt:
--------------------------------------------------------------------------------
1 | (440-500-0) (440-500-0) (440-500-0) (349-350-0) (523-150-0) (440-500-0) (349-350-0) (523-150-0) (440-1000-0) (659-500-0) (659-500-0) (659-500-0) (698-350-0) (523-150-0) (415-500-0) (349-350-0) (523-150-0) (440-1000-0) (880-500-0) (440-350-0) (440-150-0) (880-500-0) (830-250-0) (784-250-0) (740-125-0) (698-125-0) (740-250-0) (455-250-0) (622-500-0) (587-250-0) (554-250-0) (523-125-0) (466-125-0) (523-250-0) (349-125-0) (415-500-0) (349-375-0) (440-125-0) (523-500-0) (440-375-0) (523-125-0) (659-1000-0) (880-500-0) (440-350-0) (440-150-0) (880-500-0) (830-250-0) (784-250-0) (740-125-0) (698-125-0) (740-250-0) (455-250-0) (622-500-0) (587-250-0) (554-250-0) (523-125-0) (466-125-0) (523-250-0) (349-250-0) (415-500-0) (349-375-0) (523-125-0) (440-500-0) (349-375-0) (261-125-0) (440-1000-0)
2 |
--------------------------------------------------------------------------------
/BullsEyeGraphics/MainForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Windows.Forms;
4 |
5 | namespace BullsEyeGraphics
6 | {
7 | public partial class MainForm : Form
8 | {
9 | public MainForm()
10 | {
11 | InitializeComponent();
12 | }
13 |
14 | private void buttonPaint_Click(object sender, EventArgs e)
15 | {
16 | //Create a high res bitmap to draw to
17 | Bitmap drawingSurface = new Bitmap(1000, 1000);
18 | //Create a graphics object to do the drawing
19 | using (Graphics graphics = Graphics.FromImage(drawingSurface))
20 | {
21 | //Make it look nice
22 | graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
23 | graphics.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
24 |
25 | //Draw bullseye
26 | graphics.FillEllipse(Brushes.Red, 0, 0, 1000, 1000);
27 | graphics.FillEllipse(Brushes.White, 100, 100, 800, 800);
28 | graphics.FillEllipse(Brushes.Red, 200, 200, 600, 600);
29 | graphics.FillEllipse(Brushes.White, 300, 300, 400, 400);
30 | graphics.FillEllipse(Brushes.Red, 400, 400, 200, 200);
31 | }
32 |
33 | //Display the bitmap in the pictureBox
34 | pictureBox.Image = drawingSurface;
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/BullsEyeGraphics/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace BullsEyeGraphics
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// The main entry point for the application.
10 | ///
11 | [STAThread]
12 | static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new MainForm());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/BullsEyeGraphics/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("BullsEyeGraphics")]
9 | [assembly: AssemblyDescription("A sample of bitmap graphics.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("BullsEyeGraphics")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("add6cde0-4ed0-48eb-af62-b73b8a45c212")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/BullsEyeGraphics/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace BullsEyeGraphics.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/BullsEyeGraphics/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/BullsEyeGraphics/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/BullsEyeGraphics/bullseye.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/BullsEyeGraphics/bullseye.ico
--------------------------------------------------------------------------------
/CaptchaExample/MainForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace CaptchaExample
5 | {
6 | public partial class MainForm : Form
7 | {
8 | private CaptchaData captchaData = new CaptchaData();
9 |
10 | public MainForm()
11 | {
12 | InitializeComponent();
13 | pictureBoxCaptcha.Image = captchaData.Image;
14 | }
15 |
16 | private void buttonGenerate_Click(object sender, EventArgs e)
17 | {
18 | captchaData = new CaptchaData();
19 | pictureBoxCaptcha.Image = captchaData.Image;
20 | textBoxInput.Text = string.Empty;
21 | }
22 |
23 | private void buttonSubmit_Click(object sender, EventArgs e)
24 | {
25 | if (textBoxInput.Text == captchaData.Code)
26 | {
27 | MessageBox.Show("Information Submitted!", Application.ProductName,
28 | MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
29 | }
30 | else
31 | {
32 | MessageBox.Show("Captcha Input Invalid!", Application.ProductName,
33 | MessageBoxButtons.OK, MessageBoxIcon.Error);
34 | }
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/CaptchaExample/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace CaptchaExample
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// The main entry point for the application.
10 | ///
11 | [STAThread]
12 | static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new MainForm());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/CaptchaExample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("CaptchaExample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("CaptchaExample")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("d53f38cc-c3c1-4579-bb29-b0073d0ebb4c")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/CaptchaExample/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace CaptchaExample.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/CaptchaExample/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CaptchaExample/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Eventing/MainForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Windows.Forms;
4 |
5 | namespace Eventing
6 | {
7 | public partial class MainForm : Form
8 | {
9 | // The total pixels the special control has moved left
10 | private int moveLeftAmount;
11 |
12 | public MainForm()
13 | {
14 | InitializeComponent();
15 | }
16 |
17 | private void specialControl_MoveLeft(object sender, MovedLeftEventArgs e)
18 | {
19 | // Add amount moved to total before displaying
20 | moveLeftAmount += e.MoveAmount;
21 | Text = moveLeftAmount.ToString();
22 | }
23 |
24 | private void buttonMoveLeft_Click(object sender, EventArgs e)
25 | {
26 | // Move special control left by 3 pixels.
27 | specialControl.Location = new Point
28 | (specialControl.Location.X - 3, specialControl.Location.Y);
29 | }
30 |
31 | private void buttonMoveRight_Click(object sender, EventArgs e)
32 | {
33 | // Move special control right by 3 pixels.
34 | specialControl.Location = new Point
35 | (specialControl.Location.X + 3, specialControl.Location.Y);
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Eventing/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 |
5 | namespace Eventing
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new MainForm());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Eventing/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Eventing")]
9 | [assembly: AssemblyDescription("A sample for eventing code.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("Eventing")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("4a069bea-7b5a-4199-b9ed-aacac0056ec4")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Eventing/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace Eventing.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Eventing/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Eventing/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/FullscreenShot/AppIcon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/FullscreenShot/AppIcon.ico
--------------------------------------------------------------------------------
/FullscreenShot/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Fullscreen Shot")]
9 | [assembly: AssemblyDescription("A Context Menu App Sample.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("Fullscreen Shot")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("8b606141-ddc3-4945-8bb0-f850654c4aa7")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/FullscreenShot/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace FullscreenShot.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/FullscreenShot/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/FullscreenShot/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/IOSSliderExample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/IOSSliderExample/MainForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace IOSSliderExample
5 | {
6 | public partial class MainForm : Form
7 | {
8 | public MainForm()
9 | {
10 | InitializeComponent();
11 | }
12 |
13 | private void iosSlider_ValueChanged(object sender, EventArgs e)
14 | {
15 | Text = iosSlider.GetValueInfo();
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/IOSSliderExample/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Threading.Tasks;
4 | using System.Windows.Forms;
5 |
6 | namespace IOSSliderExample
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// The main entry point for the application.
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new MainForm());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/IOSSliderExample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("IOS Slider Example")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("IOS Slider Example")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("1dae237d-9dd6-4a3c-9d5b-c51e830b2244")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/IOSSliderExample/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace IOSSliderExample.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/IOSSliderExample/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/IOSSliderExample/Resources/MetalKnob.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/IOSSliderExample/Resources/MetalKnob.png
--------------------------------------------------------------------------------
/IniEditing/Enumerations.cs:
--------------------------------------------------------------------------------
1 | namespace IniEditing
2 | {
3 | ///
4 | /// Specifies a single type (like boolean) or something loosely defined.
5 | ///
6 | public enum GeneralType
7 | {
8 | ///
9 | /// There was no value to process.
10 | ///
11 | Unknown,
12 | ///
13 | /// There were values, non resembled either of the below, so assume a string like type.
14 | ///
15 | Text,
16 | ///
17 | /// A true or false type.
18 | ///
19 | Boolean,
20 | ///
21 | /// Assume a signed integer.
22 | ///
23 | WholeNumber,
24 | ///
25 | /// A number with more than zero decimal places.
26 | ///
27 | PreciseNumber
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/IniEditing/NoFileLoadedException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace IniEditing
4 | {
5 | ///
6 | /// Raises when entering a context where a file needs to be loaded and is not.
7 | ///
8 | public class NoFileLoadedException : Exception
9 | {
10 | ///
11 | /// Initializes a new instance of the
12 | /// class with a specified argument.
13 | ///
14 | /// The message that describes the error.
15 | public NoFileLoadedException(string message) : base(message) { }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/IniEditing/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("IniEditing")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("IniEditing")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("6414c47d-dcf2-485e-94f4-dc4edd37ccb0")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/IniEditingDemo/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/IniEditingDemo/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace IniEditingDemo
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// The main entry point for the application.
10 | ///
11 | [STAThread]
12 | static void Main(string[] args)
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new MainForm(args));
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/IniEditingDemo/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("IniEditing Demo")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("IniEditing Demo")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("99ff0920-fdf1-419a-927f-961d4a376999")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/IniEditingDemo/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace IniEditingDemo.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/IniEditingDemo/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/InputBoxDemo/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/InputBoxDemo/InputBox.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.Windows.Forms;
4 |
5 | namespace InputBoxDemo
6 | {
7 | class InputBox : TextBox
8 | {
9 | ///
10 | /// Occurs when text has been submitted using the enter key.
11 | ///
12 | public event EventHandler TextSubmitted;
13 |
14 | ///
15 | /// Gets whether to use the enter key to submit text.
16 | ///
17 | [Description("Whether to use the enter key to submit text."), Category("Behavior")]
18 | public bool SubmitOnEnter { get; set; }
19 |
20 | protected override void OnKeyDown(KeyEventArgs e)
21 | {
22 | base.OnKeyDown(e);
23 |
24 | if (SubmitOnEnter && e.KeyCode == Keys.Enter && !e.Shift)
25 | {
26 | // Do not add a newline to the text box after clearing
27 | e.SuppressKeyPress = true;
28 | TextSubmitted?.Invoke(this, EventArgs.Empty);
29 | Clear();
30 | }
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/InputBoxDemo/MainForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using System.Windows.Forms;
8 |
9 | namespace InputBoxDemo
10 | {
11 | public partial class MainForm : Form
12 | {
13 | public MainForm()
14 | {
15 | InitializeComponent();
16 | }
17 |
18 | private void inputBox_TextSubmitted(object sender, EventArgs e)
19 | {
20 | chatArea.AppendText(inputBox.Text + "\r\n\r\n");
21 | }
22 |
23 | private void buttonSubmit_Click(object sender, EventArgs e)
24 | {
25 | chatArea.AppendText(inputBox.Text + "\r\n\r\n");
26 | inputBox.Clear();
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/InputBoxDemo/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Threading.Tasks;
4 | using System.Windows.Forms;
5 |
6 | namespace InputBoxDemo
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// The main entry point for the application.
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new MainForm());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/InputBoxDemo/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("InputBox Demo")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("InputBox Demo")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("c2ea9792-14ca-4f81-9059-34c1624f965f")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/InputBoxDemo/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace InputBoxDemo.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/InputBoxDemo/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LogFileRemover/AppIcon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/LogFileRemover/AppIcon.ico
--------------------------------------------------------------------------------
/LogFileRemover/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Windows.Forms;
5 |
6 | namespace LogFileRemover
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// The main entry point for the application.
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new MainForm());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/LogFileRemover/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Log File Remover")]
9 | [assembly: AssemblyDescription("Removes log files from the drive containing the active system root.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("Log File Remover")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("23ff2722-aa2f-4264-a0b2-4bbcf3f760b7")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/LogFileRemover/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace LogFileRemover.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/LogFileRemover/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LogFileRemover/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/MorseChallenge/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | 300
15 |
16 |
17 | 1000
18 |
19 |
20 | 3
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/MorseChallenge/Forms/ChartForm.cs:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms;
2 |
3 | namespace MorseChallenge.Forms
4 | {
5 | public partial class ChartForm : Form
6 | {
7 | public ChartForm()
8 | {
9 | InitializeComponent();
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/MorseChallenge/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 | using MorseChallenge.Forms;
7 |
8 | namespace MorseChallenge
9 | {
10 | static class Program
11 | {
12 | ///
13 | /// The main entry point for the application.
14 | ///
15 | [STAThread]
16 | static void Main()
17 | {
18 | Application.EnableVisualStyles();
19 | Application.SetCompatibleTextRenderingDefault(false);
20 | Application.Run(new MainForm());
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/MorseChallenge/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Morse Challenge")]
9 | [assembly: AssemblyDescription("For practicing morse code interpretation.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("Morse Challenge")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("28707a9a-2878-434b-9717-f6d1ddf19b40")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/MorseChallenge/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 300
7 |
8 |
9 | 1000
10 |
11 |
12 | 3
13 |
14 |
15 |
--------------------------------------------------------------------------------
/MorseChallenge/Resources/Light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/MorseChallenge/Resources/Light.png
--------------------------------------------------------------------------------
/MorseChallenge/Resources/LightIllum.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/MorseChallenge/Resources/LightIllum.png
--------------------------------------------------------------------------------
/MorseChallenge/Resources/Word_List.txt:
--------------------------------------------------------------------------------
1 | poop shmuck turd nugget wanker insult stupidface manwich code gooey vagina hater gobble stick already although am America anything area ball beautiful beginning Bill birds blue boat bottom box bring build building built can't care carefully carried carry center check class coming common complete dark deep distance doing dry easy either else everyone everything fact fall fast felt field finally fine floor follow foot friend full game getting girl glass goes gold gone happened having heart heavy held hold horse hot hour hundred ice Indian instead itself job kept language lay least leave let's list longer low main map matter mind Miss moon mountain moving music needed notice outside past pattern person piece plant poor possible power probably problem question quickly quite rain ran real river road rock round sat scientist shall ship simple size sky slowly snow someone special stand start state stay stood stop stopped strong suddenly summer surface system taken talk tall ten that's themselves third tiny town tried voice walk warm watch weather whether wide wild winter within writing written about after again air all along also an and another any are around as at away back be because been before below between both but by came can come could day did different do does don't down each end even every few find first for found from get give go good great had has have he help her here him his home house how I if in into is it its just know large last left like line little long look made make man many may me men might more most Mr. must my name never new next no not now number of off old on one only or other our out over own part people place put read right said same saw say see she should show small so some something sound still such take tell than that the them then there these they thing think this those thought three through time to together too two under up us use very want water way we well went were what when where which while who why will with word work world would write year you your was
2 |
3 |
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | 1
15 |
16 |
17 | 60
18 |
19 |
20 | False
21 |
22 |
23 | 3
24 |
25 |
26 | False
27 |
28 |
29 | True
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/AppIcon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/MorseCodeRain/MorseCodeRain/AppIcon.ico
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/GameSoundPlayer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Media;
3 | using MorseCodeRain.Properties;
4 |
5 | namespace MorseCodeRain
6 | {
7 | class GameSoundPlayer : IDisposable
8 | {
9 | private readonly SoundPlayer soundPlayer = new SoundPlayer();
10 |
11 | public void PlayRandomDrip()
12 | {
13 | var random = new Random();
14 | int randomNum = random.Next(1, 6);
15 |
16 | switch (randomNum)
17 | {
18 | case 1: soundPlayer.Stream = Resources.Drip_01; break;
19 | case 2: soundPlayer.Stream = Resources.Drip_02; break;
20 | case 3: soundPlayer.Stream = Resources.Drip_03; break;
21 | case 4: soundPlayer.Stream = Resources.Drip_04; break;
22 | case 5: soundPlayer.Stream = Resources.Drip_05; break;
23 | }
24 |
25 | soundPlayer.Play();
26 | }
27 |
28 | public void PlayFail()
29 | {
30 | soundPlayer.Stream = Resources.Wrong;
31 | soundPlayer.Play();
32 | }
33 |
34 | public void PlayCorrect()
35 | {
36 | soundPlayer.Stream = Resources.Right;
37 | soundPlayer.Play();
38 | }
39 |
40 | public void Dispose()
41 | {
42 | soundPlayer.Dispose();
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Hotkey.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace MorseCodeRain
5 | {
6 | [Serializable]
7 | class Hotkey
8 | {
9 | private readonly Action action;
10 |
11 | public Keys Key { get; set; }
12 |
13 | ///
14 | /// Gets a case sensitive name identifier for this instance.
15 | ///
16 | public string Id { get; }
17 |
18 | public Hotkey(string id, Keys shortcutKey, Action action)
19 | {
20 | Id = id;
21 | Key = shortcutKey;
22 | this.action = action;
23 | }
24 |
25 | ///
26 | /// Invokes the action associated with this instance
27 | ///
28 | public void PerformAction()
29 | {
30 | action.Invoke();
31 | }
32 |
33 | #region Equality
34 | protected bool Equals(Hotkey other)
35 | {
36 | return string.Equals(Id, other.Id);
37 | }
38 |
39 | public override bool Equals(object obj)
40 | {
41 | if (ReferenceEquals(null, obj)) return false;
42 | if (ReferenceEquals(this, obj)) return true;
43 | if (obj.GetType() != this.GetType()) return false;
44 | return Equals((Hotkey)obj);
45 | }
46 |
47 | public override int GetHashCode()
48 | {
49 | return (Id != null ? Id.GetHashCode() : 0);
50 | }
51 |
52 | public static bool operator ==(Hotkey left, Hotkey right)
53 | {
54 | return Equals(left, right);
55 | }
56 |
57 | public static bool operator !=(Hotkey left, Hotkey right)
58 | {
59 | return !Equals(left, right);
60 | }
61 | #endregion
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Morse Code Rain.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25123.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MorseCodeRain", "MorseCodeRain.csproj", "{372569EF-1EFF-4910-ADB2-DB61A2675411}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {372569EF-1EFF-4910-ADB2-DB61A2675411}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {372569EF-1EFF-4910-ADB2-DB61A2675411}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {372569EF-1EFF-4910-ADB2-DB61A2675411}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {372569EF-1EFF-4910-ADB2-DB61A2675411}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/MorseCode.cs:
--------------------------------------------------------------------------------
1 | using System.Windows.Forms;
2 |
3 | namespace MorseCodeRain
4 | {
5 | struct MorseCode
6 | {
7 | ///
8 | /// Represents the an empty MorseCode instance with a null char, no code and no keys.
9 | ///
10 | public static readonly MorseCode Empty = new MorseCode('\0', Keys.None, string.Empty);
11 |
12 | ///
13 | /// Gets the morse code sequence.
14 | ///
15 | public string Code { get; private set; }
16 |
17 | ///
18 | /// Gets the letter or number.
19 | ///
20 | public char Character { get; private set; }
21 |
22 | ///
23 | /// Get the key that corresponds to the character.
24 | ///
25 | public Keys Key { get; private set; }
26 |
27 | public MorseCode(Keys key, string code)
28 | : this()
29 | {
30 | Code = code;
31 | Character = key.ToString()[0];
32 | Key = key;
33 | }
34 |
35 | public MorseCode(char c, Keys key, string code)
36 | : this()
37 | {
38 | Code = code;
39 | Character = c;
40 | Key = key;
41 | }
42 | }
43 | }
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace MorseCodeRain
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// The main entry point for the application.
10 | ///
11 | [STAThread]
12 | static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new MainForm());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Morse Code Rain")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("Morse Code Rain")]
13 | [assembly: AssemblyCopyright("Able Opus Copyright © 2013")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("69ee50c2-0766-4302-bdaf-0754faf40c17")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 1
7 |
8 |
9 | 60
10 |
11 |
12 | False
13 |
14 |
15 | 3
16 |
17 |
18 | False
19 |
20 |
21 | True
22 |
23 |
24 |
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Resources/AppIcon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/MorseCodeRain/MorseCodeRain/Resources/AppIcon.ico
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Resources/Drip-01.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/MorseCodeRain/MorseCodeRain/Resources/Drip-01.wav
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Resources/Drip-02.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/MorseCodeRain/MorseCodeRain/Resources/Drip-02.wav
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Resources/Drip-03.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/MorseCodeRain/MorseCodeRain/Resources/Drip-03.wav
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Resources/Drip-04.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/MorseCodeRain/MorseCodeRain/Resources/Drip-04.wav
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Resources/Drip-05.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/MorseCodeRain/MorseCodeRain/Resources/Drip-05.wav
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Resources/Right.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/MorseCodeRain/MorseCodeRain/Resources/Right.wav
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Resources/Wrong.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/MorseCodeRain/MorseCodeRain/Resources/Wrong.wav
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Sprites/FadeToBlackSprite.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Drawing.Drawing2D;
4 |
5 | namespace MorseCodeRain.Sprites
6 | {
7 | ///
8 | /// Represents a fade to black effect.
9 | ///
10 | class FadeFromBlackSprite : Sprite, IDisposable
11 | {
12 | private LinearGradientBrush lgb1, lgb2;
13 |
14 | ///
15 | /// Gets or sets the top and bottom fade as a percentage of the canvas.
16 | ///
17 | public float FadePercent { get; set; }
18 |
19 | public FadeFromBlackSprite()
20 | {
21 | FadePercent = 0.2f;
22 | }
23 |
24 | public override void Draw(Graphics graphics, Size canvasSize, decimal frameLength)
25 | {
26 | if (canvasSize.Height == 0 || canvasSize.Width == 0)
27 | return;
28 |
29 | float height = canvasSize.Height * FadePercent;
30 | graphics.FillRectangle(lgb1, 0, 0, canvasSize.Width, height);
31 | graphics.FillRectangle(lgb2, 0, canvasSize.Height - height, canvasSize.Width, height);
32 | }
33 |
34 | public override void AdjustScale(Size canvasSize)
35 | {
36 | if (canvasSize.Height == 0 || canvasSize.Width == 0)
37 | return;
38 |
39 | float height = canvasSize.Height * FadePercent;
40 | var rect = new RectangleF(0, 0, canvasSize.Width, height);
41 | lgb1 = new LinearGradientBrush(rect, Color.Black, Color.Transparent, 90f);
42 | rect = new RectangleF(0, canvasSize.Height - height, canvasSize.Width, height);
43 | Color faintBlack = Color.FromArgb(200, 0, 0, 0);
44 | lgb2 = new LinearGradientBrush(rect, Color.Transparent, faintBlack, 90f);
45 | lgb1.WrapMode = lgb2.WrapMode = WrapMode.TileFlipXY;
46 | }
47 |
48 | public void Dispose()
49 | {
50 | lgb1.Dispose();
51 | lgb2.Dispose();
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Sprites/PauseSprite.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Windows.Forms;
4 |
5 | namespace MorseCodeRain.Sprites
6 | {
7 | ///
8 | /// Represents the graphics to be displayed when the game is paused
9 | ///
10 | class PauseSprite : Sprite, IDisposable
11 | {
12 | private Font font = new Font("Arial", 20f, FontStyle.Bold);
13 | private Size fontSize;
14 | private const string CAPTION = "Paused";
15 |
16 | public override void AdjustScale(Size canvasSize)
17 | {
18 | font = new Font("Arial", canvasSize.Height / 8f, FontStyle.Bold);
19 | fontSize = TextRenderer.MeasureText(CAPTION, font);
20 | }
21 |
22 | public override void Draw(Graphics graphics, Size canvasSize, decimal frameLength)
23 | {
24 | Size size = new Size(canvasSize.Width, (int)(canvasSize.Height * .3f));
25 | var point = new Point(0, canvasSize.Height/2 - size.Height/2);
26 | var rect = new Rectangle(point, size);
27 | graphics.FillRectangle(new SolidBrush(Color.FromArgb(30, 30, 30)), rect);
28 | int x = canvasSize.Width / 2 - fontSize.Width / 2;
29 | int y = canvasSize.Height / 2 - fontSize.Height / 2;
30 | graphics.DrawString(CAPTION, font, Brushes.White, x, y);
31 | }
32 |
33 | public void Dispose()
34 | {
35 | font.Dispose();
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/MorseCodeRain/MorseCodeRain/Sprites/Sprite.cs:
--------------------------------------------------------------------------------
1 | using System.Drawing;
2 |
3 | namespace MorseCodeRain.Sprites
4 | {
5 | abstract class Sprite
6 | {
7 | ///
8 | /// Override to implement logic to draw this sprite.
9 | ///
10 | public abstract void Draw(Graphics graphics, Size canvasSize, decimal frameLength);
11 |
12 | ///
13 | /// To adjust the scaling values of the sprite.
14 | ///
15 | public virtual void AdjustScale(Size canvasSize) { }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/MsgSandBox/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | 132 512 32
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/MsgSandBox/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace MsgSandBox
8 | {
9 | static class Program
10 | {
11 | ///
12 | /// The main entry point for the application.
13 | ///
14 | [STAThread]
15 | static void Main()
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new MainForm());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/MsgSandBox/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Msg SandBox")]
9 | [assembly: AssemblyDescription("For observing windows messages on a local Form window.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Msg SandBox")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("e1961e1e-bd9b-41cc-8b17-21062bd73081")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/MsgSandBox/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace MsgSandBox.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 |
26 | [global::System.Configuration.UserScopedSettingAttribute()]
27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
28 | [global::System.Configuration.DefaultSettingValueAttribute("132 512 32")]
29 | public string MsgFilter {
30 | get {
31 | return ((string)(this["MsgFilter"]));
32 | }
33 | set {
34 | this["MsgFilter"] = value;
35 | }
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/MsgSandBox/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 132 512 32
7 |
8 |
9 |
--------------------------------------------------------------------------------
/MsgSandBox/SandBoxForm.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace MsgSandBox
2 | {
3 | partial class SandBoxForm
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.SuspendLayout();
32 | //
33 | // SandBoxForm
34 | //
35 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
36 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
37 | this.ClientSize = new System.Drawing.Size(284, 262);
38 | this.Name = "SandBoxForm";
39 | this.Text = "SandBox Form";
40 | this.ResumeLayout(false);
41 |
42 | }
43 |
44 | #endregion
45 | }
46 | }
--------------------------------------------------------------------------------
/MsgSandBox/SandBoxForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace MsgSandBox
5 | {
6 | public partial class SandBoxForm : Form
7 | {
8 | ///
9 | /// Occurs when a windows forms message has been processed.
10 | ///
11 | public event EventHandler MessageReceived;
12 |
13 | public SandBoxForm()
14 | {
15 | InitializeComponent();
16 | }
17 |
18 | protected override void WndProc(ref Message m)
19 | {
20 | base.WndProc(ref m);
21 | MessageReceived?.Invoke(this, m);
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/ParticleGenerator/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 | using ParticleGenerator;
5 |
6 | namespace WindowsFormsApplication3
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// The main entry point for the application.
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new MainForm());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/ParticleGenerator/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Particle Generator")]
9 | [assembly: AssemblyDescription("A fullscreen app that generates particles.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("Particle Generator")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("dae9085f-becf-491a-b4d2-79bcc9a1ad8e")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ParticleGenerator/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace ParticleGenerator.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/ParticleGenerator/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ParticleGenerator/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/ReflectionPluginSystem/ImageEditor.BorderPlugin/Plugin.cs:
--------------------------------------------------------------------------------
1 | using System.Drawing;
2 | using System.Windows.Forms;
3 |
4 | namespace ImageEditor
5 | {
6 | ///
7 | /// The plug-in provider.
8 | ///
9 | public static class Plugin
10 | {
11 | public static string Caption => "Add Border";
12 |
13 | ///
14 | /// Gets the image to be displayed next to the caption on the menu item.
15 | ///
16 | public static Bitmap Bitmap
17 | {
18 | get
19 | {
20 | // You may just retrieve an image from resources.
21 |
22 | // Programmatically draw icon.
23 | Bitmap bitmap = new Bitmap(16, 16);
24 |
25 | using (Graphics graphics = Graphics.FromImage(bitmap))
26 | {
27 | graphics.DrawRectangle(Pens.Red, 0, 0, bitmap.Width - 1, bitmap.Height - 1);
28 | }
29 |
30 | return bitmap;
31 | }
32 | }
33 |
34 | ///
35 | /// The entry point for the plug-in, the only method to be called by the program.
36 | ///
37 | public static void Entry(PictureBox picBox)
38 | {
39 | using (Graphics graphics = Graphics.FromImage(picBox.Image))
40 | {
41 | ControlPaint.DrawBorder3D(graphics, 0, 0, picBox.Image.Width, picBox.Image.Height);
42 | }
43 |
44 | picBox.Invalidate(); // Most likely want the changes to appear right away
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/ReflectionPluginSystem/ImageEditor.BorderPlugin/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ReflectionPluginSystem.BorderPlugin")]
9 | [assembly: AssemblyDescription("A Image Editor plug-in for adding a border around an image.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ReflectionPluginSystem.BorderPlugin")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("b8036ea2-6ae6-4aeb-a7ce-97c4a95b6f95")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ReflectionPluginSystem/ImageEditor.InvertColorsPlugin/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ReflectionPluginSystem.BorderPlugin")]
9 | [assembly: AssemblyDescription("A Image Editor plug-in for inverting the colors of an image.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ReflectionPluginSystem.BorderPlugin")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("b8036ea2-6ae6-4aeb-a7ce-97c4a95b6f95")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ReflectionPluginSystem/ImageEditor/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ReflectionPluginSystem/ImageEditor/BorderPlugin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/ReflectionPluginSystem/ImageEditor/BorderPlugin.dll
--------------------------------------------------------------------------------
/ReflectionPluginSystem/ImageEditor/InvertColorsPlugin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/ReflectionPluginSystem/ImageEditor/InvertColorsPlugin.dll
--------------------------------------------------------------------------------
/ReflectionPluginSystem/ImageEditor/PluginManager.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.IO;
3 | using System.Windows.Forms;
4 |
5 | namespace ImageEditor
6 | {
7 | ///
8 | /// Manages loaded or failed to load plug-ins.
9 | ///
10 | class PluginManager
11 | {
12 | private readonly List plugins = new List();
13 | ///
14 | /// Gets the plug-ins loaded into the application.
15 | ///
16 | public IReadOnlyList Plugins => plugins;
17 |
18 | ///
19 | /// Initializes a new instance of the class
20 | /// with the specified argument.
21 | ///
22 | /// The picture box to alter.
23 | public PluginManager(PictureBox pictureBox)
24 | {
25 | string[] fileNames = Directory.GetFiles(Application.StartupPath, "*.dll");
26 |
27 | foreach (string name in fileNames)
28 | {
29 | plugins.Add(new Plugin(name, pictureBox));
30 | }
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/ReflectionPluginSystem/ImageEditor/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace ImageEditor
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// The main entry point for the application.
10 | ///
11 | [STAThread]
12 | static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new MainForm());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/ReflectionPluginSystem/ImageEditor/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Image Editor")]
9 | [assembly: AssemblyDescription("Depicts a plugin system as well a editor that applies effects to an image.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("Image Editor")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("1ce226d8-955d-48a0-8580-f55578cce8c6")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ReflectionPluginSystem/ImageEditor/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace ImageEditor.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/ReflectionPluginSystem/ImageEditor/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ShortcutHotkeyEditor/MainForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 | using IWshRuntimeLibrary;
4 |
5 | namespace ShortcutHotkeyEditor
6 | {
7 | public partial class MainForm : Form
8 | {
9 | private string shortcutPath;
10 |
11 | public MainForm()
12 | {
13 | InitializeComponent();
14 | }
15 |
16 | private void ChangeShortcutHotkey()
17 | {
18 | IWshShell_Class wshShell = new IWshShell_Class();
19 | object tempObj = wshShell.CreateShortcut(shortcutPath);
20 | IWshShortcut shortcut = (IWshShortcut)tempObj;
21 | shortcut.Hotkey = testBoxHotkey.Text;
22 | shortcut.Save();
23 | }
24 |
25 | private void buttonPath_Click(object sender, EventArgs e)
26 | {
27 | using (OpenFileDialog dialog = new OpenFileDialog())
28 | {
29 | dialog.Filter = "Shortcut|*.lnk";
30 |
31 | if (dialog.ShowDialog() == DialogResult.OK)
32 | {
33 | shortcutPath = dialog.FileName;
34 | buttonPickPath.Text = dialog.SafeFileName;
35 | buttonSave.Enabled = true;
36 | buttonSave.Select();
37 | }
38 | }
39 | }
40 |
41 | private void buttonSave_Click(object sender, EventArgs e)
42 | {
43 | try
44 | {
45 | ChangeShortcutHotkey();
46 | MessageBox.Show("Change saved to shortcut!", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
47 | }
48 | catch (Exception ex)
49 | {
50 | string message = "Unable to change shortcut hotkey!" + "\n" + ex.Message;
51 | MessageBox.Show(message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
52 | }
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/ShortcutHotkeyEditor/Overlay_shortcut.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/ShortcutHotkeyEditor/Overlay_shortcut.ico
--------------------------------------------------------------------------------
/ShortcutHotkeyEditor/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace ShortcutHotkeyEditor
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// The main entry point for the application.
10 | ///
11 | [STAThread]
12 | static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new MainForm());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/ShortcutHotkeyEditor/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Shortcut Hotkey Editor")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Shortcut Hotkey Editor")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("e45d0c8e-d162-417c-9267-7be7aacb6313")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ShortcutHotkeyEditor/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace ShortcutHotkeyEditor.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/ShortcutHotkeyEditor/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ShortcutHotkeyEditor/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/SmoothPainting/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/SmoothPainting/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace SmoothPainting
8 | {
9 | static class Program
10 | {
11 | ///
12 | /// The main entry point for the application.
13 | ///
14 | [STAThread]
15 | static void Main()
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new MainForm());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/SmoothPainting/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("SmoothPainting")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("SmoothPainting")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("db286c2c-7c77-4fbc-9e08-ae4b13569e79")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/SmoothPainting/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace SmoothPainting.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/SmoothPainting/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SmoothPainting/SmoothPainting.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.23107.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SmoothPainting", "SmoothPainting.csproj", "{DB286C2C-7C77-4FBC-9E08-AE4B13569E79}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {DB286C2C-7C77-4FBC-9E08-AE4B13569E79}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {DB286C2C-7C77-4FBC-9E08-AE4B13569E79}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {DB286C2C-7C77-4FBC-9E08-AE4B13569E79}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {DB286C2C-7C77-4FBC-9E08-AE4B13569E79}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/SpeechConsole/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/SpeechConsole/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Speech.Recognition;
3 |
4 | namespace SpeechConsole
5 | {
6 | class Program
7 | {
8 | private static readonly SpeechRecognitionEngine speechRecog = new SpeechRecognitionEngine();
9 |
10 | static void Main(string[] args)
11 | {
12 | Console.WriteLine("Loading grammar...");
13 | Choices choices = new Choices();
14 | // Add some numbers to say.
15 | for (var i = 0; i <= 100; i++)
16 | choices.Add(i.ToString());
17 | // Add commands to exit the program.
18 | choices.Add("close", "exit");
19 | var GB = new GrammarBuilder(choices);
20 | speechRecog.LoadGrammar(new Grammar(GB));
21 | Console.WriteLine("Grammar Loaded!");
22 |
23 | // Set input stream to that of the default recording device.
24 | speechRecog.SetInputToDefaultAudioDevice();
25 |
26 | // Listen for commands continuously until an exit command is heard.
27 | Console.WriteLine("Listening...");
28 | while (true)
29 | {
30 | RecognitionResult result = speechRecog.Recognize();
31 | int confidence = (int)(result.Confidence * 100.0f + 0.5f);
32 | Console.WriteLine($@"Text: {result.Text}, Confidence: {confidence}%");
33 |
34 | if (result.Text.Equals("close", StringComparison.OrdinalIgnoreCase) ||
35 | result.Text.Equals("exit", StringComparison.OrdinalIgnoreCase))
36 | {
37 | break;
38 | }
39 | }
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/SpeechConsole/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("SpeechConsole")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("SpeechConsole")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("3754f1b6-5ffa-47f7-8bd4-a361e78c8865")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TicTacToe/Enumerations.cs:
--------------------------------------------------------------------------------
1 | namespace TicTacToe
2 | {
3 | ///
4 | /// Specifies the tic-tac-toe team.
5 | ///
6 | public enum Team
7 | {
8 | ///
9 | /// The team has been undetermined.
10 | ///
11 | Undetermined,
12 | ///
13 | /// The team is X.
14 | ///
15 | X,
16 | ///
17 | /// The team is O.
18 | ///
19 | O
20 | }
21 |
22 | ///
23 | /// Specifes the opponent move mode. How the opponent behaves.
24 | ///
25 | public enum OpponentMoveMode
26 | {
27 | ///
28 | /// The opponent will make moves without logic.
29 | ///
30 | Random,
31 | ///
32 | /// The opponent will make logical moves.
33 | ///
34 | Logical
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/TicTacToe/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 | using TicTacToe.Forms;
4 |
5 | namespace TicTacToe
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new MainForm());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/TicTacToe/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Tic Tac Toe")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Tic Tac Toe")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("de456d16-24f5-4d73-9f8b-003b8bc35ef3")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TicTacToe/TicTacToe.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25123.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TicTacToe", "TicTacToe.csproj", "{31A112B9-0BEE-4D48-A942-E856B5990D6B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x86 = Debug|x86
12 | Release|Any CPU = Release|Any CPU
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {31A112B9-0BEE-4D48-A942-E856B5990D6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {31A112B9-0BEE-4D48-A942-E856B5990D6B}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {31A112B9-0BEE-4D48-A942-E856B5990D6B}.Debug|x86.ActiveCfg = Debug|Any CPU
19 | {31A112B9-0BEE-4D48-A942-E856B5990D6B}.Debug|x86.Build.0 = Debug|Any CPU
20 | {31A112B9-0BEE-4D48-A942-E856B5990D6B}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {31A112B9-0BEE-4D48-A942-E856B5990D6B}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {31A112B9-0BEE-4D48-A942-E856B5990D6B}.Release|x86.ActiveCfg = Release|Any CPU
23 | {31A112B9-0BEE-4D48-A942-E856B5990D6B}.Release|x86.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/TicTacToe/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/VirtualPianoPlayer/NotesTextBox.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Text;
3 | using System.Windows.Forms;
4 |
5 | namespace VirtualPianoPlayer
6 | {
7 | class NotesTextBox : TextBox
8 | {
9 | public override string Text
10 | {
11 | get
12 | {
13 | return base.Text;
14 | }
15 | set
16 | {
17 | // Filter text
18 | StringBuilder SB = new StringBuilder(value);
19 | SB = SB.Replace("\r", " ");
20 | SB = SB.Replace("\n", " ");
21 | SB = SB.Replace("(", string.Empty);
22 | SB = SB.Replace(")", string.Empty);
23 | SB = SB.Replace("*", "8+");
24 | base.Text = SB.ToString();
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/VirtualPianoPlayer/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace VirtualPianoPlayer
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// The main entry point for the application.
10 | ///
11 | [STAThread]
12 | static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new MainForm());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/VirtualPianoPlayer/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Virtual Piano Player")]
9 | [assembly: AssemblyDescription("Plays the piano on Virtualpiano.net")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Virtual Piano Player")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("3cfde401-9341-46b4-8dec-3df134bf1981")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/VirtualPianoPlayer/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace VirtualPianoPlayer.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/VirtualPianoPlayer/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/VirtualPianoPlayer/Songs/Adele - Rolling in the deep.txt:
--------------------------------------------------------------------------------
1 | h h g D s h h g D s
2 |
3 |
4 | h J h g D s s D D D d s s
5 |
6 |
7 | h h g D s s s h h g D s
8 | h h J h g D s s D D d s s
9 | h h g D s s s h g D s
10 | h J h g D s s D D d s s
11 | h h g D s
12 | h h g D s
13 | h J h g D s s D D D d s s
14 | l v v c Z l Z Z v v c
15 | Z l Z Z v v c Z Z Z c Z v Z Z l v v c Z l
16 | Z Z v v c Z l Z Z v v c Z
17 | v B v B v (Zm) (zB) B v
18 | B v (Zm) m (zB)
19 | v B v B v (Zm) m (zB)
20 | v B v B v (Zm) m (zB)
21 | v (Vl) V (Vl) V (Vl) v c Z
22 | h h g D s s s h h g Z s
23 | h J h g D s s D D D d s s
24 | h h g D s s s h h g D s
25 | h J g D s s D D d s s
26 | l v v c Z l Z Z v v c
27 | Z l Z Z v v c Z Z Z c Z v Z Z
28 | l v v c Z l Z Z v v c Z l Z Z v v c Z
29 | v B v B v (Zm) (zB) B v B v
30 | (Zm) m (zB)
31 | v B v B v (Zm) m (zB)
32 | v (Vl) V (Vl) (Vl) (Vl)
33 | v c Z
34 | B v B v (Zm) (Zb)
35 | B v B v (Zm) m (Zb)
36 | v B v B v (Zm) m (Zb)
37 | v v (Vl) V
38 |
--------------------------------------------------------------------------------
/VirtualPianoPlayer/Songs/Bethoven - Fur Elise.txt:
--------------------------------------------------------------------------------
1 | f D f D f a d s (p6) 0 e t u p (a3) 0 W u O a (s6) 0 e u
2 | f D f D f a d s (p6) 0 e t u p (a3) 0 W u s a (p6) 0 e
3 | a s d (f8) w t - o g f (d5) w r - i f d (s6) 0 e - u d s (a3) 0 u u f u f f x D f D f D f D f D f a d s (p6) 0 e t u p (a3) 0 W u O a (s6) 0 e u
4 | f D f D f a d s (p6) 0 e t u p (a3) 0 W u s a (p6)
5 |
6 |
--------------------------------------------------------------------------------
/VirtualPianoPlayer/Songs/Hallelujah.txt:
--------------------------------------------------------------------------------
1 | 6u 8o w to uo t 7o 6p 0p ep t e 6u 8o
2 | w to uo t 7o 6p 0p ep t e 5o 4p 8 qp e qp 4p
3 | 5p 9 wo ro w 5i 8o w t uo t 8 5 9 w r w 9u 8uo
4 | w tuo uo t 8uo 4ip 8 qip 5oa 9 wo 6us 0 eus tus
5 | e 6us 4us 8 qus ed q 4s 5pd 9 wd r w 5d-f r u
6 | af d 6d 0 e tps e 0 6 0 e tu e 6o 4p 8 q ep q 8
7 | 4 8 q ep q 4o 6u 0 e tu e 0 6 0 e tu e 6o 4p 8
8 | q ep q 8 4 8 q ep q 4o 1u 5 8 0 8i 5u 5y 9 w
9 | r wt 5r 6e 0 e ru 8 w t u t 7 6 0 e t e 6 8 w t u t 7 6 0
10 | e t e 6u 8o w to uo t 7o 6p 0p ep t e 6u 8o
11 | w to uo t 7o 6p 0p ep t e 5o 4p 8 qp e qp 4p
12 | 5p 9 wo ro w 5i 8o w t uo t 8 5 9 w r w 9u 8uo
13 | w tuo uo t 8uo 4ip 8 qip 5oa 9 wo 6us 0 eus tus
14 | e 6us 4us 8 qus ed q 4s 5pd 9 wd r w 5d-f r u
15 | af d 6d 0 e tps e 0 6 0 e tu e 6o 4p 8 q ep q 8
16 | 4 8 q ep q 4o 6u 0 e tu e 0 6 0 e tu e 6o 4p 8
17 | q ep q 8 4 8 q ep q 4o 1u 5 8 0 8i 5u 5y 9 w
18 | r wt 5r 6e 0 e ru 8 w t u t 7 6 0 e t e 6 8 w t u t 7 6 0
19 | e t e 6u 8o w to uo t 7o 6p 0p ep t e 6u 8o
20 | w to uo t 7o 6p 0p ep t e 5o 4p 8 qp e qp 4p
21 | 5p 9 wo ro w 5i 8o w t uo t 8 5 9 w r w 9u 8uo
22 | w tuo uo t 8uo 4ip 8 qip 5oa 9 wo 6us 0 eus tus
23 | e 6us 4us 8 qus ed q 4s 5pd 9 wd r w 5d-f r u
24 | af d 6d 0 e tps e 0 6 0 e tu e 6o 4p 8 q ep q 8
25 | 4 8 q ep q 4o 6u 0 e tu e 0 6 0 e tu e 6o 4p 8
26 | q ep q 8 4 8 q ep q 4o 1u 5 8 0 8i 5u 5y 9 w
27 | r wt 5r 6e 0 e ru tp us pf j k l x j-l-x-b
28 |
--------------------------------------------------------------------------------
/VirtualPianoPlayer/Songs/Metallica - Nothing Else Matters.txt:
--------------------------------------------------------------------------------
1 | 3 w r u r w
2 | 3 w r u r w
3 | 3 w r u r w
4 | 3 w r u r a 3a
5 | r w ra u r w 3
6 | w ra rs a p ra
7 | p o I u
8 | 6u t u I u t
9 | 6 t u u 6tu 7u 8tu
10 | 8 t u t o u t 8tu 9yu
11 | 9 y I y u p u I r u
12 | 3 o a f r w
13 | 3 w r u r w
14 | 3 w r u r w
15 | 3 w r u r w
16 | 3 0 r u ao
17 | 9 e y 8 w tu
18 | 3 0 r u ao
19 | 9 e y 8 w tu
20 | 3 0 r u ao
21 | 9 p I y 8 o u t
22 | 5 o y r 7 I Y r
23 | 3 w r u r w
24 | 3 w r u r w
25 | 3 w r o w u r w (capslock on) 9I (capslock off)
26 | 9 o y w 8o y w
27 | 5 $ 3 w r o w u r w 9I
28 | 9 y e w 8y w y
29 | 5 $ 3 w r o w u r w 9I
30 | 9 o y w 8y y w
31 | 5 w yo 7er I I r
32 | 3 w r u r w
33 | 3 w r u
34 |
--------------------------------------------------------------------------------
/VirtualPianoPlayer/Songs/Moonlight sonata.txt:
--------------------------------------------------------------------------------
1 | % * 0 % * 0 % * 0 % * 0 $ * 0 % * 0 $ * 0 % * 0 6 * 0 6 * 0 6 9 Q 6 9 Q $ 8 Q $ * 0 $ * ( $ 8 ( 3 $ * $ * 0 $ * 0 $W *-0 W-$W ( Q $ ( Q $ ( Q $W (-Q W-$W * 0 $ * 0 6$ * Q 6 * Q $W 7 0 $ 7 0 6Q 7 ( 6r 7 ( $0 7 0 $ 7 0 $ 7 0 $ 7 0 5 7 0 5 7 0 5 7
2 |
--------------------------------------------------------------------------------
/VirtualPianoPlayer/Songs/Tong Hua - Guang Liang.txt:
--------------------------------------------------------------------------------
1 | sgj sgj h psh psg psg f osf id id is os
2 |
3 | s g f g s - s g f g s - s g f g - g g d d s
4 |
5 | s g f g s - s j h h g - s g f g d - d d g z l
6 |
7 | h h J J j j - j j f h g g f g - g f g J - s l J j h
8 |
9 | h h J J j j - j j c x z x c - c h g z - z z l l l
10 |
11 | s l J j j J j - j J j J j h g - g j l z - z z l h h J j
12 |
13 | g j l z - z z l h h J j J j h g - h j d - d g g f - dgP - spi - yoP - tip
14 |
15 | tp yP us iPd ips yoP sfh sfh
16 |
17 | h h J J j j - j j f sh sg sg sf sg - sg f g J - s sl JP jp ho
18 |
19 | h h J J j j - j j jc jx jz jx jc
20 |
21 | cg h g gz - gz gz gz gl gl gl
22 |
23 | s l J gj gj J gj - gj J gj J gj h g - g j l gz - gz gz hl h h J j
24 |
25 | g j l gz - gz gz hl h h J j J j h g - h j d - d g g (h.g.f) g
26 |
27 | d z l kh - kh l kh - kh l kh l kh j h
28 |
29 | h k z xh xh xh zj j j l k
30 |
31 | h k z xlh xh xh zj j j l k l k j h
32 |
33 | j k fs - fs h h (j.h.G) h - j k f - f h h G h - khd
34 |
--------------------------------------------------------------------------------
/VirtualPianoPlayer/VirtualPianoPlayer.csproj.DotSettings:
--------------------------------------------------------------------------------
1 |
2 | True
--------------------------------------------------------------------------------
/VirtualPianoPlayer/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/WebFilesEnhanced/NewFileDialog.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 | using System.IO;
4 | using System.Linq;
5 |
6 | namespace WebFilesEnhanced
7 | {
8 | public partial class NewFileDialog : Form
9 | {
10 | public string InitialDirectory { get; set; }
11 |
12 | public string FileName => textBoxFileName.Text;
13 |
14 | public NewFileDialog()
15 | {
16 | InitializeComponent();
17 | }
18 |
19 | private void buttonOk_Click(object sender, EventArgs e)
20 | {
21 | if (Path.GetInvalidFileNameChars().Any(c => textBoxFileName.Text.Contains(c)))
22 | {
23 | MessageBox.Show("Invalid characters in file name.", Application.ProductName,
24 | MessageBoxButtons.OK, MessageBoxIcon.Error);
25 | return;
26 | }
27 |
28 | string ext = Path.GetExtension(textBoxFileName.Text);
29 | string fileName = InitialDirectory + '\\' + textBoxFileName.Text;
30 |
31 | if (ext == ".html" || ext == ".htm")
32 | {
33 | DialogResult result = MessageBox.Show(
34 | "Would you like to insert a HTML template int your document?",
35 | Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
36 |
37 | switch (result)
38 | {
39 | case DialogResult.Yes:
40 | string templateData = File.ReadAllText("template.html");
41 | File.WriteAllText(fileName, templateData);
42 | break;
43 |
44 | case DialogResult.No:
45 | File.Create(fileName);
46 | break;
47 | }
48 | }
49 | else
50 | {
51 | File.Create(fileName);
52 | }
53 |
54 | Close();
55 | }
56 |
57 | private void buttonCancel_Click(object sender, EventArgs e) =>
58 | Close();
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/WebFilesEnhanced/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 |
5 | namespace WebFilesEnhanced
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new MainForm());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/WebFilesEnhanced/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Web Files Enhanced")]
9 | [assembly: AssemblyDescription("A simple website editor that allows you to see your changes as you edit the page.")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Able Opus")]
12 | [assembly: AssemblyProduct("Web Files Enhanced")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("e72616a5-d6ca-4b24-9cda-049adf9b9d70")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/WebFilesEnhanced/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Tahoma, 11.25pt
7 |
8 |
9 |
10 |
11 |
12 | 0
13 |
14 |
15 | Vertical
16 |
17 |
18 |
--------------------------------------------------------------------------------
/WebFilesEnhanced/SettingsDialog.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Windows.Forms;
4 | using WebFilesEnhanced.Properties;
5 |
6 | namespace WebFilesEnhanced
7 | {
8 | public partial class SettingsDialog : Form
9 | {
10 | public event EventHandler FontPicked;
11 |
12 | public event EventHandler SplitViewOrientationChanged;
13 |
14 | public SettingsDialog()
15 | {
16 | InitializeComponent();
17 | checkBoxHorizSplitView.Checked = Settings.Default.SplitViewOrient == Orientation.Horizontal;
18 | }
19 |
20 | private void buttonPickFont_Click(object sender, EventArgs e)
21 | {
22 | using (FontDialog dialog = new FontDialog())
23 | {
24 | dialog.ShowEffects = false;
25 | dialog.AllowScriptChange = false;
26 |
27 | if (dialog.ShowDialog() == DialogResult.OK)
28 | {
29 | Settings.Default.EditorFont = dialog.Font;
30 | FontPicked?.Invoke(this, dialog.Font);
31 | }
32 | }
33 | }
34 |
35 | private void checkBoxHorizSplitView_CheckedChanged(object sender, EventArgs e)
36 | {
37 | Orientation orientation = checkBoxHorizSplitView.Checked ? Orientation.Horizontal : Orientation.Vertical;
38 | Settings.Default.SplitViewOrient = Orientation.Horizontal;
39 | SplitViewOrientationChanged?.Invoke(this, orientation);
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/WebFilesEnhanced/WebFiles.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AbleOpus/SamplesAndUtils/9fbe7e8dcfa77813b5e7700cc3f589397a8ecc30/WebFilesEnhanced/WebFiles.ico
--------------------------------------------------------------------------------
/WebFilesEnhanced/template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/WindowMatrix/MainForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Drawing.Imaging;
4 | using System.Windows.Forms;
5 |
6 | namespace WindowMatrix
7 | {
8 | public partial class MainForm : Form
9 | {
10 | public MainForm()
11 | {
12 | InitializeComponent();
13 | }
14 |
15 | private void timerDraw_Tick(object sender, EventArgs e) =>
16 | BackgroundImage = CaptureRegion(Bounds);
17 |
18 | ///
19 | /// Captures the specified screen region as a a bitmap.
20 | ///
21 | /// The rectangular region to capture.
22 | /// The captured bitmap.
23 | public static Bitmap CaptureRegion(Rectangle rect)
24 | {
25 | Bitmap screenshot = new Bitmap(rect.Width, rect.Height, PixelFormat.Format32bppRgb);
26 |
27 | using (Graphics graphics = Graphics.FromImage(screenshot))
28 | {
29 | graphics.CopyFromScreen(rect.Location, Point.Empty, rect.Size);
30 | }
31 |
32 | return screenshot;
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/WindowMatrix/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 |
5 | namespace WindowMatrix
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new MainForm());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/WindowMatrix/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Window Matrix")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Window Matrix")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("67a07102-0b28-446a-90b8-190671da050a")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/WindowMatrix/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WindowMatrix.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/WindowMatrix/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/WindowMatrix/Window Matrix.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25123.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowMatrix", "WindowMatrix.csproj", "{1748B7E2-CF33-4AAE-9432-6D2C0E037B3B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x86 = Debug|x86
12 | Release|Any CPU = Release|Any CPU
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {1748B7E2-CF33-4AAE-9432-6D2C0E037B3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {1748B7E2-CF33-4AAE-9432-6D2C0E037B3B}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {1748B7E2-CF33-4AAE-9432-6D2C0E037B3B}.Debug|x86.ActiveCfg = Debug|Any CPU
19 | {1748B7E2-CF33-4AAE-9432-6D2C0E037B3B}.Debug|x86.Build.0 = Debug|Any CPU
20 | {1748B7E2-CF33-4AAE-9432-6D2C0E037B3B}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {1748B7E2-CF33-4AAE-9432-6D2C0E037B3B}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {1748B7E2-CF33-4AAE-9432-6D2C0E037B3B}.Release|x86.ActiveCfg = Release|Any CPU
23 | {1748B7E2-CF33-4AAE-9432-6D2C0E037B3B}.Release|x86.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/WindowMatrix/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/WordListProc/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | This is test text
16 |
17 |
18 | 0
19 |
20 |
21 | 0
22 |
23 |
24 |
25 |
26 | This is test text
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/WordListProc/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace WordListProc
8 | {
9 | static class Program
10 | {
11 | ///
12 | /// The main entry point for the application.
13 | ///
14 | [STAThread]
15 | static void Main()
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new MainForm());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/WordListProc/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Word List Proc")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Word List Proc")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("1a3e88d6-c8d9-48d2-97aa-0f18f92e080a")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/WordListProc/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | This is test text
7 |
8 |
9 | 0
10 |
11 |
12 | 0
13 |
14 |
15 |
--------------------------------------------------------------------------------