mirror of
https://github.com/usatiuk/PomoTime.git
synced 2025-10-28 08:27:48 +01:00
auto change current work time left
This commit is contained in:
@@ -35,9 +35,20 @@ namespace PomoTime
|
||||
private const int DefaultWorkMinutes = 25;
|
||||
private const int DefaultLongBreakMinutes = 15;
|
||||
|
||||
|
||||
private int _work_minutes;
|
||||
private int BreakMinutes { get; set; }
|
||||
private int WorkMinutes { get; set; }
|
||||
private int WorkMinutes
|
||||
{
|
||||
get { return _work_minutes; }
|
||||
set
|
||||
{
|
||||
if (!runningState.IsRunning && runningState.CurrentPeriod == Period.Work)
|
||||
{
|
||||
runningState.MinutesLeft = value;
|
||||
}
|
||||
_work_minutes = value;
|
||||
}
|
||||
}
|
||||
private int LongBreakMinutes { get; set; }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user