예제 #1
0
파일: Todo.cs 프로젝트: chent86/myList
        private void create_tile(Todo newtodo)
        {
            string           pic_path     = @"Assets/picture" + newtodo.picture_id + ".jpg";
            var              xmlDoc       = TileService.CreateTiles(newtodo, pic_path);
            var              updater      = TileUpdateManager.CreateTileUpdaterForApplication();
            TileNotification notification = new TileNotification(xmlDoc);

            updater.Update(notification);
        }
예제 #2
0
파일: Todo.cs 프로젝트: chent86/myList
        public TodoManager()
        {
            Database    m_db      = Database.Instance;
            List <Todo> todo_list = m_db.reload();

            TileUpdateManager.CreateTileUpdaterForApplication().Clear();
            foreach (Todo i in todo_list)
            {
                this.DefaultTodo.Add(i);
                create_tile(i);
            }
            TileService.SetBadgeCountOnTile(todo_list.Count);
            init_count = todo_list.Count;
        }
예제 #3
0
 private void sub_count()
 {
     _count--;
     TileService.SetBadgeCountOnTile(_count);
 }
예제 #4
0
 private void add_count()
 {
     _count++;
     TileService.SetBadgeCountOnTile(_count);
 }