public TimeEntryList(Point position, Point size, UIStateHandler ui) { this.ui = ui; Position = position; Size = size; entries = ReadEntriesFromDb(); CursorPosition = 0; topVisibleY = 0; window = new Window(position, size); }
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; }