Exemplo n.º 1
0
        private void ShowAnimate( )
        {
            Task animateTask = Task.Run(() =>
            {
                Thread.Sleep(TimeSpan.FromSeconds(0.5));
                Label.Font            = FontsHelper.LoadFont("invita");
                Label.ForegroundColor = ConsoleColor.Gray;
                Label.BackgroundColor = ConsoleColor.Black;
                Label.Text            = "Wencey Wang Present";
                Thread.Sleep(TimeSpan.FromSeconds(0.5));
                Label.ForegroundColor = ConsoleColor.White;
                Thread.Sleep(TimeSpan.FromSeconds(2));
                Label.ForegroundColor = ConsoleColor.Gray;
                Thread.Sleep(TimeSpan.FromSeconds(0.5));
                Label.ForegroundColor = ConsoleColor.Black;
                Label.Text            = "Dream Recorder";
                Thread.Sleep(TimeSpan.FromSeconds(0.5));
                Label.ForegroundColor = ConsoleColor.Gray;
                Thread.Sleep(TimeSpan.FromSeconds(0.5));
                Label.ForegroundColor = ConsoleColor.White;
                Thread.Sleep(TimeSpan.FromSeconds(2));
                Label.ForegroundColor = ConsoleColor.Gray;
                Thread.Sleep(TimeSpan.FromSeconds(0.5));
                Label.ForegroundColor = ConsoleColor.Black;
            });

            animateTask.Wait( );

            Frame.NavigateTo(new MainPage( ));
        }
Exemplo n.º 2
0
        public static void Init(object app)
        {
            var type        = app.GetType();
            var appAssembly = type.GetTypeInfo().Assembly;

            FontsHelper.Init(appAssembly);
        }