Example #1
0
        public override void Draw(DrawHandler drawHandler)
        {
            drawHandler.Draw(this.Image, this.Position);

            for (int x = 0; x < 8; x++)
            {
                for (int y = 0; y < 8; y++)
                {
                    if (Cells[x, y].CanMove)
                    {
                        drawHandler.Draw(this.Move_Image, Cells[x, y].ScreenPosition);
                    }
                }
            }
        }
Example #2
0
        public override void Draw(DrawHandler drawHandler)
        {
            if (this.Selected)
            {
                drawHandler.Draw(this.SelectedImage, this.Position);
            }

            base.Draw(drawHandler);
        }
Example #3
0
 private void RemainingTimerTick(object s, EventArgs a)
 {
     //AppLogger.Debug("RemainingTimerTick()", "Date: " + DateTime.Now.ToString("mm:ss:ff"));
     try
     {
         _drawHandler.Draw(SessionHandler.LastFiveMin());
     }
     catch (Exception ex)
     {
         AppLogger.Error("TimerTick()", ex.Message);
     }
     finally
     {
         //AppLogger.Debug("RemainingTimerTick()", "State is " + State + ". Date: " + DateTime.Now.ToString("mm:ss:ff"));
         if (State != STATES.LastFiveMinutes)
         {
             StopRemainingTimer();
         }
     }
 }