Ejemplo n.º 1
0
        public CharacterModel(MasterViewModel viewModel, string configPath)
        {
            m_ViewModel = viewModel;
            m_Characters = new ObservableCollection<string>();

            m_ConfigPath = configPath;
            m_Config = XDocument.Load(m_ConfigPath);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
 public LogModel(MasterViewModel viewModel)
 {
     m_ViewModel = viewModel;
 }