using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Commands;
using Tango.MachineStudio.Synchronization.Navigation;
using Tango.SharedUI;
namespace Tango.MachineStudio.Synchronization.ViewModels
{
///
/// Represents the synchronization module main menu view, view model.
///
///
public class MenuViewVM : ViewModel
{
private SyncNavigationManager _navigation;
///
/// Initializes a new instance of the class.
///
/// The navigation.
public MenuViewVM(SyncNavigationManager navigation)
{
_navigation = navigation;
StartLocalSyncCommand = new RelayCommand(() => { _navigation.NavigateTo(NavigationView.LocalSynchronizationView); });
StartRemoteSyncCommand = new RelayCommand(() => { _navigation.NavigateTo(NavigationView.RemoteSynchronizationView); });
StartDirectRemoteSyncCommand = new RelayCommand(() => { _navigation.NavigateTo(NavigationView.DirectSynchronizationView); });
}
///
/// Gets or sets the start local synchronize command.
///
public RelayCommand StartLocalSyncCommand { get; set; }
///
/// Gets or sets the start remote synchronize command.
///
public RelayCommand StartRemoteSyncCommand { get; set; }
///
/// Gets or sets the start direct remote synchronize command.
///
public RelayCommand StartDirectRemoteSyncCommand { get; set; }
}
}