コード例 #1
0
ファイル: QueryTool.cs プロジェクト: fadster/TrafficReport
 public void SetHighlight(HighlightType type, uint thingId)
 {
     if (currentReport != null)
     {
         paths.SetHighlight(type, thingId);
         if (type == HighlightType.None)
         {
             ui.SetHighlightData(null, 0);
         }
         else
         {
             ui.SetHighlightData(currentReport.CountEntiesTypes(type, thingId), currentReport.allEntities.Length);
         }
     }
 }
コード例 #2
0
ファイル: QueryTool.cs プロジェクト: fadster/TrafficReport
        internal void OnGotReport(Report report)
        {
            currentReport   = report;
            base.ToolCursor = m_cursor;
            paths.SetReport(report);

            if (report == null)
            {
                ui.SetSelectedData(null);
                ui.SetHighlightData(null, 0);
            }
            else
            {
                ui.SetSelectedData(report.CountEntiesTypes());

#if DEBUG
                report.Save("report.xml");
#endif
            }
        }
コード例 #3
0
        internal void OnGotReport(Report report)
        {
            currentReport = report;
            base.ToolCursor = m_cursor;
            paths.SetReport(report);

            if (report == null)
            {
                ui.SetSelectedData(null);
                ui.SetHighlightData(null, 0);
            }
            else
            {
                ui.SetSelectedData(report.CountEntiesTypes());

            #if DEBUG
                report.Save("report.xml");
            #endif
            }
        }