private void CanvasMain_Update(ICanvasAnimatedControl sender, CanvasAnimatedUpdateEventArgs args) { Stopwatch s = Stopwatch.StartNew(); Screens.Update(args); s.Stop(); Debugging.LastUpdateMilliseconds = s.ElapsedMilliseconds; Debugging.Update(args); }
private void CanvasMain_Draw(ICanvasAnimatedControl sender, CanvasAnimatedDrawEventArgs args) { Stopwatch s = Stopwatch.StartNew(); Screens.Draw(args); s.Stop(); Debugging.LastDrawMilliseconds = s.ElapsedMilliseconds; Debugging.Draw(args); }
private async void CanvasMain_CreateResources(CanvasAnimatedControl sender, Microsoft.Graphics.Canvas.UI.CanvasCreateResourcesEventArgs args) { Statics.CanvasWidth = canvasMain.ActualWidth; Statics.CanvasHeight = canvasMain.ActualHeight; mediaSimple.MediaPlayer.RealTimePlayback = true; mediaSimple.MediaPlayer.IsLoopingEnabled = true; await Images.Initialize(sender.Device); PuzzleCollection.Initialize(sender.Device); await Speech.Initialize(); BackgroundWords.Initialize(sender.Device); Music.Initialize(); Screens.Initialize(sender.Device); }