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); }
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; }
private void sub_count() { _count--; TileService.SetBadgeCountOnTile(_count); }
private void add_count() { _count++; TileService.SetBadgeCountOnTile(_count); }