private void SetHourLineChartDate(List <PositionList> DataList, UGUI_LineChartDateFill LineChart, int count)
 {
     if (DataList != null)
     {
         //LastTime = long.Parse(DataList[DataList.Count - 1].RecordTime);
         DateTime dt = Convert.ToDateTime(DataList[DataList.Count - 1].Name);
         LineChart.DateFillT(UGUI_LineChartDateFill.DateType.Month, count, dt);
         //if (CurrentLevel == 0)
         //{
         //    LineChart.DateFillT(UGUI_LineChartDateFill.DateType.Month, count, dt);
         //}
         //else if(CurrentLevel == 1)
         //{
         //    LineChart.DateFillT(UGUI_LineChartDateFill.DateType.ThreeMonths  , count, dt);
         //}
         //else if (CurrentLevel == 2)
         //{
         //    LineChart.DateFillT(UGUI_LineChartDateFill.DateType.HalfAYear, count, dt);
         //}
         //else if (CurrentLevel == 3)
         //{
         //    LineChart.DateFillT(UGUI_LineChartDateFill.DateType.year, count, dt);
         //}
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 设置折线图日期
 /// </summary>
 /// <param name="DataList"></param>
 private void SetHourLineChartDate(List <PositionList> DataList, UGUI_LineChartDateFill LineChart, int Num)
 {
     if (DataList != null && DataList.Count != 0)
     {
         //LastTime = long.Parse(DataList[DataList.Count - 1].RecordTime);
         DateTime dt = Convert.ToDateTime(DataList[DataList.Count - 1].Name);
         LineChart.DateFillT(UGUI_LineChartDateFill.DateType.Month, Num, dt);
     }
 }
Ejemplo n.º 3
0
 private void SetHourLineChartDate(List <PositionList> DataList, UGUI_LineChartDateFill LineChart)
 {
     //var array = DataList[0].Name.Split(new char[1] { ' ' });
     //if (array != null && array.Length == 2)
     //{
     if (DataList != null)
     {
         //LastTime = long.Parse(DataList[DataList.Count - 1].RecordTime);
         DateTime dt = Convert.ToDateTime(DataList[DataList.Count - 1].Name);
         LineChart.DateFill(UGUI_LineChartDateFill.DateType.Month, 7, dt);
         // }
     }
 }
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     DateFill = transform.GetComponent <UGUI_LineChartDateFill>();
     Test();
 }