-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHeaderViewModelInfo.cs
51 lines (43 loc) · 1.57 KB
/
HeaderViewModelInfo.cs
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.Collections.Generic;
using System.Reactive;
using System.Reactive.Linq;
using SystemInterfaces;
using ReactiveUI;
using RevolutionEntities.Process;
using RevolutionEntities.ViewModels;
using ViewMessages;
using ViewModel.Interfaces;
namespace RevolutionData
{
}
namespace RevolutionData
{
public class HeaderViewModelInfo
{
public static readonly ViewModelInfo HeaderViewModel = new ViewModelInfo
(
3,
new ViewInfo("HeaderViewModel", "", ""),
new List<IViewModelEventSubscription<IViewModel, IEvent>>{},
new List<IViewModelEventPublication<IViewModel, IEvent>>{},
new List<IViewModelEventCommand<IViewModel,IEvent>>
{
//Todo: Make Process header View
new ViewEventCommand<IHeaderViewModel, INavigateToView>(
key:"ViewHome",
commandPredicate:new List<Func<IHeaderViewModel, bool>>{},
subject:s => Observable.Empty<ReactiveCommand<IViewModel, Unit>>(),
messageData: s =>
{
return new ViewEventCommandParameter(
new object[] {ViewMessageConst.Instance.ViewHome},
new StateCommandInfo(s.Process.Id,
Context.View.Commands.NavigateToView), s.Process,
s.Source);
}),
},
typeof(IHeaderViewModel),
typeof(IHeaderViewModel), 0);
}
}