├── Ship's Bells
├── tang.wav
├── tangtang.wav
├── Resources
│ ├── tang.wav
│ └── tangtang.wav
├── Paomedia-Small-N-Flat-Bell.ico
├── App.config
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ ├── app.manifest
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── AboutWindow.cs
├── Program.cs
├── MainWindow.cs
├── BellRinger.cs
├── AboutWindow.Designer.cs
├── Ship's Bells.csproj
├── AboutWindow.resx
└── MainWindow.Designer.cs
├── README.md
├── Ship's Bells.sln
├── LICENSE
├── .gitattributes
└── .gitignore
/Ship's Bells/tang.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orffen/Ships-Bells-CS/master/Ship's Bells/tang.wav
--------------------------------------------------------------------------------
/Ship's Bells/tangtang.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orffen/Ships-Bells-CS/master/Ship's Bells/tangtang.wav
--------------------------------------------------------------------------------
/Ship's Bells/Resources/tang.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orffen/Ships-Bells-CS/master/Ship's Bells/Resources/tang.wav
--------------------------------------------------------------------------------
/Ship's Bells/Resources/tangtang.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orffen/Ships-Bells-CS/master/Ship's Bells/Resources/tangtang.wav
--------------------------------------------------------------------------------
/Ship's Bells/Paomedia-Small-N-Flat-Bell.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orffen/Ships-Bells-CS/master/Ship's Bells/Paomedia-Small-N-Flat-Bell.ico
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Ships-Bells
2 | A public domain no-frills program to strike the bells of the watch.
3 |
4 | Based upon the original [Ship's Bells](http://www.nigelk.org/shipsbells/) by Nigel Kerr.
5 |
--------------------------------------------------------------------------------
/Ship's Bells/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Ship's Bells/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Ship's Bells/AboutWindow.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace Ships_Bells
5 | {
6 | public partial class AboutWindow : Form
7 | {
8 | public AboutWindow()
9 | {
10 | InitializeComponent();
11 | }
12 |
13 | private void buttonClose_Click(object sender, EventArgs e)
14 | {
15 | this.Close();
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Ship's Bells/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading;
3 | using System.Windows.Forms;
4 |
5 | namespace Ships_Bells
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 |
13 | static Mutex mutexShipsBells;
14 |
15 | [STAThread]
16 | static void Main()
17 | {
18 | if (Program.IsSingleInstance())
19 | {
20 | Application.EnableVisualStyles();
21 | Application.SetCompatibleTextRenderingDefault(false);
22 | new MainWindow();
23 | Application.Run();
24 | }
25 | }
26 |
27 | static bool IsSingleInstance()
28 | {
29 | try
30 | {
31 | Mutex.OpenExisting("mutexShipsBells");
32 | }
33 | catch (WaitHandleCannotBeOpenedException)
34 | {
35 | Program.mutexShipsBells = new Mutex(true, "mutexShipsBells");
36 | return true;
37 | }
38 | return false;
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Ship's Bells/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 Ships_Bells.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.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 |
--------------------------------------------------------------------------------
/Ship's Bells.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.31005.135
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ship's Bells", "Ship's Bells\Ship's Bells.csproj", "{45B647F6-C864-4167-AD1D-8669CCC945E3}"
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 | {45B647F6-C864-4167-AD1D-8669CCC945E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {45B647F6-C864-4167-AD1D-8669CCC945E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {45B647F6-C864-4167-AD1D-8669CCC945E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {45B647F6-C864-4167-AD1D-8669CCC945E3}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {24183605-DFE0-4F2B-95DE-CDB6E55851FC}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | This is free and unencumbered software released into the public domain.
2 |
3 | Anyone is free to copy, modify, publish, use, compile, sell, or
4 | distribute this software, either in source code form or as a compiled
5 | binary, for any purpose, commercial or non-commercial, and by any
6 | means.
7 |
8 | In jurisdictions that recognize copyright laws, the author or authors
9 | of this software dedicate any and all copyright interest in the
10 | software to the public domain. We make this dedication for the benefit
11 | of the public at large and to the detriment of our heirs and
12 | successors. We intend this dedication to be an overt act of
13 | relinquishment in perpetuity of all present and future rights to this
14 | software under copyright law.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
24 | For more information, please refer to
25 |
--------------------------------------------------------------------------------
/Ship's Bells/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("Ship's Bells")]
8 | [assembly: AssemblyDescription("A public domain no-frills program to strike the bells of the watch.")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("")]
11 | [assembly: AssemblyProduct("Ship's Bells")]
12 | [assembly: AssemblyCopyright("Released into the Public Domain 2021")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(false)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("45b647f6-c864-4167-ad1d-8669ccc945e3")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.4.1.0")]
35 | [assembly: AssemblyFileVersion("1.4.1.0")]
36 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/Ship's Bells/MainWindow.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace Ships_Bells
5 | {
6 | public partial class MainWindow : Form
7 | {
8 | private static System.Timers.Timer timer;
9 | public MainWindow()
10 | {
11 | InitializeComponent();
12 | timer = new System.Timers.Timer();
13 | timer.SynchronizingObject = this;
14 | timer.Elapsed += StrikeTheBell;
15 | timer.Interval = GetInterval();
16 | timer.Start();
17 | }
18 |
19 | private void StrikeTheBell(object sender, EventArgs e)
20 | {
21 | BellRinger bellRinger = new BellRinger();
22 | labelBells.Text = bellRinger.label;
23 | notifyIcon.Text = bellRinger.label;
24 | timer.Stop();
25 | timer.Interval = GetInterval();
26 | timer.Start();
27 | }
28 |
29 | private int GetInterval()
30 | {
31 | DateTime now = DateTime.Now;
32 | int minutes = (59 - now.Minute) % 30;
33 | int seconds = 59 - now.Second;
34 | int milliseconds = 1000 - now.Millisecond;
35 | return (minutes * 60 * 1000) + (seconds * 1000) + milliseconds;
36 | }
37 |
38 | private void ShowWindow()
39 | {
40 | WindowState = FormWindowState.Normal;
41 | ShowInTaskbar = true;
42 | Show();
43 | Activate();
44 | }
45 |
46 | private void notifyIcon_MouseDoubleClick(object sender, MouseEventArgs e)
47 | {
48 | ShowWindow();
49 | }
50 |
51 | private void buttonAbout_Click(object sender, EventArgs e)
52 | {
53 | var aboutForm = Application.OpenForms["AboutWindow"];
54 | if (aboutForm == null)
55 | {
56 | new AboutWindow().Show();
57 | }
58 | else
59 | {
60 | aboutForm.BringToFront();
61 | }
62 | }
63 |
64 | private void buttonQuit_Click(object sender, EventArgs e)
65 | {
66 | Application.Exit();
67 | }
68 |
69 | private void MainWindow_Resize(object sender, EventArgs e)
70 | {
71 | if (WindowState == FormWindowState.Minimized)
72 | {
73 | ShowInTaskbar = false;
74 | Hide();
75 | }
76 | else
77 | {
78 | ShowInTaskbar = true;
79 | Show();
80 | }
81 | }
82 |
83 | private void quitToolStripMenuItem_Click(object sender, EventArgs e)
84 | {
85 | Application.Exit();
86 | }
87 |
88 | private void notifyIcon_MouseClick(object sender, MouseEventArgs e)
89 | {
90 | if (e.Button == System.Windows.Forms.MouseButtons.Right)
91 | {
92 | contextMenuStrip.Show(Cursor.Position);
93 | }
94 | else
95 | {
96 | ShowWindow();
97 | }
98 | }
99 |
100 | private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
101 | {
102 | Application.Exit();
103 | }
104 | }
105 | }
106 |
--------------------------------------------------------------------------------
/Ship's Bells/Properties/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
48 |
55 |
56 |
70 |
--------------------------------------------------------------------------------
/Ship's Bells/BellRinger.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading;
3 |
4 | namespace Ships_Bells
5 | {
6 | class BellRinger
7 | {
8 | private static System.Media.SoundPlayer oneBell = new System.Media.SoundPlayer(Properties.Resources.tang);
9 | private static System.Media.SoundPlayer twoBells = new System.Media.SoundPlayer(Properties.Resources.tangtang);
10 |
11 | private static String[] watchNames = { "First", "Middle", "Morning", "Forenoon", "Afternoon", "First Dog", "Second Dog" };
12 | private static String[] bellNames = { "no?!?!?", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight" };
13 |
14 | public int watch;
15 | public int numberOfBells;
16 | public String label;
17 |
18 | public BellRinger()
19 | {
20 | watch = DetermineWatch();
21 | numberOfBells = DetermineBells();
22 | label = Display();
23 | Thread thread = new Thread(Ring) { IsBackground = true };
24 | thread.Start();
25 | }
26 |
27 | private int DetermineWatch()
28 | {
29 | int minutes = DateTime.Now.Minute;
30 | int w = DateTime.Now.Hour * 2;
31 | if (minutes >= 45)
32 | {
33 | w += 2;
34 | }
35 | else if (minutes > 15)
36 | {
37 | w += 1;
38 | }
39 | return w;
40 | }
41 |
42 | private int DetermineWatchName()
43 | {
44 | int w = watch % 48;
45 | if (w == 0)
46 | {
47 | return 0;
48 | }
49 | else if (w <= 8)
50 | {
51 | return 1;
52 | }
53 | else if (w <= 16)
54 | {
55 | return 2;
56 | }
57 | else if (w <= 24)
58 | {
59 | return 3;
60 | }
61 | else if (w <= 32)
62 | {
63 | return 4;
64 | }
65 | else if (w <= 36)
66 | {
67 | return 5;
68 | }
69 | else if (w <= 40)
70 | {
71 | return 6;
72 | }
73 | else
74 | {
75 | return 0;
76 | }
77 | }
78 |
79 | private int DetermineBells()
80 | {
81 | if (watch == 39)
82 | {
83 | return 3;
84 | }
85 | else if (watch == 38)
86 | {
87 | return 2;
88 | }
89 | else if (watch == 37)
90 | {
91 | return 1;
92 | }
93 | int b = watch % 8;
94 | if (b == 0)
95 | {
96 | b = 8;
97 | }
98 | return b;
99 | }
100 |
101 | private String Display()
102 | {
103 | String disp = (bellNames[numberOfBells] + " bell"
104 | + (numberOfBells == 1 ? "" : "s") + " in the "
105 | + watchNames[DetermineWatchName()] + " Watch.");
106 | return disp;
107 | }
108 |
109 | private void Ring()
110 | {
111 | int b = numberOfBells;
112 | while (b > 0)
113 | {
114 | if (b >= 2)
115 | {
116 | twoBells.PlaySync();
117 | b -= 2;
118 | }
119 | else
120 | {
121 | oneBell.PlaySync();
122 | b -= 1;
123 | }
124 | }
125 | }
126 | }
127 | }
128 |
--------------------------------------------------------------------------------
/Ship's Bells/Properties/Resources.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 Ships_Bells.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Ships_Bells.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 |
63 | ///
64 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
65 | ///
66 | internal static System.Drawing.Icon Paomedia_Small_N_Flat_Bell {
67 | get {
68 | object obj = ResourceManager.GetObject("Paomedia_Small_N_Flat_Bell", resourceCulture);
69 | return ((System.Drawing.Icon)(obj));
70 | }
71 | }
72 |
73 | ///
74 | /// Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream.
75 | ///
76 | internal static System.IO.UnmanagedMemoryStream tang {
77 | get {
78 | return ResourceManager.GetStream("tang", resourceCulture);
79 | }
80 | }
81 |
82 | ///
83 | /// Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream.
84 | ///
85 | internal static System.IO.UnmanagedMemoryStream tangtang {
86 | get {
87 | return ResourceManager.GetStream("tangtang", resourceCulture);
88 | }
89 | }
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/Ship's Bells/AboutWindow.Designer.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace Ships_Bells
3 | {
4 | partial class AboutWindow
5 | {
6 | ///
7 | /// Required designer variable.
8 | ///
9 | private System.ComponentModel.IContainer components = null;
10 |
11 | ///
12 | /// Clean up any resources being used.
13 | ///
14 | /// true if managed resources should be disposed; otherwise, false.
15 | protected override void Dispose(bool disposing)
16 | {
17 | if (disposing && (components != null))
18 | {
19 | components.Dispose();
20 | }
21 | base.Dispose(disposing);
22 | }
23 |
24 | #region Windows Form Designer generated code
25 |
26 | ///
27 | /// Required method for Designer support - do not modify
28 | /// the contents of this method with the code editor.
29 | ///
30 | private void InitializeComponent()
31 | {
32 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutWindow));
33 | this.tableLayoutPanelAbout = new System.Windows.Forms.TableLayoutPanel();
34 | this.labelAboutText = new System.Windows.Forms.Label();
35 | this.buttonClose = new System.Windows.Forms.Button();
36 | this.tableLayoutPanelAbout.SuspendLayout();
37 | this.SuspendLayout();
38 | //
39 | // tableLayoutPanelAbout
40 | //
41 | this.tableLayoutPanelAbout.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
42 | | System.Windows.Forms.AnchorStyles.Left)
43 | | System.Windows.Forms.AnchorStyles.Right)));
44 | this.tableLayoutPanelAbout.ColumnCount = 1;
45 | this.tableLayoutPanelAbout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
46 | this.tableLayoutPanelAbout.Controls.Add(this.labelAboutText, 0, 0);
47 | this.tableLayoutPanelAbout.Controls.Add(this.buttonClose, 0, 1);
48 | this.tableLayoutPanelAbout.Location = new System.Drawing.Point(12, 12);
49 | this.tableLayoutPanelAbout.Name = "tableLayoutPanelAbout";
50 | this.tableLayoutPanelAbout.RowCount = 2;
51 | this.tableLayoutPanelAbout.RowStyles.Add(new System.Windows.Forms.RowStyle());
52 | this.tableLayoutPanelAbout.RowStyles.Add(new System.Windows.Forms.RowStyle());
53 | this.tableLayoutPanelAbout.Size = new System.Drawing.Size(471, 120);
54 | this.tableLayoutPanelAbout.TabIndex = 0;
55 | //
56 | // labelAboutText
57 | //
58 | this.labelAboutText.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
59 | | System.Windows.Forms.AnchorStyles.Left)
60 | | System.Windows.Forms.AnchorStyles.Right)));
61 | this.labelAboutText.AutoSize = true;
62 | this.labelAboutText.Location = new System.Drawing.Point(3, 0);
63 | this.labelAboutText.Name = "labelAboutText";
64 | this.labelAboutText.Size = new System.Drawing.Size(469, 84);
65 | this.labelAboutText.TabIndex = 0;
66 | this.labelAboutText.Text = resources.GetString("labelAboutText.Text");
67 | //
68 | // buttonClose
69 | //
70 | this.buttonClose.Anchor = System.Windows.Forms.AnchorStyles.None;
71 | this.buttonClose.Location = new System.Drawing.Point(200, 87);
72 | this.buttonClose.MaximumSize = new System.Drawing.Size(75, 30);
73 | this.buttonClose.Name = "buttonClose";
74 | this.buttonClose.Size = new System.Drawing.Size(75, 30);
75 | this.buttonClose.TabIndex = 1;
76 | this.buttonClose.Text = "Close";
77 | this.buttonClose.UseVisualStyleBackColor = true;
78 | this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click);
79 | //
80 | // AboutWindow
81 | //
82 | this.AcceptButton = this.buttonClose;
83 | this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
84 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
85 | this.CancelButton = this.buttonClose;
86 | this.ClientSize = new System.Drawing.Size(495, 144);
87 | this.ControlBox = false;
88 | this.Controls.Add(this.tableLayoutPanelAbout);
89 | this.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
90 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
91 | this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
92 | this.Name = "AboutWindow";
93 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
94 | this.Text = "AboutWindow";
95 | this.TopMost = true;
96 | this.tableLayoutPanelAbout.ResumeLayout(false);
97 | this.tableLayoutPanelAbout.PerformLayout();
98 | this.ResumeLayout(false);
99 |
100 | }
101 |
102 | #endregion
103 |
104 | private System.Windows.Forms.TableLayoutPanel tableLayoutPanelAbout;
105 | private System.Windows.Forms.Label labelAboutText;
106 | private System.Windows.Forms.Button buttonClose;
107 | }
108 | }
--------------------------------------------------------------------------------
/Ship's Bells/Ship's Bells.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AnyCPU
6 | true
7 | full
8 | false
9 | bin\Debug\
10 | DEBUG;TRACE
11 | prompt
12 | 4
13 | true
14 |
15 |
16 | AnyCPU
17 | pdbonly
18 | true
19 | bin\Release\
20 | TRACE
21 | prompt
22 | 4
23 | true
24 |
25 |
26 | Paomedia-Small-N-Flat-Bell.ico
27 | {45B647F6-C864-4167-AD1D-8669CCC945E3}
28 | v4.7.2
29 |
30 |
31 |
32 | D26D0ED3A376F89D5FE489B37BCFED02AC87322F
33 |
34 |
35 | Ship%27s Bells_TemporaryKey.pfx
36 |
37 |
38 | false
39 |
40 |
41 | true
42 |
43 |
44 | LocalIntranet
45 |
46 |
47 | Properties\app.manifest
48 |
49 |
50 | WinExe
51 |
52 |
53 | Ships_Bells.Program
54 |
55 |
56 | shipsbells
57 |
58 |
59 | Ships_Bells
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 | Form
76 |
77 |
78 | AboutWindow.cs
79 |
80 |
81 |
82 | Form
83 |
84 |
85 | MainWindow.cs
86 |
87 |
88 |
89 |
90 | AboutWindow.cs
91 |
92 |
93 | MainWindow.cs
94 |
95 |
96 | ResXFileCodeGenerator
97 | Resources.Designer.cs
98 | Designer
99 |
100 |
101 | True
102 | Resources.resx
103 | True
104 |
105 |
106 |
107 | SettingsSingleFileGenerator
108 | Settings.Designer.cs
109 |
110 |
111 | True
112 | Settings.settings
113 | True
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 | False
130 | Microsoft .NET Framework 4.7.2 %28x86 and x64%29
131 | true
132 |
133 |
134 | False
135 | .NET Framework 3.5 SP1
136 | false
137 |
138 |
139 |
140 |
--------------------------------------------------------------------------------
/Ship's Bells/AboutWindow.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 | Ship's Bells
122 | a public domain no-frills program to strike the bells of the watch.
123 | C# version written by Steve Simenic (orffen@orffenspace.com)
124 | Original Java version written by Nigel Kerr (shipsbells@nigelk.org)
125 |
126 |
--------------------------------------------------------------------------------
/Ship's Bells/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 |
122 | ..\Paomedia-Small-N-Flat-Bell.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
123 |
124 |
125 | ..\Resources\tang.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
126 |
127 |
128 | ..\Resources\tangtang.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
129 |
130 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Build results
17 | [Dd]ebug/
18 | [Dd]ebugPublic/
19 | [Rr]elease/
20 | [Rr]eleases/
21 | x64/
22 | x86/
23 | [Aa][Rr][Mm]/
24 | [Aa][Rr][Mm]64/
25 | bld/
26 | [Bb]in/
27 | [Oo]bj/
28 | [Ll]og/
29 |
30 | # Visual Studio 2015/2017 cache/options directory
31 | .vs/
32 | # Uncomment if you have tasks that create the project's static files in wwwroot
33 | #wwwroot/
34 |
35 | # Visual Studio 2017 auto generated files
36 | Generated\ Files/
37 |
38 | # MSTest test Results
39 | [Tt]est[Rr]esult*/
40 | [Bb]uild[Ll]og.*
41 |
42 | # NUNIT
43 | *.VisualState.xml
44 | TestResult.xml
45 |
46 | # Build Results of an ATL Project
47 | [Dd]ebugPS/
48 | [Rr]eleasePS/
49 | dlldata.c
50 |
51 | # Benchmark Results
52 | BenchmarkDotNet.Artifacts/
53 |
54 | # .NET Core
55 | project.lock.json
56 | project.fragment.lock.json
57 | artifacts/
58 |
59 | # StyleCop
60 | StyleCopReport.xml
61 |
62 | # Files built by Visual Studio
63 | *_i.c
64 | *_p.c
65 | *_h.h
66 | *.ilk
67 | *.meta
68 | *.obj
69 | *.iobj
70 | *.pch
71 | *.pdb
72 | *.ipdb
73 | *.pgc
74 | *.pgd
75 | *.rsp
76 | *.sbr
77 | *.tlb
78 | *.tli
79 | *.tlh
80 | *.tmp
81 | *.tmp_proj
82 | *_wpftmp.csproj
83 | *.log
84 | *.vspscc
85 | *.vssscc
86 | .builds
87 | *.pidb
88 | *.svclog
89 | *.scc
90 |
91 | # Chutzpah Test files
92 | _Chutzpah*
93 |
94 | # Visual C++ cache files
95 | ipch/
96 | *.aps
97 | *.ncb
98 | *.opendb
99 | *.opensdf
100 | *.sdf
101 | *.cachefile
102 | *.VC.db
103 | *.VC.VC.opendb
104 |
105 | # Visual Studio profiler
106 | *.psess
107 | *.vsp
108 | *.vspx
109 | *.sap
110 |
111 | # Visual Studio Trace Files
112 | *.e2e
113 |
114 | # TFS 2012 Local Workspace
115 | $tf/
116 |
117 | # Guidance Automation Toolkit
118 | *.gpState
119 |
120 | # ReSharper is a .NET coding add-in
121 | _ReSharper*/
122 | *.[Rr]e[Ss]harper
123 | *.DotSettings.user
124 |
125 | # JustCode is a .NET coding add-in
126 | .JustCode
127 |
128 | # TeamCity is a build add-in
129 | _TeamCity*
130 |
131 | # DotCover is a Code Coverage Tool
132 | *.dotCover
133 |
134 | # AxoCover is a Code Coverage Tool
135 | .axoCover/*
136 | !.axoCover/settings.json
137 |
138 | # Visual Studio code coverage results
139 | *.coverage
140 | *.coveragexml
141 |
142 | # NCrunch
143 | _NCrunch_*
144 | .*crunch*.local.xml
145 | nCrunchTemp_*
146 |
147 | # MightyMoose
148 | *.mm.*
149 | AutoTest.Net/
150 |
151 | # Web workbench (sass)
152 | .sass-cache/
153 |
154 | # Installshield output folder
155 | [Ee]xpress/
156 |
157 | # DocProject is a documentation generator add-in
158 | DocProject/buildhelp/
159 | DocProject/Help/*.HxT
160 | DocProject/Help/*.HxC
161 | DocProject/Help/*.hhc
162 | DocProject/Help/*.hhk
163 | DocProject/Help/*.hhp
164 | DocProject/Help/Html2
165 | DocProject/Help/html
166 |
167 | # Click-Once directory
168 | publish/
169 |
170 | # Publish Web Output
171 | *.[Pp]ublish.xml
172 | *.azurePubxml
173 | # Note: Comment the next line if you want to checkin your web deploy settings,
174 | # but database connection strings (with potential passwords) will be unencrypted
175 | *.pubxml
176 | *.publishproj
177 |
178 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
179 | # checkin your Azure Web App publish settings, but sensitive information contained
180 | # in these scripts will be unencrypted
181 | PublishScripts/
182 |
183 | # NuGet Packages
184 | *.nupkg
185 | # The packages folder can be ignored because of Package Restore
186 | **/[Pp]ackages/*
187 | # except build/, which is used as an MSBuild target.
188 | !**/[Pp]ackages/build/
189 | # Uncomment if necessary however generally it will be regenerated when needed
190 | #!**/[Pp]ackages/repositories.config
191 | # NuGet v3's project.json files produces more ignorable files
192 | *.nuget.props
193 | *.nuget.targets
194 |
195 | # Microsoft Azure Build Output
196 | csx/
197 | *.build.csdef
198 |
199 | # Microsoft Azure Emulator
200 | ecf/
201 | rcf/
202 |
203 | # Windows Store app package directories and files
204 | AppPackages/
205 | BundleArtifacts/
206 | Package.StoreAssociation.xml
207 | _pkginfo.txt
208 | *.appx
209 |
210 | # Visual Studio cache files
211 | # files ending in .cache can be ignored
212 | *.[Cc]ache
213 | # but keep track of directories ending in .cache
214 | !?*.[Cc]ache/
215 |
216 | # Others
217 | ClientBin/
218 | ~$*
219 | *~
220 | *.dbmdl
221 | *.dbproj.schemaview
222 | *.jfm
223 | *.pfx
224 | *.publishsettings
225 | orleans.codegen.cs
226 |
227 | # Including strong name files can present a security risk
228 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
229 | #*.snk
230 |
231 | # Since there are multiple workflows, uncomment next line to ignore bower_components
232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
233 | #bower_components/
234 |
235 | # RIA/Silverlight projects
236 | Generated_Code/
237 |
238 | # Backup & report files from converting an old project file
239 | # to a newer Visual Studio version. Backup files are not needed,
240 | # because we have git ;-)
241 | _UpgradeReport_Files/
242 | Backup*/
243 | UpgradeLog*.XML
244 | UpgradeLog*.htm
245 | ServiceFabricBackup/
246 | *.rptproj.bak
247 |
248 | # SQL Server files
249 | *.mdf
250 | *.ldf
251 | *.ndf
252 |
253 | # Business Intelligence projects
254 | *.rdl.data
255 | *.bim.layout
256 | *.bim_*.settings
257 | *.rptproj.rsuser
258 | *- Backup*.rdl
259 |
260 | # Microsoft Fakes
261 | FakesAssemblies/
262 |
263 | # GhostDoc plugin setting file
264 | *.GhostDoc.xml
265 |
266 | # Node.js Tools for Visual Studio
267 | .ntvs_analysis.dat
268 | node_modules/
269 |
270 | # Visual Studio 6 build log
271 | *.plg
272 |
273 | # Visual Studio 6 workspace options file
274 | *.opt
275 |
276 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
277 | *.vbw
278 |
279 | # Visual Studio LightSwitch build output
280 | **/*.HTMLClient/GeneratedArtifacts
281 | **/*.DesktopClient/GeneratedArtifacts
282 | **/*.DesktopClient/ModelManifest.xml
283 | **/*.Server/GeneratedArtifacts
284 | **/*.Server/ModelManifest.xml
285 | _Pvt_Extensions
286 |
287 | # Paket dependency manager
288 | .paket/paket.exe
289 | paket-files/
290 |
291 | # FAKE - F# Make
292 | .fake/
293 |
294 | # JetBrains Rider
295 | .idea/
296 | *.sln.iml
297 |
298 | # CodeRush personal settings
299 | .cr/personal
300 |
301 | # Python Tools for Visual Studio (PTVS)
302 | __pycache__/
303 | *.pyc
304 |
305 | # Cake - Uncomment if you are using it
306 | # tools/**
307 | # !tools/packages.config
308 |
309 | # Tabs Studio
310 | *.tss
311 |
312 | # Telerik's JustMock configuration file
313 | *.jmconfig
314 |
315 | # BizTalk build output
316 | *.btp.cs
317 | *.btm.cs
318 | *.odx.cs
319 | *.xsd.cs
320 |
321 | # OpenCover UI analysis results
322 | OpenCover/
323 |
324 | # Azure Stream Analytics local run output
325 | ASALocalRun/
326 |
327 | # MSBuild Binary and Structured Log
328 | *.binlog
329 |
330 | # NVidia Nsight GPU debugger configuration file
331 | *.nvuser
332 |
333 | # MFractors (Xamarin productivity tool) working folder
334 | .mfractor/
335 |
336 | # Local History for Visual Studio
337 | .localhistory/
338 |
339 | # BeatPulse healthcheck temp database
340 | healthchecksdb
--------------------------------------------------------------------------------
/Ship's Bells/MainWindow.Designer.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace Ships_Bells
3 | {
4 | partial class MainWindow
5 | {
6 | ///
7 | /// Required designer variable.
8 | ///
9 | private System.ComponentModel.IContainer components = null;
10 |
11 | ///
12 | /// Clean up any resources being used.
13 | ///
14 | /// true if managed resources should be disposed; otherwise, false.
15 | protected override void Dispose(bool disposing)
16 | {
17 | if (disposing && (components != null))
18 | {
19 | components.Dispose();
20 | }
21 | base.Dispose(disposing);
22 | }
23 |
24 | #region Windows Form Designer generated code
25 |
26 | ///
27 | /// Required method for Designer support - do not modify
28 | /// the contents of this method with the code editor.
29 | ///
30 | private void InitializeComponent()
31 | {
32 | this.components = new System.ComponentModel.Container();
33 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow));
34 | this.textShipsBells = new System.Windows.Forms.Label();
35 | this.buttonAbout = new System.Windows.Forms.Button();
36 | this.buttonQuit = new System.Windows.Forms.Button();
37 | this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
38 | this.labelBells = new System.Windows.Forms.Label();
39 | this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
40 | this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
41 | this.quitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
42 | this.tableLayoutPanel1.SuspendLayout();
43 | this.contextMenuStrip.SuspendLayout();
44 | this.SuspendLayout();
45 | //
46 | // textShipsBells
47 | //
48 | this.textShipsBells.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
49 | | System.Windows.Forms.AnchorStyles.Left)
50 | | System.Windows.Forms.AnchorStyles.Right)));
51 | this.textShipsBells.AutoSize = true;
52 | this.textShipsBells.Location = new System.Drawing.Point(3, 0);
53 | this.textShipsBells.Name = "textShipsBells";
54 | this.textShipsBells.Size = new System.Drawing.Size(92, 36);
55 | this.textShipsBells.TabIndex = 0;
56 | this.textShipsBells.Text = " Ship\'s Bells";
57 | this.textShipsBells.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
58 | //
59 | // buttonAbout
60 | //
61 | this.buttonAbout.Location = new System.Drawing.Point(101, 3);
62 | this.buttonAbout.Name = "buttonAbout";
63 | this.buttonAbout.Size = new System.Drawing.Size(75, 30);
64 | this.buttonAbout.TabIndex = 1;
65 | this.buttonAbout.Text = "About";
66 | this.buttonAbout.UseVisualStyleBackColor = true;
67 | this.buttonAbout.Click += new System.EventHandler(this.buttonAbout_Click);
68 | //
69 | // buttonQuit
70 | //
71 | this.buttonQuit.Location = new System.Drawing.Point(182, 3);
72 | this.buttonQuit.Name = "buttonQuit";
73 | this.buttonQuit.Size = new System.Drawing.Size(75, 30);
74 | this.buttonQuit.TabIndex = 2;
75 | this.buttonQuit.Text = "Quit";
76 | this.buttonQuit.UseVisualStyleBackColor = true;
77 | this.buttonQuit.Click += new System.EventHandler(this.buttonQuit_Click);
78 | //
79 | // tableLayoutPanel1
80 | //
81 | this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
82 | | System.Windows.Forms.AnchorStyles.Left)
83 | | System.Windows.Forms.AnchorStyles.Right)));
84 | this.tableLayoutPanel1.ColumnCount = 3;
85 | this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
86 | this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
87 | this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
88 | this.tableLayoutPanel1.Controls.Add(this.buttonQuit, 2, 0);
89 | this.tableLayoutPanel1.Controls.Add(this.buttonAbout, 1, 0);
90 | this.tableLayoutPanel1.Controls.Add(this.labelBells, 0, 1);
91 | this.tableLayoutPanel1.Controls.Add(this.textShipsBells, 0, 0);
92 | this.tableLayoutPanel1.Location = new System.Drawing.Point(12, 12);
93 | this.tableLayoutPanel1.Name = "tableLayoutPanel1";
94 | this.tableLayoutPanel1.RowCount = 2;
95 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
96 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
97 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
98 | this.tableLayoutPanel1.Size = new System.Drawing.Size(262, 73);
99 | this.tableLayoutPanel1.TabIndex = 5;
100 | //
101 | // labelBells
102 | //
103 | this.labelBells.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
104 | | System.Windows.Forms.AnchorStyles.Left)
105 | | System.Windows.Forms.AnchorStyles.Right)));
106 | this.labelBells.AutoSize = true;
107 | this.tableLayoutPanel1.SetColumnSpan(this.labelBells, 3);
108 | this.labelBells.Location = new System.Drawing.Point(3, 36);
109 | this.labelBells.Name = "labelBells";
110 | this.labelBells.Size = new System.Drawing.Size(256, 37);
111 | this.labelBells.TabIndex = 3;
112 | //
113 | // notifyIcon
114 | //
115 | this.notifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon.Icon")));
116 | this.notifyIcon.Text = "Ship\'s Bells";
117 | this.notifyIcon.Visible = true;
118 | this.notifyIcon.MouseClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon_MouseClick);
119 | this.notifyIcon.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon_MouseDoubleClick);
120 | //
121 | // contextMenuStrip
122 | //
123 | this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
124 | this.quitToolStripMenuItem});
125 | this.contextMenuStrip.Name = "contextMenuStrip";
126 | this.contextMenuStrip.Size = new System.Drawing.Size(98, 26);
127 | //
128 | // quitToolStripMenuItem
129 | //
130 | this.quitToolStripMenuItem.Name = "quitToolStripMenuItem";
131 | this.quitToolStripMenuItem.Size = new System.Drawing.Size(97, 22);
132 | this.quitToolStripMenuItem.Text = "Quit";
133 | this.quitToolStripMenuItem.Click += new System.EventHandler(this.buttonQuit_Click);
134 | //
135 | // MainWindow
136 | //
137 | this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
138 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
139 | this.ClientSize = new System.Drawing.Size(292, 97);
140 | this.Controls.Add(this.tableLayoutPanel1);
141 | this.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
142 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
143 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
144 | this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
145 | this.MaximizeBox = false;
146 | this.Name = "MainWindow";
147 | this.ShowInTaskbar = false;
148 | this.Text = "Ship\'s Bells";
149 | this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
150 | this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainWindow_FormClosing);
151 | this.Resize += new System.EventHandler(this.MainWindow_Resize);
152 | this.tableLayoutPanel1.ResumeLayout(false);
153 | this.tableLayoutPanel1.PerformLayout();
154 | this.contextMenuStrip.ResumeLayout(false);
155 | this.ResumeLayout(false);
156 |
157 | }
158 |
159 | #endregion
160 |
161 | private System.Windows.Forms.Label textShipsBells;
162 | private System.Windows.Forms.Button buttonAbout;
163 | private System.Windows.Forms.Button buttonQuit;
164 | private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
165 | private System.Windows.Forms.Label labelBells;
166 | private System.Windows.Forms.NotifyIcon notifyIcon;
167 | private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
168 | private System.Windows.Forms.ToolStripMenuItem quitToolStripMenuItem;
169 | }
170 | }
171 |
172 |
--------------------------------------------------------------------------------