示例#1
0
        private static DataPoint[] getItemList()
        {
            TodoItemDatabase        itemDataBase = TodoItemDatabase.getDatabase();
            Task <List <TodoItem> > taskItemList = itemDataBase.GetItemsAsync();
            List <TodoItem>         itemList     = taskItemList.Result;

            DataPoint[] points = new DataPoint[itemList.Count];
            int         i      = 0;

            foreach (TodoItem item in itemList)
            {
                points[i++] = new DataPoint(item.ID, item.Bweight);
            }
            return(points);
        }
示例#2
0
        private static DataPoint[] getBFatList()
        {
            TodoItemDatabase        itemDataBase = TodoItemDatabase.getDatabase();
            Task <List <TodoItem> > taskItemList = itemDataBase.GetItemsAsync();
            List <TodoItem>         itemList     = taskItemList.Result;

            DataPoint[] points = new DataPoint[itemList.Count];

            int i = 0;

            foreach (TodoItem item in itemList)
            {
                double Today = DateTimeAxis.ToDouble(item.Created);

                points[i++] = new DataPoint(Today, item.Bfat);//  X軸 Y軸
            }
            return(points);
        }