/// <summary> /// Initializes a new instance of the <see cref="TimeRecorderApplicationContext" /> class. /// </summary> public TimeRecorderApplicationContext() { this.trayIcon = new NotifyIcon { Icon = GetIcon("TimeRecorder.TimeRecorder.ico"), ContextMenu = new ContextMenu( new[] { new MenuItem("About Time Recorder...", this.About), new MenuItem("-"), new MenuItem("Options...", this.Options), new MenuItem("Statistics...", this.Statistics), new MenuItem("Explore...", this.Explore), new MenuItem("-"), new MenuItem("Exit", this.Exit) }), Visible = true }; this.InitializeTimeRecorder(); this.source = TimeRecorder.RunAsync(); }