public CharacterModel(MasterViewModel viewModel, string configPath) { m_ViewModel = viewModel; m_Characters = new ObservableCollection<string>(); m_ConfigPath = configPath; m_Config = XDocument.Load(m_ConfigPath); }
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); }
protected void Application_Startup(object sender, StartupEventArgs e) { m_MasterViewModel = new MasterViewModel(this); if (MainWindow == null) { MainWindow = new MainWindow(); } m_MasterViewModel.Initialise(); MainWindow.DataContext = m_MasterViewModel; MainWindow.Show(); }
public LogModel(MasterViewModel viewModel) { m_ViewModel = viewModel; }