blob: 27a3f8a8451031149c0bf8d45bb6e543d89c498b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.SharedUI;
namespace Tango.PanelPC.UI.ViewModels
{
public class JobsViewVM : ViewModel
{
private ObservableCollection<Job> _jobs;
public ObservableCollection<Job> Jobs
{
get { return _jobs; }
set { _jobs = value; RaisePropertyChangedAuto(); }
}
public JobsViewVM()
{
Jobs = new ObservableCollection<Job>();
for (int i = 0; i < 50; i++)
{
Jobs.Add(new Job()
{
Name = "Job " + (i + 1),
Description = "Some Description..."
});
}
}
}
}
|