コード例 #1
0
ファイル: Program.cs プロジェクト: dimzy/RiotControl
        public Program()
        {
            Serialiser = new Nil.Serialiser<Configuration>(ConfigurationPath);
            Configuration = Serialiser.Load();
            //Check for configuration errors
            Configuration.Check();
            //Store it right away to automatically remove unused content and provide new default values
            Serialiser.Store(Configuration);

            Database databaseProvider = new Database(Configuration);
            StatisticsService = new StatisticsService(this, Configuration, databaseProvider);
            WebService = new WebService(this, Configuration, StatisticsService, databaseProvider);
            UpdateService = new UpdateService(Configuration, this);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: epicvrvs/RiotControl
        public Program()
        {
            Startup.SetCurrentDirectory();

            Serialiser = new Nil.Serialiser<RiotControlConfiguration>(ConfigurationPath);
            Configuration = Serialiser.Load();
            //Check for configuration errors
            Configuration.Check();
            //Upgrade outdated configurations
            Configuration.Upgrade();
            //Store it right away to automatically remove unused content and provide new default values
            Serialiser.Store(Configuration);

            Database databaseProvider = new Database(Configuration);
            StatisticsService = new StatisticsService(this, Configuration, databaseProvider);
            WebService = new WebService(this, Configuration, StatisticsService, databaseProvider);
            UpdateService = new UpdateService(Configuration, this, this);

            MainWindow = new MainWindow(Configuration, this, StatisticsService);
        }