using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.Core.Commands; using Tango.MachineStudio.Technician.Navigation; using Tango.SharedUI; namespace Tango.MachineStudio.Technician.ViewModels { /// /// Represents the technician module main view, view model. /// /// public class MainViewVM : ViewModel { private TechNavigationManager _navigation; #region Constructors /// /// Initializes a new instance of the class. /// /// The navigation manager. public MainViewVM(TechNavigationManager navigationManager) { _navigation = navigationManager; NavigateToViewCommand = new RelayCommand(NavigateToView); } #endregion #region Commands /// /// Gets or sets the navigate to view command. /// public RelayCommand NavigateToViewCommand { get; set; } #endregion #region Private Methods /// /// Navigates to the specified view. /// /// The view. private void NavigateToView(string view) { _navigation.NavigateTo((TechNavigationView)Enum.Parse(typeof(TechNavigationView), view, true)); } #endregion } }