diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-05-17 22:39:00 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-05-17 22:39:00 +0300 |
| commit | c46f5f21663d6878f4aa94a0ebfd573845063c0f (patch) | |
| tree | 94013e158738c6df0ef694363b04ffe96c648829 /Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels | |
| parent | 850eb9adb82aac85e928bf7a4533ee4c1f693ad2 (diff) | |
| parent | ede7471b32b1157ee932fa8f6e7918b8f147b36e (diff) | |
| download | Tango-c46f5f21663d6878f4aa94a0ebfd573845063c0f.tar.gz Tango-c46f5f21663d6878f4aa94a0ebfd573845063c0f.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels')
4 files changed, 83 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/JobsViewVM.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/JobsViewVM.cs new file mode 100644 index 000000000..27a3f8a84 --- /dev/null +++ b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/JobsViewVM.cs @@ -0,0 +1,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..." + }); + } + } + } +} diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LayoutViewVM.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LayoutViewVM.cs new file mode 100644 index 000000000..4ea7a4bb5 --- /dev/null +++ b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LayoutViewVM.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.SharedUI; + +namespace Tango.PanelPC.UI.ViewModels +{ + public class LayoutViewVM : ViewModel + { + + } +} diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LoadingView.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LoadingView.cs new file mode 100644 index 000000000..c1c9d1bb4 --- /dev/null +++ b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LoadingView.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.SharedUI; + +namespace Tango.PanelPC.UI.ViewModels +{ + public class LoadingView : ViewModel + { + + } +} diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/MainViewVM.cs new file mode 100644 index 000000000..71501c8b1 --- /dev/null +++ b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/MainViewVM.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.PanelPC.UI.PanelPCApplication; +using Tango.SharedUI; + +namespace Tango.PanelPC.UI.ViewModels +{ + public class MainViewVM : ViewModel + { + public String Test { get; set; } + + public MainViewVM(IPanelPCApplicationManager application) + { + Test = "This is a binding test"; + } + } +} |
