public TrayIconViewModel(AssistantApp app) { TooltipText = FormatLabel(DateTime.MinValue, DateTime.MinValue); // Update the tooltip description as new items come in app.Updates .Subscribe(x => { var lastEntry = x.Value; var lastChecked = x.Timestamp; TooltipText = FormatLabel(lastEntry, lastChecked); }); }
public static TrayIconViewModel Create(AssistantApp app) => new TrayIconViewModel(app);