Пример #1
0
        void CompositionTarget_Rendering(object sender, EventArgs e)
        {
            //TimeSpan now = DateTime.Now.TimeOfDay;

            DateTime now; // = default(DateTime);

            now = Convert.ToDateTime("00:00:00");

            now = now.AddSeconds(time);


            // update the time
            H1.AnimateTo(now.Hour / 10);
            H2.AnimateTo(now.Hour % 10);

            M1.AnimateTo(now.Minute / 10);
            M2.AnimateTo(now.Minute % 10);

            S1.AnimateTo(now.Second / 10);
            S2.AnimateTo(now.Second % 10);
        }