Exemplo n.º 1
0
 public MainPageViewModel()
 {
     for (int i = 0; i < 100; i++)
     {
         var item = new Model.TodoItem()
         {
             Title = string.Format("Task title {0}", i)
         };
         this.Items.Add(item);
     }
 }
Exemplo n.º 2
0
        private static TodoItem CreateDomainModel(Model.TodoItem x)
        {
            if (x == null)
            {
                return(null);
            }

            return(new TodoItem
            {
                Id = x.Id,
                Description = x.Description,
                Title = x.Title,
                IsDone = x.IsDone
            });
        }