add 45 minute option for now
This commit is contained in:
parent
44bb94a942
commit
21be2903d5
|
@ -37,6 +37,7 @@
|
||||||
startTimer25m = new ToolStripMenuItem();
|
startTimer25m = new ToolStripMenuItem();
|
||||||
timer = new System.Windows.Forms.Timer(components);
|
timer = new System.Windows.Forms.Timer(components);
|
||||||
timeCircle = new Panel();
|
timeCircle = new Panel();
|
||||||
|
startTimer45m = new ToolStripMenuItem();
|
||||||
contextMenuStrip.SuspendLayout();
|
contextMenuStrip.SuspendLayout();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
|
@ -50,9 +51,9 @@
|
||||||
//
|
//
|
||||||
// contextMenuStrip
|
// contextMenuStrip
|
||||||
//
|
//
|
||||||
contextMenuStrip.Items.AddRange(new ToolStripItem[] { startTimer5m, startTimer10m, startTimer25m });
|
contextMenuStrip.Items.AddRange(new ToolStripItem[] { startTimer5m, startTimer10m, startTimer25m, startTimer45m });
|
||||||
contextMenuStrip.Name = "contextMenuStrip1";
|
contextMenuStrip.Name = "contextMenuStrip1";
|
||||||
contextMenuStrip.Size = new Size(204, 70);
|
contextMenuStrip.Size = new Size(204, 114);
|
||||||
//
|
//
|
||||||
// startTimer5m
|
// startTimer5m
|
||||||
//
|
//
|
||||||
|
@ -89,6 +90,13 @@
|
||||||
timeCircle.TabIndex = 1;
|
timeCircle.TabIndex = 1;
|
||||||
timeCircle.Paint += timeCircle_Paint;
|
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
|
// Form1
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
|
@ -120,5 +128,6 @@
|
||||||
private System.Windows.Forms.Timer timer;
|
private System.Windows.Forms.Timer timer;
|
||||||
private Panel timeCircle;
|
private Panel timeCircle;
|
||||||
private ToolStripMenuItem startTimer10m;
|
private ToolStripMenuItem startTimer10m;
|
||||||
|
private ToolStripMenuItem startTimer45m;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,6 +86,10 @@ namespace Oyasumi
|
||||||
{
|
{
|
||||||
BeginCountdown(60 * 25);
|
BeginCountdown(60 * 25);
|
||||||
}
|
}
|
||||||
|
private void startTimer45m_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BeginCountdown(60 * 45);
|
||||||
|
}
|
||||||
|
|
||||||
private void timer_Tick(object sender, EventArgs e)
|
private void timer_Tick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue