private void load(OsuColour colours, LyricCheckerManager lyricCheckerManager) { lyricCheckerManager.BindableReports.BindCollectionChanged((i, args) => { // Ignore remove case if (args.NewItems == null) { return; } var dict = args.NewItems.Cast <KeyValuePair <Lyric, LyricCheckReport> >().ToDictionary(k => k.Key, v => v.Value); if (!dict.ContainsKey(lyric)) { return; } report = dict[lyric]; switch (report.IsValid) { case true: Icon = FontAwesome.Solid.CheckCircle; Colour = colours.Green; break; case false: Icon = FontAwesome.Solid.TimesCircle; Colour = colours.Red; break; } }, true); }
private void setTooltip(string testName, LyricCheckReport timeTag) { AddStep(testName, () => { toolTip.SetContent(timeTag); }); }