Exemple #1
0
        public MainViewModel()
        {
            try
            {
                m_config = AppConfig.Load();
            }
            catch (Exception e)
            {
                MessageBox.Show($"app.configを読み込めませんでした:{e.Message}");
                Application.Current.Shutdown();
            }

            Units           = new UnitViewModel(m_config, this);
            OwnedIdol       = new OwnedIdolViewModel(m_config, this);
            ImplementedIdol = new ImplementedIdolViewModel(m_config, this);
            Simulation      = new SimulationViewModel(m_config);
            Potential       = new PotentialViewModel(m_config);
        }
Exemple #2
0
        public MainViewModel()
        {
            try
            {
                m_config = AppConfig.Load();
            }
            catch(Exception e)
            {
                MessageBox.Show($"app.configを読み込めませんでした:{e.Message}");
                Application.Current.Shutdown();
            }

            Units = new UnitViewModel(m_config, this);
            OwnedIdol = new OwnedIdolViewModel(m_config, this);
            ImplementedIdol = new ImplementedIdolViewModel(m_config, this);
            Simulation = new SimulationViewModel(m_config);
            Potential = new PotentialViewModel(m_config);
        }