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
{
///
/// Gets or sets the navigation command.
///
public RelayCommand NavigationCommand { get; set; }
///
/// Gets or sets the browser command.
///
public RelayCommand BrowserCommand { get; set; }
///
/// Initializes a new instance of the class.
///
public CatalogViewVM()
{
NavigationCommand = new RelayCommand(NavigateToView);
BrowserCommand = new RelayCommand(OpenBrowserModule);
}
public override void OnApplicationStarted()
{
}
///
/// Navigates to the specified view name.
///
/// The view.
private void NavigateToView(string view)
{
NavigationManager.NavigateTo(view);
}
///
/// Opens the browser module.
///
private void OpenBrowserModule()
{
//NavigationManager.NavigateWithObject(new BrowserNavigationRequest()
//{
// Address = "https://twine-s.com/",
// DisplayAddressBar = true,
//}, true);
}
}
}