public SkyrimModel(MasterViewModel viewModel, string configPath) { m_ViewModel = viewModel; m_ConfigPath = configPath; BrowseDataPath = new RelayCommand((o) => DataPath = m_ViewModel.Browse(DataPath), (o) => true); BrowseInstallPath = new RelayCommand((o) => InstallPath = m_ViewModel.Browse(InstallPath), (o) => true); }
/// <summary> /// <para>Instantiates the MainViewModel class</para> /// </summary> /// <param name="app"></param> public MasterViewModel(App app) { m_app = app; ExitCommand = new RelayCommand((o) => m_app.Shutdown(), (o) => true); }