Ejemplo n.º 1
0
        private async Task OnFirstTick()
        {
            this.Tick -= this.OnFirstTick;

            this.ReadConfiguration();

            this.OpenDatabase();

            // Create Example Screen if Database is empty
            this.PopulateDatabaseIfEmpty();

            this.CalculateMaxActiveScaleforms();

            this.playbackManager.Initialize(this.screenCollection);
            this.storageManager.Initialize(this.screenCollection);

            this.getMaxActiveScaleforms = new NetworkMethod <int>(
                Events.GetMaxActiveScaleforms,
                this.OnGetMaxActiveScaleforms);

            await UpdateChecker.CheckForNewerVersion();

            await Delay(0);
        }