private void RefreshTimeLineDrawer() { ITimeLineData timeLineData = compDataController.CurrentRealTimeDataReader_Code.GetTimeLineData(); this.graphicData_TimeLine = GraphicDataFactory.CreateGraphicData_TimeLine(timeLineData); this.drawer_TimeLine.DataProvider = graphicData_TimeLine; this.graphicDrawer.Switch(1); }
private GraphicDrawer_TimeLine InitGraphicDrawer_TimeLine() { this.drawer_TimeLine = new GraphicDrawer_TimeLine(); ITimeLineData timeLineData = compDataController.CurrentRealTimeDataReader_Code.GetTimeLineData(); int barPos = TimeIndeierUtils.IndexOfTime_TimeLine(timeLineData, compData.Time); timeLineData.BarPos = barPos; this.graphicData_TimeLine = GraphicDataFactory.CreateGraphicData_TimeLine(timeLineData); drawer_TimeLine.DataProvider = graphicData_TimeLine; return(this.drawer_TimeLine); }