private void Direction_MouseDown(object sender, MouseEventArgs e)
        {
            ImgBtn imgBtn = sender as ImgBtn;

            imgBtn.btnClickDown();
            String directName = imgBtn.Name;

            directName    = directName.Remove(0, 3);
            directionType = (DirectionType)Enum.Parse(typeof(DirectionType), directName, true);
            if (timeClock == null)
            {
                timeClock = new TimeClock(timMain.Interval, 1);
            }
            timeClock.PressButtonEnable = true;
            timMain.Enabled             = true;
            shapeOperManager.MovePlus(directionType);
            ShowNeedleInfo();
            picDrawBackGround.Image = shapeOperManager.GetShapeBitmap();
        }
示例#2
0
        private void ImgBtn_MouseDown(object sender, MouseEventArgs e)
        {
            ImgBtn imgBtn = sender as ImgBtn;

            imgBtn.btnClickDown();
        }