public AppContext(ILogger <AppContext> logger, IGlucoseTrayDbContext context, IconService iconService, IGlucoseFetchService fetchService, IOptions <GlucoseTraySettings> options, TaskSchedulerService taskScheduler) { _logger = logger; _context = context; _iconService = iconService; _fetchService = fetchService; _options = options.Value; _taskScheduler = taskScheduler; trayIcon = new NotifyIcon() { ContextMenuStrip = new ContextMenuStrip(new Container()), Visible = true }; PopulateContextMenu(); trayIcon.DoubleClick += ShowBalloon; BeginCycle(); }