示例#1
0
    public void SetData(ResultTask resultTask, List <RanTaskInfo> ranTaskInfo, int connections)
    {
        bool summaryTab = false;

        if (resultTask.Name == "Summary")
        {
            summaryTab = true;
        }

        ShowTraceResults(summaryTab);
        SetBasedOnData(_traceDataResults, resultTask, ranTaskInfo);

        if (!summaryTab)
        {
            firstConnectionStartTimeLabel.Text = string.Format("First Connection Start Time: {0}", GenericHelper.FormatDateTime(resultTask.FirstConnectionStartTime, true));
        }
        else
        {
            firstConnectionStartTimeLabel.Visible = false;
        }

        resultSummaryHeaderLabel.Text = string.Format("::: Result Statistics ({0}) :::::::", GetBasedOnLabel(connections));
    }