1.1 --- a/MainForm.cs Sat Jun 14 15:05:04 2014 +0200
1.2 +++ b/MainForm.cs Mon Jun 16 12:18:46 2014 +0200
1.3 @@ -13,8 +13,12 @@
1.4 {
1.5 public partial class MainForm : Form
1.6 {
1.7 + DateTime LastTickTime;
1.8 +
1.9 public MainForm()
1.10 {
1.11 + LastTickTime = DateTime.Now;
1.12 +
1.13 InitializeComponent();
1.14 }
1.15
1.16 @@ -53,5 +57,16 @@
1.17 tableLayoutPanel.DrawToBitmap(bmp, tableLayoutPanel.ClientRectangle);
1.18 bmp.Save("c:\\capture.png");
1.19 }
1.20 +
1.21 + private void timer_Tick(object sender, EventArgs e)
1.22 + {
1.23 + //Update our animations
1.24 + DateTime NewTickTime = DateTime.Now;
1.25 +
1.26 + marqueeLabelTop.UpdateAnimation(LastTickTime, NewTickTime);
1.27 + marqueeLabelBottom.UpdateAnimation(LastTickTime, NewTickTime);
1.28 +
1.29 + LastTickTime = NewTickTime;
1.30 + }
1.31 }
1.32 }