Exemplo n.º 1
0
 private void Init(BitmapObject[] bmps, int interval)
 {
     if (bmps == null || bmps.Length == 0)
     {
         return;
     }
     _bobjs      = bmps;
     _currentBmp = bmps[0];
     _interval   = interval;
     CreateImageAttributes();
 }
Exemplo n.º 2
0
 void _timer_Tick(object sender, EventArgs e)
 {
     _currentBmp = _bobjs[_index];
     _index++;
     if (_index >= _bobjs.Length)
     {
         _index = 0;
     }
     if (_onTicked != null)
     {
         _onTicked(sender, e);
     }
 }