public StateDemo()
        {
            megaman = new Megaman(new MegamanSlideState());

            InitializeComponent();
            Timer _timer = new Timer();

            _timer          = new Timer(150);
            _timer.Elapsed += OnTimedEvent;
            _timer.Enabled  = true;
        }
        public override void Draw(Megaman context, System.Windows.Controls.Image Targetimg)
        {
            Targetimg.Source = Convert(resImg[imgIndex]);

            imgIndex++;
            if (imgIndex > 4)
            {
                imgIndex      = 0;
                context.state = new MegamanRunningState();
            }
        }
 public abstract void Draw(Megaman context, System.Windows.Controls.Image Targetimg);