public void Present(OnceBot.BotStepResult presented) { this.presented = presented; GeneralMessageTextBox.Text = presented?.UIMessageText; StartTimeCalView.Text = presented?.StartTime.ToLongTimeString(); DurationView.Text = ((int?)(presented?.EndTime - presented?.StartTime)?.TotalMilliseconds).ToString(); WindowRasterSetMatchReport.Text = string.Join(Environment.NewLine, presented?.RasterSetPatternMatch ?.GroupBy(match => match.SourcePatternId) ?.Select(group => group.Key + " : " + group.Count() + " x : " + string.Join("; ", group.Select(match => match.Area.Center().RenderForUI()))) ?? new string[0]); }
static string FileName(OnceBot.BotStepResult step) => step?.StartTime.SictwaiseKalenderString(".", 3);