public void OpenTimer(TimeEntryList timeEntryList) { var timer = new TimerWindow(new Point(5, 10), new Point(70, 5), this, timeEntryList); AddState(timer); Focused = timer; }
public TimerWindow(Point position, Point size, UIStateHandler ui, TimeEntryList timeEntryList) { this.ui = ui; this.timeEntryList = timeEntryList; Position = position; Size = size; window = new Window(position, size); window.BackgroundColor = ConsoleColor.DarkGreen; Timer = new Stopwatch(); EnteredLabel = string.Empty; }