add 45 minute option for now

This commit is contained in:
minish 2025-02-13 00:52:16 -05:00
parent 44bb94a942
commit 21be2903d5
Signed by: min
GPG Key ID: FEECFF24EF0CE9E9
2 changed files with 15 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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)
{