blob: dbc99fa87d161c8627583d44a650d0f064048d8a (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Commands;
//using Tango.PPC.Browser;
//using Tango.PPC.Browser.Navigation;
//using Tango.PPC.Browser.Views;
using Tango.PPC.Common;
namespace Tango.PPC.Technician.ViewModels
{
public class CatalogViewVM : PPCViewModel
{
/// <summary>
/// Gets or sets the navigation command.
/// </summary>
public RelayCommand<String> NavigationCommand { get; set; }
/// <summary>
/// Gets or sets the browser command.
/// </summary>
public RelayCommand BrowserCommand { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="CatalogViewVM"/> class.
/// </summary>
public CatalogViewVM()
{
NavigationCommand = new RelayCommand<string>(NavigateToView);
BrowserCommand = new RelayCommand(OpenBrowserModule);
}
public override void OnApplicationStarted()
{
}
/// <summary>
/// Navigates to the specified view name.
/// </summary>
/// <param name="view">The view.</param>
private void NavigateToView(string view)
{
NavigationManager.NavigateTo<TechnicianModule>(view);
}
/// <summary>
/// Opens the browser module.
/// </summary>
private void OpenBrowserModule()
{
//NavigationManager.NavigateWithObject<BrowserModule, BrowserView, BrowserNavigationRequest>(new BrowserNavigationRequest()
//{
// Address = "https://twine-s.com/",
// DisplayAddressBar = true,
//}, true);
}
}
}
|