예제 #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);
        }
예제 #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);
        }
예제 #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();
        }
예제 #4
0
 public LogModel(MasterViewModel viewModel)
 {
     m_ViewModel = viewModel;
 }