aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/JobsViewVM.cs
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
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { co
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..."
                });
            }
        }
    }
}