diff --git a/Oyasumi/Form1.Designer.cs b/Oyasumi/Form1.Designer.cs index f897f10..cefcb08 100644 --- a/Oyasumi/Form1.Designer.cs +++ b/Oyasumi/Form1.Designer.cs @@ -37,6 +37,7 @@ startTimer25m = new ToolStripMenuItem(); timer = new System.Windows.Forms.Timer(components); timeCircle = new Panel(); + startTimer45m = new ToolStripMenuItem(); contextMenuStrip.SuspendLayout(); SuspendLayout(); // @@ -50,9 +51,9 @@ // // contextMenuStrip // - contextMenuStrip.Items.AddRange(new ToolStripItem[] { startTimer5m, startTimer10m, startTimer25m }); + contextMenuStrip.Items.AddRange(new ToolStripItem[] { startTimer5m, startTimer10m, startTimer25m, startTimer45m }); contextMenuStrip.Name = "contextMenuStrip1"; - contextMenuStrip.Size = new Size(204, 70); + contextMenuStrip.Size = new Size(204, 114); // // startTimer5m // @@ -89,6 +90,13 @@ timeCircle.TabIndex = 1; timeCircle.Paint += timeCircle_Paint; // + // startTimer45m + // + startTimer45m.Name = "startTimer45m"; + startTimer45m.Size = new Size(203, 22); + startTimer45m.Text = "in a little while - 45 min"; + startTimer45m.Click += startTimer45m_Click; + // // Form1 // AutoScaleDimensions = new SizeF(7F, 15F); @@ -120,5 +128,6 @@ private System.Windows.Forms.Timer timer; private Panel timeCircle; private ToolStripMenuItem startTimer10m; + private ToolStripMenuItem startTimer45m; } } diff --git a/Oyasumi/Form1.cs b/Oyasumi/Form1.cs index 74f8bd4..6ca2d8d 100644 --- a/Oyasumi/Form1.cs +++ b/Oyasumi/Form1.cs @@ -86,6 +86,10 @@ namespace Oyasumi { BeginCountdown(60 * 25); } + private void startTimer45m_Click(object sender, EventArgs e) + { + BeginCountdown(60 * 45); + } private void timer_Tick(object sender, EventArgs e) {